SheetsLessons
Date & Time function

NETWORKDAYS function in Google Sheets

NETWORKDAYS counts the working days (Monday to Friday) between two dates, including both the start and the end, and can leave out a list of holidays. Use it for project timelines, SLA tracking and payroll days.

Syntax

=NETWORKDAYS(start_date, end_date, [holidays])
start_date
The first day of the period.
end_date
The last day of the period.
holidays
Optional. A range of dates to skip, such as public holidays.

Practice NETWORKDAYS

Task 1 of 2

How many working days (Mon to Fri) does the first project span, counting the start and end days? Answer in D2.

D2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

NETWORKDAYS examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1TaskStartDueHolidays
2Kickoff1/5/20261/9/20261/19/2026
3Design1/12/20262/13/20262/16/2026
4Build2/16/20264/30/20265/25/2026
5Launch5/4/20265/29/2026
Project schedule (column D lists public holidays)
FormulaResultWhat it shows
=NETWORKDAYS(B2, C2)5Monday to Friday of one week is 5, both ends included.
=NETWORKDAYS(B3, C3)25Working days in the Design phase.
=NETWORKDAYS(B3, C3, D2:D4)24The same, minus the holiday in that period.
=NETWORKDAYS(B2, C5, D2:D4)102Working days from Kickoff to Launch, excluding the holidays.
=NETWORKDAYS(C3, B3)-25Dates in the wrong order give a negative count.

Tips and common mistakes

  • Both the start and end dates are counted if they are weekdays. DAYS, by contrast, doesn't count the start day.
  • Holidays that fall on a weekend are ignored, since weekends aren't counted anyway.
  • For a weekend other than Saturday and Sunday, Sheets has NETWORKDAYS.INTL.
  • Keep holidays in their own range and lock it with $ signs ($D$2:$D$4) before copying the formula down.

Related functions