How to Find Earliest Start and Latest End Dates in an Excel Gantt Chart
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.

- 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.
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.
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.
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.
Instead of pressing Enter, hold down Ctrl+Shift and press Enter. This confirms it as an array formula, placing curly braces {} around it.
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.
Right-click the result cells, select 'Format Cells', navigate to the 'Number' tab, choose 'Date', and select your preferred date format. Click 'OK'.

Use MINIFS and MAXIFS Functions for Modern Spreadsheets
Utilize the modern MINIFS and MAXIFS functions which naturally support conditions and wildcards without requiring array entry.
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. Open your project file: Launch WPS Spreadsheet and open your existing Gantt chart or project management document.
- 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. Format the output: Highlight the output cell, open the formatting dropdown on the Home tab, and select 'Date' to display the results correctly.
- 4. Save with perfect compatibility: Save your changes. The formulas will remain fully functional and compatible when shared with Microsoft Excel users.

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.




