SharePoint Document Issues

How to Calculate Delayed Days for Late Status in SharePoint

Adam DavisAdam Davis Oct 10, 2026 869 views

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'.

How to Calculate Delayed Days for Late Status in SharePoint
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.
Before you start

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.

Solution 1Recommended

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.

1
Navigate to List Settings

Open your SharePoint list, click the gear icon in the top right corner, and select 'List settings' from the dropdown menu.

2
Create a Calculated Column

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.

3
Enter the Formula

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.

4
Configure Output Format

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.

Use an IF Formula for Late Status Only
Formula Output Polarity: If [Due Date]-TODAY() returns a negative number for past dates, you may want to reverse it to TODAY()-[Due Date] to show a positive number of days delayed.
Free Microsoft Office alternative

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. 1. Export from SharePoint: Click the 'Export to Excel' button in your SharePoint list to download your data as a spreadsheet file.
  2. 2. Open with WPS Spreadsheet: Launch WPS Office and open your newly downloaded SharePoint export file directly.
  3. 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.
Fully compatible with Microsoft Excel (.xlsx and .csv) formats exported from SharePoint.Free, lightweight suite including Writer, Spreadsheet, and Presentation.Features identical built-in advanced formulas (like IF and DATEDIF) for offline data analysis.Familiar tabbed interface requiring zero learning curve for Office users.
microsoft office alternative - wps office

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.