logo
search
Calculation Issues

How to Find Earliest Start and Latest End Dates in an Excel Gantt Chart

Adam DavisAdam Davis Sep 25, 2026 869 views

Question details

The user needs to extract the earliest start date and latest end date for specific milestones in an Excel Gantt chart using conditional formulas.

Find Earliest Start and Latest End Dates in an Excel Gantt Chart
Product
Excel
Device & OS
not provided
Scenario
Creating or managing a project Gantt chart and calculating summary start and end dates for project milestones based on task identifiers.
Observed behavior
Requires a reliable formula to return accurate milestone start and end dates based on specific identifiers, formatting the results properly as dates.
Before you start

Ensure your Gantt chart task dates are formatted correctly as Dates, and note the specific column letters where your milestone identifiers, start dates, and end dates are located.

Solution 1Recommended

Use Conditional MIN and MAX Array Formulas

Use a combination of MIN, MAX, and IF functions as an array formula to find dates for a specific milestone identifier.

This approach works across almost all versions of Excel and relies on an IF statement to filter the date columns based on your chosen milestone code.

1
Enter the MIN formula for the start date

Click on the cell where you want to display the earliest start date. Type the formula =MIN(IF(A:A="A",E:E)). Replace "A" with your actual milestone identifier, column A:A with your identifier column, and E:E with your start date column.

2
Confirm as an Array Formula

Instead of pressing Enter, hold down Ctrl+Shift and press Enter. This confirms it as an array formula, placing curly braces {} around it.

3
Enter the MAX formula for the end date

Select the cell for the latest end date. Enter the formula =MAX(IF(A:A="A",F:F)), replacing F:F with your end date column. Press Ctrl+Shift+Enter to confirm.

4
Format the results as Dates

Right-click the result cells, select 'Format Cells', navigate to the 'Number' tab, choose 'Date', and select your preferred date format. Click 'OK'.

Use Conditional MIN and MAX Array Formulas
Dynamic Arrays: In newer versions of spreadsheet software equipped with dynamic arrays, simply pressing Enter may be sufficient. However, using Ctrl+Shift+Enter ensures full backward compatibility with older files.

Calculate Project Dates Seamlessly in WPS Spreadsheet

WPS Spreadsheet provides powerful data analysis tools and full support for array formulas and conditional functions, making project management and Gantt chart tracking effortless.

  1. 1. Open your project file: Launch WPS Spreadsheet and open your existing Gantt chart or project management document.
  2. 2. Apply the conditional formula: Select the summary cell for your milestone and enter the =MIN(IF(...)) or =MINIFS(...) formula to calculate your timeline.
  3. 3. Format the output: Highlight the output cell, open the formatting dropdown on the Home tab, and select 'Date' to display the results correctly.
  4. 4. Save with perfect compatibility: Save your changes. The formulas will remain fully functional and compatible when shared with Microsoft Excel users.
Seamless compatibility with Microsoft Excel (.xlsx) file formats and complex array formulas.Full support for advanced conditional functions like MINIFS and MAXIFS.Built-in templates for project management and Gantt charts.Lightweight software with an intuitive, familiar interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my milestone formula return "0/1/00" or "January 0, 1900"?

This usually happens when the formula fails to find a matching milestone code, causing it to return a zero which the spreadsheet formats as "0/1/1900". Check your data column for exact text matches and ensure there are no hidden spaces.

Can I use wildcards to search for sub-milestones like "2.1.*"?

The standard IF(A:A="2.1.*") array formula does not support wildcards directly. Instead, you should use the MINIFS or MAXIFS functions, which natively support wildcard characters like asterisks (*) for partial text matching.

How do I edit a formula that has curly braces {} around it?

The curly braces indicate an array formula entered with Ctrl+Shift+Enter. You cannot delete the braces manually. To edit the formula, select the cell, make your changes in the formula bar, and press Ctrl+Shift+Enter again to save the changes.