How to add task dependencies to an Excel Gantt chart

The chained Maple Street schedule is How to make a Gantt chart in Excel with start and end dates. On that sheet each task starts the next working day after the row above. Kickoff ends Friday, January 16, 2026. Design starts Tuesday, January 20. Review ends Wednesday, February 18.

This page keeps Kickoff and the same two holidays, and adds a photo task that runs beside Kickoff. Design starts after both have ended. The workbook with the chained list is the Gantt chart planner. On its Tasks sheet, a row can follow the row above. It does not store two predecessors.

The two days off

OPM’s 2026 federal holiday schedule lists Birthday of Martin Luther King, Jr. on Monday, January 19, and Washington’s Birthday on Monday, February 16. Section 6103(a) of title 5 of the United States Code names Washington’s Birthday. That is the statutory name. Put both dates on a Holidays sheet, in the same cells the earlier how-to uses:

Cell Date Holiday
A2 01/19/2026 Birthday of Martin Luther King, Jr.
A3 02/16/2026 Washington’s Birthday

xl.us.holiday returns those dates from the year and a name:

=xl.us.holiday(2026, "MLK")
=xl.us.holiday(2026, "Presidents")

Those return January 19 and February 16. The second key is Presidents. The name needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME?. The schedule below reads the two cells, so it still opens in Excel 2010. WORKDAY has been in Excel since Excel 2007.

Five tasks

Kickoff and Photos both start on Monday, January 5, 2026. Those two starts are typed. Neither task has a predecessor.

WORKDAY does not count the start date. A task of 10 working days, counting the day it starts, adds 9. Kickoff’s working days are January 5 through 9 and January 12 through 16. The end is Friday, January 16.

Photos is 14 working days, so the call adds 13. The working days are January 5 through 9, January 12 through 16, and January 20 through 23. January 19 is on the holiday list, so it is not one of the 14. The end is Friday, January 23.

Design starts on the next working day after the later of those two ends. MAX of January 16 and January 23 is January 23.

WORKDAY
=WORKDAY(MAX(D2,D3),1,Holidays!A2:A3)
=WORKDAY(MAX(D2,D3),1,Holidays!A2:A3)B4
Maple Street, with Photos
ABCD
1TaskStartWorkdaysEnd
2Kickoff1/5/2026101/16/2026
3Photos1/5/2026141/23/2026
4Design1/26/202682/4/2026
5Build2/5/2026102/19/2026
6Review2/20/202632/24/2026
A picture of the five tasks. Holidays!A2 is January 19, 2026 and Holidays!A3 is February 16, 2026. Kickoff and Photos have typed starts. Design's start is the next working day after the later end. Build reads Design. Review reads Build.
=WORKDAY(DATE(2026,1,5),9,Holidays!A2:A3)
=WORKDAY(DATE(2026,1,5),13,Holidays!A2:A3)
=MAX(DATE(2026,1,16),DATE(2026,1,23))
=WORKDAY(DATE(2026,1,23),1,Holidays!A2:A3)

Those results are January 16, January 23, January 23, and January 26. Design’s start is Monday, January 26.

Design is 8 working days: January 26 through 30, and February 2 through 4. February 1 is a Sunday. The end is Wednesday, February 4. The call adds 7 to January 26.

Build starts the next working day, Thursday, February 5. It is 10 working days: February 5, 6, 9, 10, 11, 12, 13, 17, 18, and 19. February 14 and 15 are the weekend. February 16 is Washington’s Birthday, so that Monday is not one of the 10. The end is Thursday, February 19. Leave February 16 off the list and the same 10 working days end Wednesday, February 18:

=WORKDAY(DATE(2026,2,5),9)
=WORKDAY(DATE(2026,2,5),9,DATE(2026,2,16))

Those results are February 18 and February 19.

Review starts Friday, February 20. It is 3 working days: February 20, 23, and 24. The end is Tuesday, February 24. February 16 is already past, so that holiday does not move Review.

Task Start Workdays End Waits for
Kickoff Mon 1/5/2026 10 Fri 1/16/2026 A typed start
Photos Mon 1/5/2026 14 Fri 1/23/2026 A typed start
Design Mon 1/26/2026 8 Wed 2/4/2026 The later of Kickoff and Photos
Build Thu 2/5/2026 10 Thu 2/19/2026 Design
Review Fri 2/20/2026 3 Tue 2/24/2026 Build

NETWORKDAYS counts both ends when they are workdays, and it skips the same holiday list. Photos from January 5 through January 23 is 14. Design from January 26 through February 4 is 8. Build from February 5 through February 19 is 10. Review from February 20 through February 24 is 3. Each count matches the Workdays column.

The bar on the chart is calendar days, including weekends, because a stacked bar is drawn in day-widths. The length is the end minus the start, plus 1. Kickoff is 12. Photos is 19. Design is 10. Build is 15. Review is 5. The offset is days after January 5: 0, 0, 21, 31, and 46. February 20 is 46 days after January 5. The steps that turn the offset and the bar into a stacked bar are on the earlier how-to. Read the end from the End column. Review’s bar is 5 days long and the cell says February 24.

Adding one day lands on a Saturday

January 23 plus 1 is January 24. January 24, 2026 is a Saturday. That cell is not a start date for a crew that is closed Saturday and Sunday. WORKDAY skips Saturday, Sunday, and any date in the holiday list. MAX returns the later end. The weekend skip is the WORKDAY wrapped around that result.

WORKDAY
=WORKDAY(B2,1,Holidays!A2:A3)
=WORKDAY(B2,1,Holidays!A2:A3)B4
The day after January 23
AB
1Value
2Later end1/23/2026
3Plus 1 day1/24/2026
4Next workday1/26/2026
A picture of the later end. Adding 1 returns Saturday, January 24. WORKDAY of that Friday and 1 returns Monday, January 26. The holiday list is the same two cells.
=DATE(2026,1,23)+1
=WORKDAY(DATE(2026,1,23),1,Holidays!A2:A3)

The first result is January 24. The second is January 26.

A task with no predecessor should keep a typed start. MAX of a range that contains no numbers returns 0. Excel’s serial 0 displays as January 0, 1900. An empty predecessor cell is that case. Kickoff and Photos do not call MAX.

When Photos finishes first

An 8-workday photo task that also starts January 5 adds 7. Its working days are January 5 through 9 and January 12 through 14. The end is Wednesday, January 14. MAX of January 14 and Kickoff’s January 16 is January 16. The next working day is Tuesday, January 20. January 17 and 18 are the weekend, and January 19 is on the holiday list. January 20 is the Design start on the chained schedule.

MAX
=MAX(B2,B3)
=MAX(B2,B3)B4
Photos ends first
AB
1Value
2Photos end1/14/2026
3Kickoff end1/16/2026
4Later end1/16/2026
5Design start1/20/2026
A picture of an 8-workday photo task, not the 14-workday task above. January 14 is earlier than January 16, so MAX returns January 16. The next working day is January 20.
=WORKDAY(DATE(2026,1,5),7,Holidays!A2:A3)
=MAX(DATE(2026,1,14),DATE(2026,1,16))
=WORKDAY(DATE(2026,1,16),1,Holidays!A2:A3)

Those results are January 14, January 16, and January 20. The 14-workday photo task is the one that moves Design, because January 23 is later than January 16.

Two extra working days

The five-task table starts Design on the next working day after January 23. That call passes 1 to WORKDAY. A wait of two further working days passes 3. The 1 is already the next working day, and the next two are the extra wait.

=WORKDAY(DATE(2026,1,23),3,Holidays!A2:A3)

That returns Wednesday, January 28. Monday the 26th is 1, Tuesday the 27th is 2, and Wednesday the 28th is 3. The table uses 1.

Build’s start reads Design’s end. Design’s start reads Kickoff’s end and the Photos end. None of those formulas reads its own row’s end. A start formula that points at the same row’s end is a circular reference.

The holiday argument has to be real dates. Text in Holidays!A2 makes WORKDAY return #VALUE!.


Template for this article

Gantt Chart Project Planner

More from the blog