How to Calculate Delayed Days for Late Status in SharePoint
Question details
The user needs to calculate the number of delayed days from a due date in a SharePoint list, specifically triggering only when the tracking status is marked as 'Late'.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Tracking project or task delays within a SharePoint list by generating automated metrics based on status conditions.
- Observed behavior
- Requires a formula that outputs the numerical day difference for 'Late' items while leaving the column blank for items with other statuses.
Ensure you have the appropriate site or list permissions to create and modify columns in your SharePoint list. Verify the exact names of your target columns (e.g., 'Tracking Status' and 'Due Date') before writing the formula.
Use an IF Formula for Late Status Only
This is the primary method to calculate delayed days strictly when the status is marked as 'Late', leaving other rows blank.
SharePoint calculated columns use syntax similar to Excel. By using an IF statement, you can evaluate the status column and only perform the date calculation if the condition is met.
Open your SharePoint list, click the gear icon in the top right corner, and select 'List settings' from the dropdown menu.
Scroll down to the Columns section and click 'Create column'. Name the column 'Delay Days' and choose 'Calculated (calculation based on other columns)' as the data type.
In the Formula box, input the following formula: =IF([Tracking Status]="Late",[Due Date]-TODAY(),""). This calculates the difference between the due date and today for late items.
Under 'The data type returned from this formula is', select 'Number'. Set the number of decimal places to 0, then click 'OK' to save your new column.

Combine Formulas for Both Late and On-Time Items
Use nested IF statements to track delays for 'Late' items and calculate the actual completion duration for 'On-Time' items in the same column.
Analyze Exported SharePoint Data with WPS Office
While SharePoint lists are excellent for team tracking, advanced data analysis often requires exporting to a spreadsheet. WPS Office provides a robust, free alternative to Microsoft Office, allowing you to seamlessly open, edit, and analyze exported SharePoint Excel files with high compatibility.
- 1. Export from SharePoint: Click the 'Export to Excel' button in your SharePoint list to download your data as a spreadsheet file.
- 2. Open with WPS Spreadsheet: Launch WPS Office and open your newly downloaded SharePoint export file directly.
- 3. Apply Formulas Offline: Use WPS Spreadsheet's built-in formulas to manipulate your data, calculate complex date differences, and build charts without altering the live SharePoint list.

Frequently Asked Questions
Why is my SharePoint calculated column showing a syntax error?
Syntax errors usually occur if column names are misspelled, if you forgot the square brackets around column names containing spaces (like [Tracking Status]), or if your regional site settings require semicolons (;) instead of commas (,) to separate formula arguments.
Will the TODAY() function in SharePoint update automatically every day?
No. In SharePoint calculated columns, the TODAY() function only calculates when the list item is created or updated. To have a dynamically updating delay counter, you would need to use formatting JSON or set up a Power Automate flow to update the items daily.
How do I calculate working days only (excluding weekends) in SharePoint?
SharePoint does not have a native NETWORKDAYS function for calculated columns. Calculating working days requires a more complex formula using the WEEKDAY function to subtract weekends, or relying on Microsoft Power Automate to calculate the network days before writing the value back to the list.




