Case 2: Critical path with a forward and backward pass

Which tasks can slip without putting the go-live at risk, and which cannot slip by a single day? The network answers that with two passes, and here you build both as formulas.

You need: XLOOKUP with a fallback value, MINIFS, COUNTIF and mixed references like A$2:A2. From case 1 you already know the rule that predecessors are always higher up.

The situation

The schedule is in place, but the steering committee has a question: the interface supplier reports a two-week delay. Does that matter? Before the next meeting Sarah wants to know, for every task, how many workdays it can slip. She runs the network forward (when can each task happen at the earliest) and backward (when must it happen at the latest). The difference is the float.

The terms

ShortMeaningCalculation
ESearly startlargest EF of all predecessors, 0 for the first task
EFearly finishES plus duration
LFlate finishsmallest LS of all successors, the project end for the last task
LSlate startLF minus duration
Floattotal float (total slack)LS minus ES

Everything is counted in workdays from the project start: EF 5 means "done at the end of workday 5". A task with zero total float is critical, and the critical tasks form the critical path.

The workbook

  • Network: eight tasks A to H with durations and up to two predecessors. In exercise 1 you calculate ES and EF; exercise 2 adds LF, LS, float and the critical flag.
  • Calendar (exercise 1): the same holidays as in case 1, as the name Holidays. J3 holds the project start.
  • Report (exercise 2): the figures for the steering committee slide.

Step 1: forward pass

A starts at 0. Every other task starts when its latest predecessor is done. It is the same formula as in case 1, with numbers instead of dates:

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

EF is =F2+C2. The largest EF is the shortest possible project duration, and WORKDAY from case 1 turns it into the last project day. The project start is already workday 1, so you move J1 minus 1 workdays forward: =WORKDAY(J3,J1-1,Holidays).

Exercise 1: forward pass and project end

Task Forward pass through the network, counted in workdays from the project start (ES of A is 0). F3: early start (ES) = latest early finish (EF) of the predecessors; down to F9. G2: early finish (EF) = ES plus duration; down to G9. J1: project duration in workdays = the largest EF. J2: the date of the last project day. The project start in J3 is workday 1, and the holidays are in the name Holidays (Calendar!B2:B3).

ABCDEFGHIJK
1 ID Task Duration (WD) Predecessor 1 Predecessor 2 ES EF Project duration (WD)
2 A Gather requirements 5 0 Last project day
3 B Select vendor 8 A Project start 1 Mar 2027
4 C Specify interfaces 6 A
5 D Configure system 10 B C
6 E Migrate data 7 D
7 F Write training material 9 B
8 G Train team 4 D F
9 H Prepare go-live 2 E G
10
11

Step 2: backward pass

Now you work from the bottom up. The last task H must finish by the project end at the latest. Every other task must finish before its earliest successor has to start at the latest. Successors are the tasks further down that name it as predecessor 1 or 2. MINIFS finds the smallest LS among them:

MINIFS(I3:I$9,D3:D$9,A2)

This time the bottom end is fixed and the range starts one row lower, so it shrinks as you fill down. One catch: according to Microsoft, MINIFS returns 0 when nothing matches, and 0 would be a wrong late finish. So you first ask COUNTIF whether there is a successor at all, and otherwise use the project end:

=MIN(IF(COUNTIF(D3:D$9,A2)>0,MINIFS(I3:I$9,D3:D$9,A2),$N$1),IF(COUNTIF(E3:E$9,A2)>0,MINIFS(I3:I$9,E3:E$9,A2),$N$1))

The formula is long, but it is the same building block twice, once for each predecessor column. LS, float and the flag are short calculations in the row after that.

Exercise 2: backward pass, float and report

Task Backward pass: the forward pass (ES, EF) is already there. H9: the last task must finish by the project end in N1 at the latest (LF). H2: LF = smallest late start (LS) of all successors, that is the tasks further down that have this task as predecessor 1 or 2; down to H8. I2: LS = LF minus duration; down to I9. J2: total float = LS minus ES; down to J9. K2: "yes" if the float is 0, otherwise "no"; down to K9. On the Report sheet: B2 number of critical tasks, B3 their total duration, B4 the largest float, B5 the name of the task with that float.

ABCDEFGHIJKLMNO
1 ID Task Duration (WD) Predecessor 1 Predecessor 2 ES EF LF LS Float Critical Project end (WD) 32
2 A Gather requirements 5 0 5
3 B Select vendor 8 A 5 13
4 C Specify interfaces 6 A 5 11
5 D Configure system 10 B C 13 23
6 E Migrate data 7 D 23 30
7 F Write training material 9 B 13 22
8 G Train team 4 D F 23 27
9 H Prepare go-live 2 E G 30 32
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

Taking the 0 from MINIFS

Without the COUNTIF check, every task that appears in only one of the two predecessor columns gets an LF of 0 and negative float. Negative float in a network without an imposed deadline is always a calculation error.

A range that includes the own row

If you write I2:I$9 instead of I3:I$9, a row's LF depends on its own LS, and Excel reports a circular reference.

Float the wrong way round

Total float is LS minus ES (or, equivalently, LF minus EF), never ES minus LS. In a network without an imposed deadline, float is never negative.

Averaging instead of taking the maximum

A task waits for its slowest predecessor. Adding or averaging the finishes moves the plan in the wrong direction.

How to check your result

  • Project duration 32 workdays, last project day 15 Apr 2027.
  • A, B, D, E and H are critical. Their durations add up to exactly 32, the project duration. That check is in Report!B3.
  • "Write training material" has the largest float with 4 workdays, the interface specification has 2. The reported two-week delay (10 workdays) therefore makes it critical and moves the go-live.
  • For the first task LS = ES = 0, for the last task LF = project end.

Network and Gantt chart

ES and EF are exactly what a Gantt chart draws as bars. If you colour the critical tasks with conditional formatting based on the Critical column, the steering committee sees the critical path at a glance.

The formulas in German Excel

EnglishGerman
XLOOKUPXVERWEIS
MINIFSMINWENNS
COUNTIFZÄHLENWENN
SUMIFSUMMEWENN
IF, MIN, MAXWENN, MIN, MAX

German project managers use FAZ, FEZ, SAZ and SEZ for ES, EF, LS and LF, and GP (Gesamtpuffer) for total float.

Which Excel versions does this work in?

MINIFS is available in Microsoft 365, Excel 2024, Excel 2021 and Excel 2019. XLOOKUP needs Excel 2021 or Microsoft 365; older versions use IFERROR(VLOOKUP(D3,A$2:G2,7,FALSE),0). Without MINIFS (Excel 2016) you need a helper column per predecessor column or an array formula; an update is the simpler route.

Next: case 3, resource planning

Dates are not enough. You work out how many hours each person is booked per week and find the overload.

Open case 3

Back to case 1 · Back to the course overview

Write to us

Choose language

Select your preferred language