Calculate Calendar Days from the Project Start Date in Microsoft Project
Question details
Calculate calendar days from the project start date to each task's start or finish date in a custom column.

- Product
- Microsoft Project
- Device & OS
- not provided
- Scenario
- The user wants to display elapsed calendar days alongside tasks or summary tasks.
- Observed behavior
- A custom field should show the calendar-day difference between the project start date and the selected task date.
Check the project start date under Project > Project Information and decide whether to calculate to task start or finish dates. Choose an unused task text field for the formula.
Create a Custom Text Field for Calendar Days
Use a formula to show calendar days from the project start to each task's start or finish date.
In Microsoft Project, open the Project tab and select Custom Fields. Choose Task and select Text as the field type.
Select an unused field such as Text1, click Formula, and enter DateDiff("d",[Project Start],[Start]) & " days". Click OK.
To calculate values for summary tasks, select Use formula in the calculation options for task and group summary rows in the Custom Fields dialog.
In a task view such as Gantt Chart, right-click a column heading, choose Insert Column, and select Text1.
To calculate through each task's finish date instead, open Project > Custom Fields, select the field, click Formula, and replace [Start] with [Finish].

Review Project Date Calculations in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for easy migration. Export project dates to a spreadsheet to calculate calendar days in WPS Spreadsheets; it does not replace the custom field in Microsoft Project.
- 1. Export task dates: In Microsoft Project, use File > Save As to export task names and start or finish dates to an Excel or CSV file.
- 2. Open the spreadsheet: Open the exported file in WPS Spreadsheets and enter the project start date in a separate cell, such as A2.
- 3. Calculate calendar days: If a task date is in B2, enter =B2-$A$2 in a result cell and fill the formula down for the remaining tasks.

Frequently Asked Questions
How do I calculate days to a task's finish date?
In Project > Custom Fields, open the text field's formula and replace [Start] with [Finish]: DateDiff("d",[Project Start],[Finish]) & " days".
Does the formula include weekends and holidays?
Yes. DateDiff with the "d" interval counts calendar-day boundaries rather than working days, so weekends and holidays are included.
Why is my custom field blank on summary tasks?
Open Project > Custom Fields, select the field, and choose Use formula in the calculation options for task and group summary rows.
How can I count both the project start date and the task date?
Add 1 to the DateDiff result. For a task finish date, use (DateDiff("d",[Project Start],[Finish]) + 1) & " days".




