Calculation Issues

How WPS Spreadsheets Gantt Chart Template Calculates Activity Duration

Olivia MillerOlivia Miller Nov 13, 2026 869 views

Question details

The user needs to understand how a Gantt chart template in WPS Spreadsheets calculates task duration from start and end dates and why an activity may display a two-day duration instead of the expected 52 days.

How WPS Spreadsheets Gantt Chart Template Calculates Activity Duration
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
A user is reviewing a Gantt chart template to understand why an activity duration formula returns 2 days instead of 52 days.
Observed behavior
The activity uses =TODAY()-1 as the start date and =[@[Start Date]]+1 as the end date, producing a two-day span from 28-Aug-2023 through 29-Aug-2023.
Before you start

Open the Gantt chart workbook in WPS Spreadsheets and make the hidden calculation worksheet visible so you can inspect the formulas behind the activity dates.

Solution 1Recommended

Inspect the hidden worksheet formulas to trace the duration calculation

Use this method first to confirm exactly why the activity duration shows two days instead of the expected 52 days.

The Gantt chart template often keeps its date formulas in a hidden worksheet. The displayed duration is based on those formulas, so the two-day result is normally a formula result rather than a chart error.

1
Open the workbook and show hidden worksheets

In WPS Spreadsheets, right-click any sheet tab and choose Unhide, or go to the Home tab, click Format > Hide & Unhide > Unhide Sheet, then select the hidden worksheet that contains the Gantt calculation.

2
Find the activity formula in the duration column

Click the formula cell mentioned in the template, such as D15, and inspect the formula shown in the formula bar.

3
Check the start and end date formulas

Confirm whether the start date is =TODAY()-1 and the end date is =[@[Start Date]]+1. These formulas return two consecutive dates, so the duration displays as 2 days.

4
Adjust for a 52-day activity

If the activity should span 52 days, replace the date formulas with fixed start and end dates or add a duration formula such as =[@[End Date]]-[@[Start Date]]+1.

Inspect the hidden worksheet formulas to trace the duration calculation
Why the 2-day result is expected: The two-day result is correct for the existing formulas. A 52-day result requires different start and end dates or a separate duration calculation.
WPS Spreadsheets formula help

Calculate Gantt Chart Activity Duration in WPS Spreadsheets

Inspect and adjust the Gantt chart date formulas in WPS Spreadsheets so task duration correctly shows the intended calendar days, whether it is 2 days or 52 days.

  1. 1. Open the Gantt chart template in WPS Spreadsheets: Launch WPS Office and open the .xlsx Gantt chart file, or download a Gantt chart template from the WPS template library.
  2. 2. Unhide the calculation worksheet: Right-click any sheet tab and choose Unhide, then select the hidden worksheet containing the activity formulas.
  3. 3. Inspect the formula: Click the duration cell such as D15 and view the formula in the formula bar to see =TODAY()-1 and =[@[Start Date]]+1.
  4. 4. Edit start and end dates: Replace the dynamic date formulas or enter fixed start and end dates that produce the required 52-day activity.
  5. 5. Confirm the duration: Check the duration cell or add =[@[End Date]]-[@[Start Date]]+1 to display the correct number of calendar days.
Trace and fix Gantt chart duration formulas in hidden worksheets.Full compatibility with Microsoft Excel .xlsx templates and formulas.Free, lightweight Office suite with a familiar spreadsheet interface.Cross-platform access on Windows, macOS, iOS, Android, and the web.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Gantt chart template show 2 days instead of 52 days?

Because the activity start date is =TODAY()-1 and the end date is =[@[Start Date]]+1, so the activity spans two consecutive calendar days. To get 52 days, set the start and end dates 52 days apart or use a separate duration formula such as =[@[End Date]]-[@[Start Date]]+1.

Where is the activity duration formula in the Gantt chart template?

It is usually in a hidden worksheet, often in a cell such as D15. In WPS Spreadsheets, right-click any sheet tab and choose Unhide, or go to Home > Format > Hide & Unhide > Unhide Sheet, then click the formula cell to view it.

How do I create a separate duration formula in WPS Spreadsheets?

In a duration cell, enter =[@[End Date]]-[@[Start Date]]+1 if the table uses structured references, or enter =B2-A2+1 with normal cell references, then press Enter.

Can I use a fixed start date instead of =TODAY()-1 in the Gantt chart template?

Yes. Select the start date cell and type a fixed date, or enter a cell reference to the project start date. The activity bar recalculates when the end date is changed.

Is the WPS Gantt chart template compatible with Microsoft Excel?

Yes. WPS Spreadsheets opens and saves .xlsx Excel workbooks and preserves formulas, hidden sheets, and Gantt chart date calculations.