Sub topic 11
Counting and scheduling business days
This chapter assumes you can enter formulas, use absolute references such as $A$2, and already know that Sheets stores dates as day counts (serial numbers). You should also be comfortable with WEEKDAY and with subtracting one date from another.
Plain subtraction counts every calendar day. Project plans, invoices, and service-level agreements usually count only working days. Sheets provides four functions for this: NETWORKDAYS, WORKDAY, and their .INTL variants, which let you define your own weekend.
What counts as a business day
By default, a business day is any day that is not a Saturday, a Sunday, or a listed holiday. The four functions split into two jobs:
| Job | Default weekend (Sat, Sun) | Custom weekend |
|---|---|---|
| Count working days between two dates | `NETWORKDAYS` | `NETWORKDAYS.INTL` |
| Find the date N working days away | `WORKDAY` | `WORKDAY.INTL` |
Holidays are not built in. You supply them as a range of real date values, usually on a separate tab.
Counting working days with NETWORKDAYS
The syntax is NETWORKDAYS(start_date, end_date, [holidays]).
=NETWORKDAYS(A2, B2, Holidays!A2:A20)This counts weekdays from A2 to B2, excluding Saturdays, Sundays, and any dates in the holiday range.
Three details matter in practice:
- Both ends are inclusive. If
A2andB2are the same Monday, the result is 1. Subtracting the dates would give 0. - A reversed range returns a negative number. If the start is after the end, you get a negative count rather than an error.
- Holidays that fall on a weekend are not subtracted twice. A holiday on a Saturday has no effect, because Saturday is already excluded.
Take Monday 2026-11-23 to Friday 2026-11-27. Both ends count, so NETWORKDAYS returns 5. If Thursday 2026-11-26 is in the holiday list, the result is 4.
Counting elapsed working days instead
Because NETWORKDAYS is inclusive, it is often one higher than what people mean by "days taken". If a ticket opened Monday and closed Wednesday, NETWORKDAYS returns 3, but two working days elapsed. When you want elapsed time, subtract 1:
=NETWORKDAYS(A2, B2, Holidays!A2:A20) - 1Decide which meaning your report uses and write it in the column header. The inclusive count suits "days worked", and the exclusive count suits "turnaround time". Note that the subtraction gives -1 for a ticket opened and closed on a weekend, so wrap it in MAX(0, ...) if that case can occur.
Scheduling with WORKDAY
The syntax is WORKDAY(start_date, num_days, [holidays]). It returns the date that is num_days working days after the start.
=WORKDAY(A2, 10, Holidays!A2:A20)This returns the date 10 working days after A2, skipping weekends and the listed holidays.
Key behaviours:
- The start date is not counted.
WORKDAY(Monday, 1)returns Tuesday.WORKDAY(Friday, 1)returns the following Monday. - A negative
num_daysmoves backwards.WORKDAY(A2, -5)gives the date five working days beforeA2. This is useful for "send the reminder 5 working days before the deadline". - A start date on a weekend works.
WORKDAY(Saturday, 1)returns Monday, since the first working day after Saturday is Monday. - Zero returns the start date unchanged, even if it is a weekend or holiday.
The result is a date value. If the cell shows a number such as 46354, apply a date format. The value is correct, and only its display needs fixing.
Building the holiday list
A reliable holiday range is the most important input. Follow these rules:
- Put the dates on their own tab, for example
Holidays, one date per cell in column A. - Enter them as real dates, for example with
=DATE(2026, 12, 25)or by typing a date that Sheets recognizes. Check that the cells right-align, which indicates numeric values. - Use a range larger than the current list, such as
Holidays!A2:A50, so you can add dates later. Blank cells in the range are ignored. - Add the list for every year your formulas cover. A schedule that crosses into next year silently ignores holidays you have not entered.
Text that looks like a date will not match. If a holiday seems to have no effect, check it with =ISNUMBER(Holidays!A2). A result of FALSE means the cell holds text, and you can convert it with DATEVALUE as described in the chapter on converting text and dates.
For a range that other people maintain, define a named range such as Holidays (Data > Named ranges). Then the formula becomes =NETWORKDAYS(A2, B2, Holidays), which is shorter and does not break when you insert rows.
Custom weekends with the .INTL variants
Not every workplace uses Saturday and Sunday. Many Middle Eastern countries use Friday and Saturday, and some businesses work six days. The .INTL functions accept a weekend argument:
NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
WORKDAY.INTL(start_date, num_days, [weekend], [holidays])The weekend argument can be a number code or a seven-character string.
Number codes
| Code | Weekend days |
|---|---|
| 1 (default) | Saturday, Sunday |
| 2 | Sunday, Monday |
| 3 | Monday, Tuesday |
| 4 | Tuesday, Wednesday |
| 5 | Wednesday, Thursday |
| 6 | Thursday, Friday |
| 7 | Friday, Saturday |
| 11 | Sunday only |
| 12 | Monday only |
| 13 | Tuesday only |
| 14 | Wednesday only |
| 15 | Thursday only |
| 16 | Friday only |
| 17 | Saturday only |
For a Friday and Saturday weekend:
=NETWORKDAYS.INTL(A2, B2, 7, Holidays!A2:A20)String patterns
A string of seven characters, starting with Monday, marks each day as 1 (non-working) or 0 (working). For a business that works Monday to Saturday and rests only on Sunday:
=NETWORKDAYS.INTL(A2, B2, "0000001", Holidays!A2:A20)Strings allow patterns that no code offers, such as resting Wednesday and Sunday: "0010001". A string of all ones, "1111111", is invalid because no day would remain to count.
=WORKDAY.INTL(A2, 10, "0000011", Holidays!A2:A20)The line above is equivalent to plain WORKDAY, since "0000011" marks Saturday and Sunday as weekend days. This is a quick way to check that you read the string in the right order.
Practical patterns
Due date with a service-level agreement
A support team promises a reply within 3 working days. With the ticket date in A2:
=WORKDAY(A2, 3, Holidays)Flag overdue items
Compare the due date to today. This formula returns a label:
=IF(TODAY() > C2, "Overdue", "On time")TODAY() recalculates whenever the sheet changes or reopens, so the label updates on its own.
Working days remaining in the current month
=NETWORKDAYS(TODAY(), EOMONTH(TODAY(), 0), Holidays)This counts from today through the last day of the month, including today if it is a working day.
Applying to a whole column
Use ARRAYFORMULA with IF to skip blank rows. Note that WORKDAY and NETWORKDAYS can be unreliable on whole-range arguments in some cases, so test the result before depending on it. A dependable alternative is MAP:
=MAP(A2:A, LAMBDA(d, IF(d = "", "", WORKDAY(d, 5, Holidays))))This returns a due date five working days after each date in column A and leaves empty rows blank. Put the formula once in the header row's neighbour, such as B2, and the results spill downward.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| `#VALUE!` error | A date argument is text, or the weekend string is not seven characters of 0 and 1 | Check with `ISNUMBER`, convert with `DATEVALUE`, and recount the string |
| Result is a five-digit number | The cell has a number format | Apply Format > Number > Date |
| Count is one higher than expected | `NETWORKDAYS` includes both ends | Subtract 1 for elapsed days |
| A holiday is ignored | The holiday is text, or it falls on a weekend, or it is outside the range | Verify with `ISNUMBER`, and extend the list |
| Dates with a time part give odd results | The fractional part is dropped | Wrap in `INT` for clarity |
| Wrong days skipped | Weekend code or string misread | Test with a known week |
A date-time such as 2026-11-24 15:30 works in these functions because they use only the whole-day part. Wrapping it in INT is optional but makes your intent clear.
Exercises
Exercise
A task starts on Monday 2026-11-23 and ends on Friday 2026-11-27. Thursday 2026-11-26 is listed as a holiday in Holidays!A2:A20. What does =NETWORKDAYS(DATE(2026,11,23), DATE(2026,11,27), Holidays!A2:A20) return, and how many working days elapsed after the start, in the sense of turnaround time?
Show answer
It returns 4. The five weekdays are all counted because both ends are inclusive, and the holiday removes one. For elapsed turnaround time, subtract 1 to get 3.
Exercise
Write a formula that gives the due date 7 working days after the date in A2 for a team whose weekend is Friday and Saturday, using the holiday range named Holidays.
Show answer
=WORKDAY.INTL(A2, 7, 7, Holidays). Weekend code 7 means Friday and Saturday. The string form "0000110" gives the same result, since position 5 is Friday and position 6 is Saturday.
Exercise
A formula =NETWORKDAYS(A2, B2, Holidays!A2:A20) ignores the entry 2026-12-25 in the holiday list. Name two causes you would check first.
Show answer
First, check whether the entry is text rather than a real date, for example with =ISNUMBER(Holidays!A2). Second, check whether the date is outside the referenced range or already falls on a weekend. 2026-12-25 is a Friday, so it is not a weekend under the default setting, which makes a text entry or a short range the more likely cause.