WorkbookLogic
FunctionDate and timeintermediateNETWORKDAYSIF

NETWORKDAYS Function

By WorkbookLogic

The Excel NETWORKDAYS function counts Monday-to-Friday working days between two dates, including both boundaries and optionally excluding listed holidays.

ExcelLast reviewed Sep 11, 2026
networkdays-function-v1.0.0.xlsx
Excel NETWORKDAYS Function
NETWORKDAYS counts inclusive weekdays and excludes listed holidays.
Source cases, editableNETWORKDAYS examples
ScenarioStart dateEnd dateContextExpectedExampleFormula syntaxResult
Week with holidayAug 3, 2026Aug 7, 20265-Aug holiday4Week with holiday=NETWORKDAYS(B12,C12,$B$20:$B$22)4
One weekdayAug 10, 2026Aug 10, 2026Inclusive day1One weekday=NETWORKDAYS(B13,C13,$B$20:$B$22)1
Weekend spanAug 7, 2026Aug 10, 2026Fri through Mon2Weekend span=NETWORKDAYS(B14,C14,$B$20:$B$22)2
Holiday outside rangeAug 17, 2026Aug 21, 2026No listed holiday5Holiday outside range=NETWORKDAYS(B15,C15,$B$20:$B$22)5
Month openingAug 1, 2026Aug 7, 2026Starts Saturday4Month opening=NETWORKDAYS(B16,C16,$B$20:$B$22)4
Holiday list, editableHow NETWORKDAYS behaves
HolidayDateBoth boundary dates are included when they are weekdays and not listed holidays.
Regional holidayAug 5, 2026Saturday and Sunday are excluded automatically under the standard weekend pattern.
Autumn holidayOct 12, 2026Only listed holidays that fall inside the interval on weekdays reduce the count.
Year-end holidayDec 25, 2026
Reliability checks
The five-day week with one holiday returns four daysOK
A single weekday with no holiday returns one dayOK

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 1.

Time values

Ignored; the function counts whole days.

Nonstandard weekend

Requires NETWORKDAYS.INTL.

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.