formulastreak

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

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.

Website relaunch plan · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = 3
ABCDEFGH
1TaskOwnerStartDueHours6-day weeksHolidays
2Kickoff workshopMara2 Mar 20264 Mar 2026633 Apr 2026
3Content auditJonas5 Mar 202620 Mar 2026246 Apr 2026
4WireframesPriya16 Mar 20262 Apr 2026401 May 2026
5Visual designElif30 Mar 202617 Apr 202656
6CopywritingTomás1 Apr 202624 Apr 202632
7BuildKenji13 Apr 202615 May 2026120
8TestingSofia11 May 202622 May 202630
9LaunchLeo26 May 202627 May 20268

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. 1. NETWORKDAYS.INTL: Working days between two dates, with your own weekend. Here it's given C2, D2, 11 and $H$2:$H$4.
    • start = `C2`: the first day
    • end = `D2`: the last day
    • weekend = `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

ArgumentRequiredWhat it is
start_dateYesThe first day; it's counted if it's a working day.
end_dateYesThe last day; it's counted too.
weekendNoA 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.
holidaysNoA 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.

Practise NETWORKDAYS.INTL on a live sheet

Lesson 28, Weekdays and working days (Unit 7, Dates and time maths), has 5 graded exercises, checked instantly, with steps and hints when you're stuck. Pro