Dates function
NETWORKDAYS.INTL function in Google Sheets and Excel
NETWORKDAYS.INTL counts the working days between two dates, with the weekend days and holidays you choose.
Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet
- Excel 2016
- Excel 2019
- Excel 2021
- Excel 2024
- Microsoft 365
- Google Sheets
Syntax
NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])Arguments in [brackets] are optional. Google Sheets writes it NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]).
Example
=NETWORKDAYS.INTL(C2,D2,11,$H$2:$H$4) reads: Count the working days from the start date C2 to the due date D2, with only Sundays off and the holidays in H2:H4 left out.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Task | Owner | Start | Due | Hours | 6-day weeks | Holidays | |
| 2 | Kickoff workshop | Mara | 2 Mar 2026 | 4 Mar 2026 | 6 | 3 | 3 Apr 2026 | |
| 3 | Content audit | Jonas | 5 Mar 2026 | 20 Mar 2026 | 24 | 6 Apr 2026 | ||
| 4 | Wireframes | Priya | 16 Mar 2026 | 2 Apr 2026 | 40 | 1 May 2026 | ||
| 5 | Visual design | Elif | 30 Mar 2026 | 17 Apr 2026 | 56 | |||
| 6 | Copywriting | Tomás | 1 Apr 2026 | 24 Apr 2026 | 32 | |||
| 7 | Build | Kenji | 13 Apr 2026 | 15 May 2026 | 120 | |||
| 8 | Testing | Sofia | 11 May 2026 | 22 May 2026 | 30 | |||
| 9 | Launch | Leo | 26 May 2026 | 27 May 2026 | 8 |
F2 shows 3: with only Sundays off, 2 to 4 March is still three working days.
How the spreadsheet calculates it
Working days between two dates, with your own weekend. Here it's given C2, D2, 11 and $H$2:$H$4.
- 1. NETWORKDAYS.INTL: Working days between two dates, with your own weekend. Here it's given
C2,D2,11and$H$2:$H$4.start=`C2`: the first dayend=`D2`: the last dayweekend=`11`: a weekend code like `11` (Sunday only), or a mask like `"0000011"`holidays=`$H$2:$H$4`: optional
More NETWORKDAYS.INTL examples
=NETWORKDAYS.INTL(C2,D2,11,$H$2:$H$4)Working days with only Sunday off, minus holidays.=NETWORKDAYS.INTL(C2,D2,7)Working days with a Friday–Saturday weekend.=NETWORKDAYS.INTL(C2,D2,"0000011")The same as the default Saturday–Sunday weekend, written as a string.
Paste any of these into the formula explainer to see it step by step.
Tips
- Keep holidays in a locked range (
$H$2:$H$20) so every row uses the same list. - Use the seven-character string when no code fits, for example a weekend on Wednesday and Sunday: "0010001".
- Check that both dates are real dates with ISNUMBER before trusting the count.
- Remember that both ends count: a task from Monday to Friday is five working days, not four.
What NETWORKDAYS.INTL is used for
Counting working days in projects, SLAs and payroll periods for teams whose weekend isn't Saturday and Sunday, or who work six days a week.
Arguments
| Argument | Required | What it is |
|---|---|---|
| start_date | Yes | The first day; it's counted if it's a working day. |
| end_date | Yes | The last day; it's counted too. |
| weekend | No | A code (1 Saturday–Sunday, the default; 7 Friday–Saturday; 11 Sunday only) or a seven-character string of 0s and 1s starting Monday, 1 meaning a day off. |
| holidays | No | A range of dates to leave out, such as $H$2:$H$4. |
Common mistakes
Writing the mask starting on Sunday: it always starts on Monday.
Using text that only looks like dates: the function needs real dates.
Writing the weekend string with Sunday first: it starts on Monday.
In Google Sheets
Google Sheets has NETWORKDAYS.INTL with the same weekend codes and the same Monday-first string.
Errors you may see with NETWORKDAYS.INTL
- #VALUE!: A date argument is text that isn't a date.
Questions
NETWORKDAYS or NETWORKDAYS.INTL?
NETWORKDAYS always treats Saturday and Sunday as the weekend; the .INTL version lets you choose.
Does it count both the start and end date?
Yes, both are counted when they're working days.
How do I add working days to a date?
Use WORKDAY.INTL, which takes the same weekend codes: WORKDAY.INTL(C2, 10, 11, $H$2:$H$4) is 10 working days after C2 with only Sundays off.
Sources
Official documentation the facts on this page were checked against.