Contact

NETWORKDAYS Function in Microsoft Excel: Syntax, Examples & Compatibility

Date & Time Intermediate Microsoft Excel

Learn how to count workdays in a date interval without manually excluding weekends in Microsoft Excel. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: NETWORKDAYS counts working dates in an interval, including qualifying endpoints and excluding Saturday, Sunday and supplied holidays. It returns a number of days, not a due date and not elapsed hours.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
  • Checked: October 14, 2026; official NETWORKDAYS reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and input setup

=NETWORKDAYS(start_date, end_date, [holidays])

Examples use English function names and comma separators. Enter formula inputs exactly as shown, keep outputs outside the input cells, and use the specified date or numeric output format.

Start and end dates are required. Holidays is an optional date range or an array of date serials to exclude. Use real dates, such as results of DATE, and format the result as General or Number. Formatting a day count as a date can make the answer misleading.

Two original worked controls

Put =DATE(2026,6,3) in A2, representing the Wednesday exclusion in the second example.

=NETWORKDAYS(DATE(2026,6,1),DATE(2026,6,5))
=NETWORKDAYS(DATE(2026,6,1),DATE(2026,6,5),A2)

Expected results are 5 and 4. Monday June 1 through Friday June 5 contains five weekdays including both endpoints; excluding Wednesday leaves four. A holiday is an input to the calculation, not something inferred from your location.

Microsoft’s date-calculation quick reference explicitly describes endpoint inclusion. Its general claim that NETWORKDAYS is one more than DAYS does not apply across weekends or holidays; the calendar still matters.

Example: count a complete two-week period

For June 1 through June 12, 2026:

=NETWORKDAYS(DATE(2026,6,1),DATE(2026,6,12))

Expected count: 10. There are two Monday-to-Friday blocks. Ordinary end-minus-start is 11 calendar days, so adding one to that difference gives 12 calendar dates, not ten working dates.

Put =DATE(2026,6,3) in H2 and =DATE(2026,6,5) in H3:

=NETWORKDAYS(DATE(2026,6,1),DATE(2026,6,12),$H$2:$H$3)

Expected result: 8. Both excluded dates are weekdays in the interval. They are illustrative company-calendar exclusions, not a claim about public holidays.

Same-day and weekend controls

=NETWORKDAYS(DATE(2026,6,1),DATE(2026,6,1))
=NETWORKDAYS(DATE(2026,6,6),DATE(2026,6,6))
=NETWORKDAYS(DATE(2026,6,3),DATE(2026,6,3),$H$2:$H$3)

Expected results are 1, 0 and 0. The first is a working Monday, the second a Saturday, and the third an explicitly excluded Wednesday. An inclusive interval does not mean every endpoint is counted regardless of the calendar.

Friday June 5 through Monday June 8 without holidays gives 2, while DAYS over those endpoints gives 3. The first counts two qualifying dates; the second measures elapsed calendar days.

Advanced example: avoid double-counting a reporting boundary

With no holidays, June 1–5 has 5 workdays and June 5–12 has 6. Adding them gives 11 even though June 1–12 has only 10. The shared Friday June 5 appears in both inclusive intervals.

Instead partition the period into June 1–4 and June 5–12, whose counts are 4 and 6. Their sum is 10. The same reasoning applies when combining multiple teams’ reporting intervals: decide whether they represent distinct dates or overlapping observations before summing.

For a report that excludes its starting date, begin the interval on the next date rather than assuming that subtracting one is always correct. For example, June 6 is a Saturday; an unqualified minus-one adjustment would remove a workday that was never counted.

Advanced example: a month-capacity model

=NETWORKDAYS(DATE(2026,6,1),DATE(2026,6,30),$H$2:$H$3)

Expected result: 20, from 22 weekdays minus the two exclusions. Under a separately stated planning assumption of 7.5 available hours on each working date, 20*7.5 gives 150 hours.

NETWORKDAYS did not calculate those hours. It does not know shift lengths, individual absences, partial holidays or resource overlap. Keep the working-calendar count separate from capacity assumptions so a change can be checked in the right place.

For a fill-down list of project start/end dates in B:C, use =NETWORKDAYS(B2,C2,$H$2:$H$3) outside the source columns. The dates move with each row; the holiday range remains fixed.

Errors, order and unsupported edge assumptions

Microsoft documents #VALUE! when an argument is not a valid date and recommends avoiding ambiguous text dates. Its captured worksheet reference does not state a complete reversed-interval, fractional-timestamp or mixed holiday-type rule, so the worked controls use ordered date-only inputs and valid distinct holidays.

If a business report requires end on or after start, validate that rule explicitly. Do not hide reversed inputs using ABS and then label the count an approved schedule.

The standard function has no weekend parameter. Microsoft points to NETWORKDAYS.INTL for another recurring weekend pattern. WORKDAY solves the different problem of finding a date a specified number of working days away; DAYS measures an elapsed calendar interval.

WORKDAY in Microsoft Excel | WORKDAY in Google Sheets | WEEKDAY in Microsoft Excel | WEEKDAY in Google Sheets | COUNTIFS in Microsoft Excel | COUNTIFS in Google Sheets | editorial testing standards

The full manuscript and original worked formulas were reviewed on October 14, 2026. The approved availability/history section is unchanged. Expected results are independently calculated date/arithmetic models or explicitly documented rules, not native Excel output. Current-clock formulas have conditional rather than fixed outputs. Client-specific time-zone, mixed-type and boundary behavior is not inferred from another spreadsheet.