Agency contractors are paid by the working day, not by the calendar day, and the weeks around a public holiday are where invoices go wrong. NETWORKDAYS counts the weekdays between two dates and, given a list of closure days, leaves those out as well, so every invoice is built from the same rule.
You run payroll for a design studio that books agency contractors by the day. Each contractor's assignment is in A2:D6, with the first and last day booked and their day rate, and the days the studio is closed this season are listed in H2:H4. Contractors are only paid for weekdays the studio is open, and both the first and the last day of a booking count. In E2, work out how many days Priya can bill for, then copy it down to E6. In F2, work out her invoice total from those days and her day rate, then copy that down to F6 as well.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Contractor | First day | Last day | Day rate | Billable days | Invoice | Studio closed | |
| 2 | Priya Shah | 11/2/2026 | 11/13/2026 | 420 | 11/26/2026 | |||
| 3 | Tom Okafor | 11/16/2026 | 11/27/2026 | 380 | 11/27/2026 | |||
| 4 | Lena Fischer | 11/23/2026 | 12/4/2026 | 450 | 12/25/2026 | |||
| 5 | Marco Rossi | 11/25/2026 | 11/30/2026 | 400 | ||||
| 6 | Dana Brooks | 12/14/2026 | 12/31/2026 | 360 |
NETWORKDAYS(B2,C2) walks from the first date to the last, counting a day only when it falls Monday to Friday, and it counts both ends, which is how a booking from Monday 2 November to Friday 13 November comes to 10 days and not the 11 days C2-B2 gives, or the 9 a careless subtraction with weekends removed by hand often lands on. The third argument is the list of dates to treat as non-working on top of the weekends. Here that is Thanksgiving, the Friday after it and Christmas Day, and it is the whole reason this sheet needs a formula at all. Without it, Tom's fortnight to 27 November would be billed at 10 days instead of 8, Lena's fortnight across Thanksgiving at 10 instead of 8, Marco's short Wednesday-to-Monday booking at 4 instead of 2, and Dana's run to New Year's Eve at 14 instead of 13: $2,820 overpaid across the four. Priya's booking is untouched by the list, which is a useful check that the formula leaves ordinary weeks alone. The dollar signs in $H$2:$H$4 matter because the formula is copied down. B2 and C2 should become B3 and C3 on the next row, since each contractor has their own dates, but the closure list is the same for everyone; left relative it would slide to H3:H5 and then H4:H6, dropping Thanksgiving for Tom, both Thanksgiving closures for Lena and every closure for Marco and Dana. Keeping the closures in cells rather than typed into the formula also means that when the studio adds a closure day, changing one cell updates every invoice. The invoice in F2 is then simply E2*D2: billable days times the day rate.