Dates function
NETWORKDAYS function in Google Sheets and Excel
NETWORKDAYS counts the working days (Monday to Friday) between two dates, both included, minus any holidays.
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(start_date, end_date, [holidays])Arguments in [brackets] are optional. Google Sheets writes it NETWORKDAYS(start_date, end_date, [holidays]).
Example
=NETWORKDAYS(C2,D2,$H$2:$H$4) reads: Count the weekdays from the task's start in C2 to its due date in D2, leaving out the holiday dates in $H$2:$H$4.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Task | Owner | Start | Due | Hours | Work days | 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: Monday 2 to Wednesday 4 March is three working days.
How the spreadsheet calculates it
Counts the working days (Monday to Friday) from C2 to D2, counting both and skipping the holidays in $H$2:$H$4.
- 1. NETWORKDAYS: Counts the working days (Monday to Friday) from
C2toD2, counting both and skipping the holidays in$H$2:$H$4.start=`C2`: the first dayend=`D2`: the last dayholidays=`$H$2:$H$4`: optional
More NETWORKDAYS examples
=NETWORKDAYS(C2,D9,$H$2:$H$4)Working days for the whole project, holidays skipped: 60.=NETWORKDAYS(C2,D2)Working days for one task, no holidays.=NETWORKDAYS(TODAY(),D2,$H$2:$H$4)-1Working days left before the due date, not counting today.=NETWORKDAYS(DATE(2026,4,1),EOMONTH(DATE(2026,4,1),0),$H$2:$H$4)Working days in April 2026, the two holidays left out.
Paste any of these into the formula explainer to see it step by step.
Tips
- Keep holidays in one locked list and point every formula at it.
- Measure the whole project with the first start and the last due date: from 2 Mar to 27 May 2026 that's 60 working days on this sheet.
- Subtract 1 if you want the days between two dates rather than including both.
What NETWORKDAYS is used for
Project plans and timelines, service-level targets counted in business days, payroll periods, and how many days a ticket waited, leaving out weekends and company holidays.
Arguments
| Argument | Required | What it is |
|---|---|---|
| start_date | Yes | The first day of the period; it counts if it's a weekday. |
| end_date | Yes | The last day of the period; it counts too. |
| holidays | No | A range (or array) of dates to skip, such as public holidays. Lock it with $ before filling down. |
Common mistakes
Forgetting that both ends count: 2 to 4 March is 3 days, not 2.
Not locking the holiday range before filling down.
Typing holidays as text in the list: they must be real dates, or they're not skipped.
Using it for a team that works weekends or a Friday–Saturday weekend: use
NETWORKDAYS.INTLand say which days are the weekend.
In Google Sheets
Google Sheets has NETWORKDAYS with the same arguments (start_date, end_date, [holidays]) and the same Saturday–Sunday weekend.
Errors you may see with NETWORKDAYS
- #VALUE!: A date argument, or a date in the holiday list, isn't a valid date.
Questions
Does NETWORKDAYS include the start and end date?
Yes, both. Monday to Wednesday is 3 working days. If you want the days in between only, subtract 1.
How do I count working days with a different weekend?
Use NETWORKDAYS.INTL, which takes a weekend code: 7 is Friday and Saturday, 11 is Sunday only.
How many working days are left until a deadline?
NETWORKDAYS(TODAY(), deadline, holidays) counts today as well; subtract 1 if today shouldn't count.
How do I calculate working hours?
Multiply the days by the hours in a working day: NETWORKDAYS(C2,D2,$H$2:$H$4)*8.
Sources
Official documentation the facts on this page were checked against.