Case 1: Project schedule in workdays with predecessors

A schedule that updates itself: change one duration and every dependent task moves with it, weekends and holidays are skipped, and you see at once whether the committed go-live date still holds.

You need: XLOOKUP, MAX, IF and named ranges. New here are WORKDAY and NETWORKDAYS, which count working days only and skip the holidays in a list.

The situation

Sarah Mitchell is running the rollout of a new ticketing system. The steering committee meets on Friday and wants a schedule it can rely on: when will the system be configured, when does it go live, and how much room is left before the committed date? Until now the team typed dates by hand. Every delay meant updating ten cells, and at least once a bank holiday slipped through as a working day. So Sarah builds a plan in which you only enter durations and predecessors, and everything else is calculated.

The workbook

  • Plan: for each task a number, a name, its predecessor, the duration in workdays (WD) and the Start and Finish columns you calculate. I1 holds the project start.
  • Calendar: the holidays during the project, March to April 2027: Good Friday (26 Mar 2027) and Easter Monday (29 Mar 2027), the bank holidays in England and Wales in that period according to gov.uk. A US team has no federal holiday in these two months and would list its own company holidays instead. The 2027 calendar lists the holidays for both countries.

The idea: WORKDAY counts working days only

A date plus 5 gives five calendar days later, weekend included. WORKDAY(start,days,Holidays) instead moves the given number of workdays forward: Saturdays, Sundays and every date in the holiday list do not count. With 0 days it stays on the start, with negative days it goes back.

To keep the formulas readable, the workbook has names: Holidays stands for Calendar!B2:B3, and in exercise 1 also ProjectStart for Plan!I1. A name behaves like an absolute reference, so you do not need $ signs when you fill down. When holidays are added, you only extend the range of the name.

Step 1: finish from start and duration

A one-day task finishes on its start day, a five-day task on the fifth workday from its start. The start day already counts, so you move duration minus 1 workdays forward.

=WORKDAY(E2,D2-1,Holidays)

Step 2: start from the predecessor

The predecessor is a number in column C. XLOOKUP fetches its finish, and the successor starts one workday later:

=WORKDAY(XLOOKUP(C3,A$2:A2,F$2:F2),1,Holidays)

The lookup range A$2:A2 is half fixed: as you fill down it grows and always ends at the row above the formula. That is deliberate. Predecessors are always higher up in the plan, and if the formula also searched its own row, Excel would report a circular reference, because a task's finish depends on its own start.

Exercise 1: the schedule

Task Schedule for the new ticketing system. The workbook has two names: Holidays (Calendar!B2:B3, the holidays during the project) and ProjectStart (Plan!I1). E2: the first task starts on the project start. F2: the finish is the workday on which the duration in D2 is used up; a one-day task finishes on its start day. Weekends and holidays do not count. The formula is filled down to F8. E3: a task starts on the first workday after its predecessor in column C finishes. The formula is filled down to E8.

ABCDEFGHIJ
1 No. Task Predecessor Duration (WD) Start Finish Project start 1 Mar 2027
2 1 Gather requirements 5
3 2 Select vendor 1 8
4 3 Configure system 2 10
5 4 Migrate data 3 6
6 5 Train team 3 4
7 6 Pilot run 4 5
8 7 Go-live 6 1
9
10

Step 3: several predecessors

In real plans a task often waits for two others. "Configure system" needs both the vendor selection and the interface specification. It starts after the later of the two finishes:

=MAX(XLOOKUP(C3,A$2:A2,G$2:G2,0),XLOOKUP(D3,A$2:A2,G$2:G2,0))

The fourth argument of XLOOKUP is the value to return when nothing is found. With 0, an empty predecessor 2 always loses in MAX. You put this latest finish where the XLOOKUP from step 2 was.

Step 4: float to the commitment

The steering committee has committed to a go-live date. NETWORKDAYS(G9,J1,Holidays) counts the workdays left. It counts both the first and the last day: if go-live finishes on the committed day, it returns 1, but the float is 0. If the commitment is before the finish, the result is negative and off by one in the other direction. So:

=NETWORKDAYS(G9,J1,Holidays)-IF(J1<G9,-1,1)

A negative result means the plan misses the commitment. An IF formula turns it into the status for the slide.

Exercise 2: two predecessors and the commitment

Task Now a task can have up to two predecessors, and the steering committee has committed to the go-live date in J1. F3: start = first workday after the later finish of the two predecessors (if predecessor 2 is empty, only predecessor 1 counts); filled down to F9. G2: finish from start and duration in workdays; down to G9. J2: float in workdays between the go-live finish (G9) and the commitment in J1: if go-live finishes one workday before the commitment, the float is 1, on the committed day 0, negative means late. J3: "late" if the float is negative, otherwise "on track". The holidays are in the name Holidays (Calendar!B2:B3).

ABCDEFGHIJK
1 No. Task Predecessor 1 Predecessor 2 Duration (WD) Start Finish Committed go-live 15 Apr 2027
2 1 Gather requirements 5 1 Mar 2027 Float (WD)
3 2 Select vendor 1 8 Status
4 3 Specify interfaces 1 6
5 4 Configure system 2 3 10
6 5 Migrate data 4 6
7 6 Write training material 2 7
8 7 Train team 4 6 4
9 8 Go-live 5 7 1
10
11

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

Common mistakes

Counting calendar days

=F2+1 as the successor's start looks right as long as there is no weekend in between. If the predecessor finishes on a Friday, the successor starts on a Saturday. That is why the exercises are also checked with a different project start.

Duration without minus 1

WORKDAY(E2,D2,Holidays) lands one workday too late, because the start day already counts. Check: a one-day task must finish on its start day.

Only looking at predecessor 1

As long as predecessor 1 finishes later, the result is right by chance. In the variant of exercise 2 the specification takes longer, and then predecessor 2 sets the start.

Forgetting the holidays

Without the third argument, WORKDAY only knows weekends. A task then finishes on Good Friday or starts on Easter Monday, and everything after it moves. Keep the holiday list complete for the whole project, with a margin on a real project.

Float without the correction

NETWORKDAYS(G9,J1,Holidays) on its own is one day too high. Always subtracting 1 is two days off when go-live is late. In the variant of exercise 2 go-live is late, so the check catches that.

How to check your result

  • Exercise 1: "Gather requirements" runs from 1 Mar to 5 Mar 2027, "Configure system" finishes on 2 Apr 2027 because Good Friday and Easter Monday are skipped. Go-live is on 20 Apr 2027.
  • Exercise 2: "Configure system" starts on 18 Mar 2027, go-live finishes on 13 Apr 2027, and the float is 2 workdays.
  • No start may fall on a Saturday, Sunday or holiday. Every start is after the finish of all its predecessors.

A different working week, or no WORKDAY?

WORKDAY and NETWORKDAYS treat Saturday and Sunday as the weekend. If the team also works on Saturdays, use WORKDAY.INTL and NETWORKDAYS.INTL; an extra argument there sets which days are off. More on counting days between two dates in DATEDIF and NETWORKDAYS.

Without these functions you can use a project calendar that lists every working day: MATCH returns the position of a date, INDEX the date at a position, and five workdays later means five positions further down. That takes more work and fails with #REF! as soon as a date runs past the last calendar day.

The formulas in German Excel

EnglishGerman
XLOOKUPXVERWEIS
MAXMAX
IFWENN
WORKDAYARBEITSTAG
NETWORKDAYSNETTOARBEITSTAGE

German Excel separates arguments with a semicolon instead of a comma.

Which Excel versions does this work in?

WORKDAY, NETWORKDAYS, MAX, IF and names work in all current versions. XLOOKUP is available in Microsoft 365, Excel 2024 and Excel 2021. In older versions, replace XLOOKUP(C3,A$2:A2,F$2:F2) with VLOOKUP(C3,A$2:F2,6,FALSE); for the empty second predecessor you then need IFERROR(…,0).

Next: case 2, the critical path

You run the network forward and backward and find out which tasks cannot slip by a single day.

Open case 2

Back to the course overview

Write to us

Choose language

Select your preferred language