NETWORKDAYS Function
The Excel NETWORKDAYS function counts Monday-to-Friday working days between two dates, including both boundaries and optionally excluding listed holidays.
| Excel NETWORKDAYS Function | ||||||||
| NETWORKDAYS counts inclusive weekdays and excludes listed holidays. | ||||||||
| Source cases, editable | NETWORKDAYS examples | |||||||
| Scenario | Start date | End date | Context | Expected | Example | Formula syntax | Result | |
| Week with holiday | Aug 3, 2026 | Aug 7, 2026 | 5-Aug holiday | 4 | Week with holiday | =NETWORKDAYS(B12,C12,$B$20:$B$22) | 4 | |
| One weekday | Aug 10, 2026 | Aug 10, 2026 | Inclusive day | 1 | One weekday | =NETWORKDAYS(B13,C13,$B$20:$B$22) | 1 | |
| Weekend span | Aug 7, 2026 | Aug 10, 2026 | Fri through Mon | 2 | Weekend span | =NETWORKDAYS(B14,C14,$B$20:$B$22) | 2 | |
| Holiday outside range | Aug 17, 2026 | Aug 21, 2026 | No listed holiday | 5 | Holiday outside range | =NETWORKDAYS(B15,C15,$B$20:$B$22) | 5 | |
| Month opening | Aug 1, 2026 | Aug 7, 2026 | Starts Saturday | 4 | Month opening | =NETWORKDAYS(B16,C16,$B$20:$B$22) | 4 | |
| Holiday list, editable | How NETWORKDAYS behaves | |||||||
| Holiday | Date | Both boundary dates are included when they are weekdays and not listed holidays. | ||||||
| Regional holiday | Aug 5, 2026 | Saturday and Sunday are excluded automatically under the standard weekend pattern. | ||||||
| Autumn holiday | Oct 12, 2026 | Only listed holidays that fall inside the interval on weekdays reduce the count. | ||||||
| Year-end holiday | Dec 25, 2026 | |||||||
| Reliability checks | ||||||||
| The five-day week with one holiday returns four days | OK | |||||||
| A single weekday with no holiday returns one day | OK | |||||||
Overview
The Excel NETWORKDAYS function counts working days from start_date through end_date. Saturday and Sunday are excluded automatically, and an optional holiday list removes additional weekday dates.
Quick reference
Syntax: =NETWORKDAYS(start_date, end_date, [holidays])
Returns: The number of eligible working days in the inclusive date interval. (number)
Arguments:
start_date(required) — The first date in the inclusive interval.end_date(required) — The last date in the inclusive interval.holidays(optional) — A range or array of true dates to exclude when they fall on otherwise eligible weekdays.
The bracketed holidays argument is optional. The start and end dates are included when they are eligible weekdays, while supplied holiday dates are excluded.
Common uses
- Measure project or service durations in working days.
- Calculate available workdays in a month.
- Track turnaround time against weekday-based service levels.
- Estimate accrued benefits or staffing capacity.
Calculations
NETWORKDAYS evaluates every calendar date in the interval, including both boundaries. Monday through Friday count as workdays unless the date appears in holidays; Saturday and Sunday do not count.
A holiday that falls on a weekend does not reduce the result again. Time fractions attached to dates are ignored because the function counts whole working days.
The weekend rule is fixed to Saturday and Sunday. Use NETWORKDAYS.INTL for other weekend patterns.
Function behavior
Situation | Behavior |
|---|---|
Start and end dates | Both are included when eligible. |
Saturday and Sunday | Excluded automatically. |
Weekday holiday | Excluded when listed. |
Weekend holiday | Has no additional effect. |
Same eligible weekday | Returns |
Time values | Ignored; the function counts whole days. |
Nonstandard weekend | Requires |
Invalid holiday text | May be ignored or cause errors; use true dates. |
Common errors
Assuming the boundaries are exclusive
What happens:
The result appears one or two days too high.
Better approach:
Remember that eligible start and end dates both count.
Supplying holiday labels instead of dates
What happens:
The intended holidays are not reliably excluded.
Better approach:
Store holidays as true Excel dates in a visible range.
Using NETWORKDAYS for a custom weekend
What happens:
Saturday and Sunday are excluded even when the organization's schedule differs.
Better approach:
Use NETWORKDAYS.INTL with an explicit weekend pattern.
Example
Example 1 — Exclude a Weekday Holiday
=NETWORKDAYS(B12,C12,$B$20:$B$22)
From Monday 3-Aug-2026 through Friday 7-Aug-2026, with 5-Aug listed as a holiday, the workbook returns 4.
Example 2 — Count One Weekday
=NETWORKDAYS(B13,C13,$B$20:$B$22)
When start and end are the same eligible weekday, the result is 1.
Example 3 — Ignore Holidays
=NETWORKDAYS(A1,B1)
Only Saturdays and Sundays are excluded because the optional holiday argument is omitted.
Example workbook
The workbook contains a NETWORKDAYS Example sheet with five editable start and end date cases plus a visible holiday list. Live formulas demonstrate inclusive weekdays, holidays, and boundary behavior, while two checks confirm a four-day week and a one-weekday interval. A Notes sheet explains weekend rules.
Key takeaway
NETWORKDAYS counts eligible weekdays inclusively, so maintain a true-date holiday list and switch to NETWORKDAYS.INTL when weekends are not Saturday and Sunday.