Date & time function

NETWORKDAYS.INTL function

Counts working days between two dates with a weekend you choose (e.g. Friday–Saturday or Sunday only) and optional holidays.

Available in Excel 2010 and later, Excel for the web

Excel 2010 and laterWorks in Google Sheets

Syntax

NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
ArgumentWhat it means
start_dateRequiredFirst date of the period (included).
end_dateRequiredLast date of the period (included).
weekendOptionalWhich days are non-working. A code: 1 Sat–Sun (default), 2 Sun–Mon, 3 Mon–Tue, 4 Tue–Wed, 5 Wed–Thu, 6 Thu–Fri, 7 Fri–Sat, 11 Sunday only … 17 Saturday only; or a 7-character text of 0s and 1s for Monday to Sunday, where 1 = day off.
holidaysOptionalA range or array of dates to exclude.

Returns: The number of working days in the period.

How NETWORKDAYS.INTL works

NETWORKDAYS.INTL is the flexible version of NETWORKDAYS. The original function assumes Saturday and Sunday are the weekend, which does not fit offices in Saudi Arabia (Friday–Saturday), shops that close only on Sunday, or part-time staff who work three fixed days a week. Here you specify the weekend yourself.

The weekend argument takes either a number code or a seven-character mask. The mask is the most powerful option: each character stands for a day from Monday to Sunday, 1 means "not a working day" and 0 means "working day". So "0000011" is the normal Saturday–Sunday weekend, and "0101011" describes someone who works Monday, Wednesday and Friday only. Holidays are excluded on top of the weekend days, just as in NETWORKDAYS.

Examples

1Working days in an office with a Friday–Saturday weekend

D2fx=NETWORKDAYS.INTL(B2,C2,7)
ABCD
1OfficeStartEndWorking days
2Riyadh2026-12-012026-12-3123

Result: 23

Code 7 makes Friday and Saturday the weekend. December 2026 has 31 days, of which 8 are Fridays or Saturdays, leaving 23 working days.

2Part-time employee working Monday, Wednesday and Friday

D2fx=NETWORKDAYS.INTL(B2,C2,"0101011")
ABCD
1EmployeeStartEndDays worked
2A. Novak2026-12-012026-12-3113

Result: 13

The mask reads Mon=0 (works), Tue=1, Wed=0, Thu=1, Fri=0, Sat=1, Sun=1. December 2026 contains 13 Mondays, Wednesdays and Fridays combined.

3Sunday-only weekend with a holiday

D2fx=NETWORKDAYS.INTL(A2,B2,11,C2)
ABCD
1StartEndHolidayShop days
22026-12-142026-12-272026-12-2511

Result: 11

Code 11 treats only Sunday as the weekend. The two weeks contain 14 days, minus 2 Sundays and Christmas Day (a Friday) = 11 trading days.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The weekend mask is not exactly 7 characters of 0 and 1, or is "1111111" (no working days).Check the string length; remember it starts on Monday.
#NUM!The weekend code is not a valid number (valid: 1–7 and 11–17).Use one of the listed codes or a text mask.

Tips

  • The mask always starts with Monday, not Sunday — a common slip.
  • Store the mask in a cell per employee (e.g. "0101011") and reference it, so one formula serves staff with different patterns. Keep the cell formatted as Text so the leading zeros survive.
  • Use WORKDAY.INTL with the same weekend argument to project dates rather than count them.

Google Sheets

NETWORKDAYS.INTL also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

NETWORKDAYS.INTL in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishANTAL.ARBEJDSDAGE.INTL
DutchNETWERKDAGEN.INTL
FinnishTYÖPÄIVÄT.KANSVÄL
FrenchNB.JOURS.OUVRES.INTL
GermanNETTOARBEITSTAGE.INTL
HungarianÖSSZ.MUNKANAP.INTL
ItalianGIORNI.LAVORATIVI.TOT.INTL
Norwegian (Bokmål)NETT.ARBEIDSDAGER.INTL
PolishDNI.ROBOCZE.NIESTAND
Portuguese (Brazil)DIATRABALHOTOTAL.INTL
Portuguese (Portugal)DIATRABALHOTOTAL.INTL
RussianЧИСТРАБДНИ.МЕЖД
SpanishDIAS.LAB.INTL
SwedishNETTOARBETSDAGAR.INT
TurkishTAMİŞGÜNÜ.ULUSL

Recipes that use NETWORKDAYS.INTL