formulastreak

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

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.

Website relaunch plan · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = 3
ABCDEFGH
1TaskOwnerStartDueHoursWork daysHolidays
2Kickoff workshopMara2 Mar 20264 Mar 2026633 Apr 2026
3Content auditJonas5 Mar 202620 Mar 2026246 Apr 2026
4WireframesPriya16 Mar 20262 Apr 2026401 May 2026
5Visual designElif30 Mar 202617 Apr 202656
6CopywritingTomás1 Apr 202624 Apr 202632
7BuildKenji13 Apr 202615 May 2026120
8TestingSofia11 May 202622 May 202630
9LaunchLeo26 May 202627 May 20268

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. 1. NETWORKDAYS: Counts the working days (Monday to Friday) from C2 to D2, counting both and skipping the holidays in $H$2:$H$4.
    • start = `C2`: the first day
    • end = `D2`: the last day
    • holidays = `$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

ArgumentRequiredWhat it is
start_dateYesThe first day of the period; it counts if it's a weekday.
end_dateYesThe last day of the period; it counts too.
holidaysNoA 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.INTL and 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.

Practise NETWORKDAYS on a live sheet

Lesson 28, Weekdays and working days (Unit 7, Dates and time maths), has 5 graded exercises, checked instantly, with steps and hints when you're stuck. Pro