Others

Calculate Calendar Days from the Project Start Date in Microsoft Project

Khadija KhanKhadija Khan Nov 25, 2026 869 views

Question details

Calculate calendar days from the project start date to each task's start or finish date in a custom column.

Calculate Calendar Days from the Project Start Date in Microsoft Project
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Custom Fields

In Microsoft Project, open the Project tab and select Custom Fields. Choose Task and select Text as the field type.

2
Enter the formula

Select an unused field such as Text1, click Formula, and enter DateDiff("d",[Project Start],[Start]) & " days". Click OK.

3
Include summary tasks

To calculate values for summary tasks, select Use formula in the calculation options for task and group summary rows in the Custom Fields dialog.

4
Add the column

In a task view such as Gantt Chart, right-click a column heading, choose Insert Column, and select Text1.

5
Use finish dates if needed

To calculate through each task's finish date instead, open Project > Custom Fields, select the field, click Formula, and replace [Start] with [Finish].

Create a Custom Text Field for Calendar Days
Calendar-day counting: DateDiff counts calendar-day boundaries, including weekends and holidays; it does not count working days. The difference excludes the project start date as a full day. To include both dates, add 1 to the DateDiff result before appending the text.
Free Microsoft Office alternative

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. 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. 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. 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.
Calculate calendar-day differences from exported project dates.Open and edit Microsoft Excel XLSX spreadsheets.Use a familiar spreadsheet interface for a smooth transition.Work with a free, lightweight office suite.
microsoft office alternative - wps office

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