NETWORKDAYS Function
NETWORKDAYS Function
The NETWORKDAYS function in Google Sheets calculates the total number of working days (business days) between a specified start date and end date. By default, Saturdays and Sundays are excluded, and you can also provide an optional list of holidays to subtract.
Syntax
=NETWORKDAYS(start_date, end_date, [holidays])
- start_date: The start date of the period.
- end_date: The end date of the period.
- holidays (optional): A cell range containing dates (such as public holidays or company anniversaries) to exclude in addition to weekends.
Practical Examples with a Table
This example calculates the actual working days (business days) from the start and end dates of each project task. A holiday list is entered in E2:E3.
| A (Task) | B (Start Date) | C (End Date) | D (Working Days) | E (Holiday List) | |
|---|---|---|---|---|---|
| 1 | Task | Start Date | End Date | Working Days | Holidays |
| 2 | Requirements Definition | 2026/11/02 | 2026/11/06 | =NETWORKDAYS(B2, C2, $E$2:$E$3) |
2026/11/03 |
| 3 | Design & Development | 2026/11/09 | 2026/11/24 | =NETWORKDAYS(B3, C3, $E$2:$E$3) |
2026/11/23 |
- Result in D2:
4- Out of the 5 days from 2026/11/2 (Mon) to 11/6 (Fri), 11/3 (Tue, holiday) is excluded, returning
4days.
- Out of the 5 days from 2026/11/2 (Mon) to 11/6 (Fri), 11/3 (Tue, holiday) is excluded, returning
- Result in D3:
11- Out of the 16 days from 2026/11/9 (Mon) to 11/24 (Tue), the weekends (4 days) and 11/23 (Mon, holiday)—5 days in total—are excluded, returning
11days.
- Out of the 16 days from 2026/11/9 (Mon) to 11/24 (Tue), the weekends (4 days) and 11/23 (Mon, holiday)—5 days in total—are excluded, returning
Common Errors and Precautions
- When
#VALUE!errors occur:- Occurs if any of
start_date,end_date, orholidayscontains text that cannot be recognized as a date or an invalid value.
- Occurs if any of
- Cannot be used when weekends are not Saturday and Sunday:
NETWORKDAYSis fixed to Saturday and Sunday weekends. If you need to count working days with other non-working days (such as Wednesdays off or Sundays only), use theNETWORKDAYS.INTLfunction.
- When a holiday falls on a weekend:
- Even if a date in the holiday list falls on a Saturday or Sunday, it is not subtracted twice (it is handled properly as a single non-working day).
Frequently Asked Questions
Q. Are the start date and end date counted as working days in NETWORKDAYS?
A. Yes, if both the start date and end date are working days (not a weekend or a specified holiday), both days are included in the count. For example, specifying Monday through Friday returns 5.
Q. What happens if the start date is later than the end date?
A. It does not cause an error; instead, it returns a negative number of working days. For example, if there are 5 working days between the end date and the start date, it displays '-5'.