• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Calculate Days Overdue and Days to Complete Tasks

Slipstick Systems

› Outlook › Tasks › Calculate Days Overdue and Days to Complete Tasks

Last reviewed on June 22, 2017     5 Comments

Is there a way to report on tasks - time overdue, number of times job extended from original date, average time for completion per category of task for individual users etc.

Outlook doesn't track extensions and date changes, but you can view the number days overdue and days to complete each task using custom fields.
Create custom fields in Tasks

For this we combine the IIF and DateDiff functions:

Iff(expression, do if true, do if false)

and

DateDiff(time period, date1, date2) 

Formula fields can't be grouped or sorted.

If the task is not marked complete, get the difference (in days) between the due date and now. If it's marked complete, enter "complete" in the field. Use Now() as the first date to return negative numbers; use [Due Date] first to return a positive number.

IIf([Complete]=False,DateDiff("d",Now(),[Due Date]),"Complete")

This formula checks to see if the task is complete and if so, gets the number of days between the start date and now. If it's not complete, 'Not Done' is entered in the field.

IIf([Complete]=True,DateDiff("d",[Start Date],[Date Completed]), "Not Done")

What if there is no start date to calculate from? Easy, just add another IIF statement. This formula checks to see if task is complete and if so, it checks to see if there is a start date. If current date is found, it calculates the difference using the start date, otherwise, it uses the Due date.

IIf([Complete]=True,IIf([Start Date]>1/1/3000,DateDiff("d",[Due Date],[Date Completed]),DateDiff("d",[Start Date],[Date Completed])),"Not Done")

Outlook doesn't use NULL or "" (blank) when a date field is left empty; it uses 1/1/4501. So, to check for the presence of a date, look for values greater than 1/1/4501, or any future date, as I do in this formula.

The formulas above are used in two separate fields, one for overdue and one for days to completion, but you can use one field for both. However, the formula will be a little more complicated.

IIf([Complete]=True,IIf([Start Date]>1/1/3000,DateDiff("d",[Due Date],[Date Completed]),DateDiff("d",[Start Date],[Date Completed])),DateDiff("d",Now(),[Due Date]))

If you want the overdue values marked as overdue, you can add text to a value using & "text" format. If you plan on working with these values in Excel, don't use this.

IIf([Complete]=True,IIf([Start Date]>1/1/3000,DateDiff("d",[Due Date],[Date Completed]),DateDiff("d",[Start Date],[Date Completed])),DateDiff("d",[Due Date],Now()) & "Overdue")
Calculate Days Overdue and Days to Complete Tasks was last modified: June 22nd, 2017 by Diane Poremsky
Post Views: 38

Related Posts:

  • How to create a "Next 21 days" Task filter
  • Creating Outlook Tasks "x" Days from a Date
  • To calculate the age of an Outlook contact
  • Change Category when Task is marked Completed

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. Paresh Lodha says

    May 18, 2020 at 1:24 pm

    Thank you so much Diane! this was quite helpful. I was looking to give my team members something in Outlook in which they can themselves see if they have delayed or completed the task on time.
    Very helpful. Appreciate your help! :)
    Thanks!

    Reply
  2. Deanne says

    June 21, 2017 at 3:32 pm

    "Calculate days overdue and days to complete tasks" - is this function available in Outlook 2016 version?

    Reply
    • Diane Poremsky says

      June 22, 2017 at 8:06 pm

      the formula will work in all versions of outlook. if you don't know how to create custom fields, the first 7 steps here show you how:
      https://www.slipstick.com/outlook/rules/custom-field-formulas-phone-numbers/

      Reply
  3. Murugan says

    March 24, 2017 at 9:20 am

    Hi Diane,

    I need your help in calculating networkdays in outlook in custom field. I have succeeded in excel but failed to incorporate in outlook. After a research, i realized that there is no in-built function called Networkdays, median and mod. below is my formulae.

    (NETWORKDAYS([Received],[Last Verb Exec Time])-1)*("21:30"-"12:30")+IF(NETWORKDAYS([Last Verb Exec Time],[Last Verb Exec Time]),MEDIAN(MOD([Last Verb Exec Time],1),"21:30","12:30"),"21:30")-MEDIAN(NETWORKDAYS([Received],[Received])*MOD([Received],1),"21:30","12:30").

    Please help

    Reply
    • Diane Poremsky says

      April 2, 2017 at 10:45 pm

      Yeah, Outlook doesn't do network day/work days. NETWORKDAYS is not a supported function. You could use date diff then subtract 2 days for every 5.

      If you can use VBA, you can use a function chip pearson wrote - i use it in the sample here - https://www.slipstick.com/developer/create-outlook-appointments-for-every-xx-weekday-using-vba/

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 7

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Reset the New Outlook Profile
  • Disable "Always ask before opening" Dialog
  • This operation has been cancelled due to restrictions
  • How to Hide or Delete Outlook's Default Folders
  • Change Outlook's Programmatic Access Options
  • Use Public Folders In new Outlook
  • Removing Suggested Accounts in New Outlook
  • Shared Mailboxes and the Default 'Send From' Account
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.