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])| Argument | What it means | |
|---|---|---|
start_date | Required | First date of the period (included). |
end_date | Required | Last date of the period (included). |
weekend | Optional | Which 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. |
holidays | Optional | A 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Office | Start | End | Working days |
| 2 | Riyadh | 2026-12-01 | 2026-12-31 | 23 |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Employee | Start | End | Days worked |
| 2 | A. Novak | 2026-12-01 | 2026-12-31 | 13 |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Start | End | Holiday | Shop days |
| 2 | 2026-12-14 | 2026-12-27 | 2026-12-25 | 11 |
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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Danish | ANTAL.ARBEJDSDAGE.INTL |
| Dutch | NETWERKDAGEN.INTL |
| Finnish | TYÖPÄIVÄT.KANSVÄL |
| French | NB.JOURS.OUVRES.INTL |
| German | NETTOARBEITSTAGE.INTL |
| Hungarian | ÖSSZ.MUNKANAP.INTL |
| Italian | GIORNI.LAVORATIVI.TOT.INTL |
| Norwegian (Bokmål) | NETT.ARBEIDSDAGER.INTL |
| Polish | DNI.ROBOCZE.NIESTAND |
| Portuguese (Brazil) | DIATRABALHOTOTAL.INTL |
| Portuguese (Portugal) | DIATRABALHOTOTAL.INTL |
| Russian | ЧИСТРАБДНИ.МЕЖД |
| Spanish | DIAS.LAB.INTL |
| Swedish | NETTOARBETSDAGAR.INT |
| Turkish | TAMİŞGÜNÜ.ULUSL |