NETWORKDAYS function
Counts working days (Monday to Friday) between two dates, including both ends and optionally skipping a list of holidays.
Available in Excel 2007 and later (earlier versions needed the Analysis ToolPak add-in), Excel for the web
Excel 2007 and laterWorks in Google Sheets
Syntax
NETWORKDAYS(start_date, end_date, [holidays])| Argument | What it means | |
|---|---|---|
start_date | Required | The first date of the period (counted if it is a working day). |
end_date | Required | The last date of the period (counted if it is a working day). |
holidays | Optional | A range or array of dates to exclude, such as public holidays or company closure days. |
Returns: The number of working days. Negative if end_date is before start_date.
How NETWORKDAYS works
NETWORKDAYS counts business days: it takes every date from start to end inclusive, drops Saturdays and Sundays, drops any dates you list as holidays, and returns how many are left. It answers everyday questions such as how many days a project has, how many days a new starter worked in their first month, or how many working days are left before a deadline.
Both the start and end dates count if they are weekdays, so a Monday-to-Friday week returns 5, not 4. Holidays that fall on a weekend are ignored automatically (they would not have been counted anyway). Keep holidays in a separate range — ideally an Excel Table — and reference it, so the list can be updated once a year.
If your weekend is not Saturday–Sunday, or you need part-time patterns, use NETWORKDAYS.INTL.
Examples
1Working days in a project phase
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Phase | Start | End | Working days |
| 2 | Build | 2026-03-02 | 2026-03-27 | 20 |
Result: 20
From Monday 2 March to Friday 27 March there are four full weeks: 4 × 5 = 20 working days.
2Excluding Easter holidays
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Start | End | Holidays | Working days |
| 2 | 2026-04-01 | 2026-04-30 | 2026-04-03 | 20 |
| 3 | 2026-04-06 |
Result: 20
April 2026 has 22 weekdays. Good Friday (3 Apr) and Easter Monday (6 Apr) are both weekdays, so they are removed: 22 − 2 = 20.
3Working days left until a deadline
| A | B | |
|---|---|---|
| 1 | Deadline | Days left |
| 2 | 2026-12-24 | 17 |
Result: 17
If today is Wednesday 2 Dec 2026, the working days from today through Thursday 24 Dec, counting both, are 17.
4Pro-rata salary for a mid-month starter
| A | B | C | |
|---|---|---|---|
| 1 | Start date | Monthly salary | First pay |
| 2 | 2026-12-14 | 4200 | 2,556.52 |
Result: 2,556.52
The employee works 14 of December's 23 working days, so the first pay is 4,200 × 14 / 23 = 2,556.52 (cell formatted with 2 decimals). Check your payroll rules — some use calendar days instead.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#VALUE! | A date argument is text that is not a valid date. | Use real date cells; check holiday cells are dates, not text. |
Too high a count | Holiday cells contain text dates, which are silently ignored. | Make sure the holiday range holds real dates (right-aligned by default). |
Tips
- Put holidays in an Excel Table named e.g.
Holidaysand useNETWORKDAYS(A2,B2,Holidays[Date])so new dates are picked up automatically. - The result includes both end dates. To count days between two dates excluding the start, subtract 1 when the start is a working day.
- To find a date N working days away rather than count days, use WORKDAY.
Questions
Does NETWORKDAYS include the start and end date?
Yes, both are counted if they are working days. A Monday-to-Friday span returns 5.
How do I count working days with a Friday–Saturday weekend?
Use NETWORKDAYS.INTL with weekend code 7, e.g. =NETWORKDAYS.INTL(A2,B2,7).
Can I count working hours instead?
Multiply the working days by the daily hours, e.g. =NETWORKDAYS(A2,B2)*8, then adjust for partial first and last days if needed.
Google Sheets
NETWORKDAYS also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
NETWORKDAYS 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 |
| Dutch | NETTO.WERKDAGEN |
| Finnish | TYÖPÄIVÄT |
| French | NB.JOURS.OUVRES |
| German | NETTOARBEITSTAGE |
| Hungarian | ÖSSZ.MUNKANAP |
| Italian | GIORNI.LAVORATIVI.TOT |
| Norwegian (Bokmål) | NETT.ARBEIDSDAGER |
| Polish | DNI.ROBOCZE |
| Portuguese (Brazil) | DIATRABALHOTOTAL |
| Portuguese (Portugal) | DIATRABALHOTOTAL |
| Russian | ЧИСТРАБДНИ |
| Spanish | DIAS.LAB |
| Swedish | NETTOARBETSDAGAR |
| Turkish | TAMİŞGÜNÜ |
Recipes that use NETWORKDAYS
- How to calculate the number of days between two dates in Excel
- How to count working days between two dates in Excel
- How to make a Gantt chart with conditional formatting in Excel