Office Settings & Configuration

Display Calendar Days for Tasks in Microsoft Project

Steven ParkerSteven Parker Nov 18, 2026 870 views

Question details

The user needs a separate Microsoft Project field that displays task duration in calendar days, including weekends and holidays.

Display Calendar Days for Tasks in Microsoft Project
Product
Microsoft Project
Device & OS
not provided
Scenario
A project schedule needs a calendar-day count alongside the working-time duration, including for tasks that have already started.
Observed behavior
The desired field should show calendar days without replacing or changing the task's working-time duration.
Before you start

Open the project and check that the tasks have valid Start and Finish dates. Decide whether you want to count both the start and finish dates; the formula below includes both.

Solution 1Recommended

Add a custom calendar-day field in Microsoft Project

Use a separate text field to count calendar dates from a task's scheduled start through its scheduled finish.

This count includes weekends and holidays because it compares dates rather than working time. It counts both the start and finish dates, so a task starting and finishing on the same date shows one calendar day.

The formula uses the current Start and Finish fields, even for tasks that have already started. It is not an actual-to-date measure or a count of elapsed 24-hour periods.

1
Open custom fields

In Microsoft Project, open the project and select Project > Custom Fields.

2
Choose and rename a field

Under Task, select Text from the field type list and choose an unused field such as Text1. Select Rename and enter Calendar Time.

3
Enter the formula

Select Formula and enter CStr(DateDiff("d",[Start],[Finish])+1) & " calendar days". Confirm the formula and any warning about replacing existing field values.

4
Apply the formula to summaries

In Calculation for task and group summary rows, select Use formula, then select OK.

5
Display and check the field

In a task table, right-click a column heading, select Insert Column, and choose Calendar Time or Text1. Check a few tasks against their Start and Finish dates.

Add a custom calendar-day field in Microsoft Project
Tasks without dates: The formula requires valid Start and Finish dates. Check tasks with missing dates if the custom field displays an error.
Free Microsoft Office alternative

Track calendar-day counts in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for a smooth move between office suites. Use WPS Spreadsheets to calculate calendar-day counts in a task list; it does not change or fix Microsoft Project schedules.

Calculate inclusive calendar days from start and finish dates in a spreadsheet.Open and edit Microsoft Excel XLSX files for sharing task lists.Work with a familiar spreadsheet interface and easy-to-use formulas.Use a free, lightweight office suite for everyday documents.
microsoft office alternative - wps office

Frequently Asked Questions

Does the custom field change the task's Duration?

No. A formula in Text1 displays a separate value and does not replace the Duration field or change the project calendar.

Does the calendar-day count include weekends and holidays?

Yes. DateDiff compares the task's Start and Finish dates without excluding nonworking days. The added 1 includes both endpoint dates.

Can I show the calendar-day count on summary tasks?

Yes. In Project > Custom Fields, select the custom field and choose Use formula under Calculation for task and group summary rows.

Does this formula show time elapsed since a task actually started?

No. It counts calendar dates between the current Start and Finish fields. An actual-to-date count would require different date fields and a separate formula.