NETWORKDAYS.INTL Function
Counts workdays between two dates with a custom weekend.
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 |
| weekend | Optional. A number 1-7 or 11-17 selecting weekend days (1 = Sat+Sun default, 2 = Sun only, ... 7 = Fri only, 11 = Sun+Mon, ... 17 = Sat+Sun), or a 7-character string of 0/1 for Mon-Sun where 1 means weekend. | Optional |
| holidays | Optional range or array of dates to exclude as non-working days. | Optional |
Basic Example
Workdays in January 2024 (default Sat/Sun weekend)
=NETWORKDAYS.INTL(DATE(2024, 1, 1), DATE(2024, 1, 31), 1)With the default weekend (code 1, Sat+Sun), January 2024 has 23 weekdays. This matches NETWORKDAYS.
Advanced Examples
Example 1: Custom weekend (Mon and Sun off) over a week
Counting a non-standard work weekA 7-character string defines the off days
=NETWORKDAYS.INTL(DATE(2024, 1, 1), DATE(2024, 1, 7), "1000001")Example 2: Friday-Saturday weekend for a whole month
A schedule where Fri and Sat are offThe weekend string changes which days are skipped
=NETWORKDAYS.INTL(DATE(2024, 1, 1), DATE(2024, 1, 31), "0000110")How NETWORKDAYS.INTL Works
NETWORKDAYS.INTL counts every day from start_date through end_date, subtracts the days marked as weekends by the weekend argument, and then subtracts any dates in the holidays list. Both endpoints are included. The weekend can be a preset code or a 7-character 0/1 string in Monday-to-Sunday order.
Important Notes & Limitations
Available only in Excel 2010 and later.
The weekend string must be exactly seven characters in Monday-to-Sunday order.
If start_date is after end_date, the result is negative.
Common Errors & Fixes
#VALUE!The weekend string is not exactly seven 0/1 characters.Fix: Use a valid 7-character string such as "0000011".
#NUM!An invalid weekend code (not 1-7 or 11-17) was supplied.Fix: Use a supported weekend code or a valid string.
Download Practice File
NETWORKDAYS.INTL
networkdays-intlPractice NETWORKDAYS.INTL with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the NETWORKDAYS.INTL function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps