NETWORKDAYS Function
Counts workdays between two dates.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| start_date | The first date of the period. | Required |
| end_date | The last date of the period. Both start and end dates are counted. | Required |
| holidays | Optional range or array of dates to exclude as non-working days. | Optional |
Basic Example
Workdays in January 2024
=NETWORKDAYS(DATE(2024, 1, 1), DATE(2024, 1, 31))January 2024 has 31 days; after removing the 4 Saturdays and 4 Sundays, 23 weekdays remain. Both endpoints are included.
Advanced Examples
Example 1: Excluding a holiday
Counting workdays with one mid-month holidayThe holiday reduces the count by one
=NETWORKDAYS(DATE(2024, 1, 1), DATE(2024, 1, 31), {"2024-01-15"})Example 2: Reversed dates give a negative count
Accidentally swapping start and endWhen start is after end, the result is negative
=NETWORKDAYS(DATE(2024, 1, 31), DATE(2024, 1, 1))How NETWORKDAYS Works
NETWORKDAYS counts every day from start_date through end_date, subtracts Saturdays and Sundays, and then subtracts any dates found in the holidays list. Both endpoints are included in the count.
Important Notes & Limitations
Only Saturday and Sunday weekends are supported; use NETWORKDAYS.INTL for custom weekend days.
Both endpoints are counted, which differs from WORKDAY's behavior.
If start_date is after end_date, the result is negative.
Common Errors & Fixes
#VALUE!A non-date argument or a holiday Excel cannot read as a date.Fix: Ensure all date arguments are real date serials.
Negative count unexpectedlyThe start date is later than the end date.Fix: Put the earlier date first (start_date, end_date).
Download Practice File
NETWORKDAYS
networkdaysPractice NETWORKDAYS with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the NETWORKDAYS function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps