Dates

NETWORKDAYS excluding holidays

NETWORKDAYS counts Monday–Friday days between two dates, including both the start and end date, and skips any dates in your holiday list.

All Excel versions and Google Sheets

The formula

Excel & Google SheetsExcelGoogle Sheets
=NETWORKDAYS(A2,B2,D2:D3)
In F2 → 21
Without holidaysExcelGoogle Sheets
=NETWORKDAYS(A2,B2)
In F3 → 23
✓ Tested. All 2 Excel results in this example were recalculated in LibreOffice Calc 25.2 and matched the values shown.

Worked example

Paste the data below into a blank sheet starting at cell A1 (or download the cheat sheet, where every example is set up). Highlighted cells hold the formulas and show the expected results.

ABCDEF
1StartEndHolidays
2Dec 1, 2026Dec 31, 2026Dec 24, 202621
3Dec 25, 202623

How it works

A2
Start date (counted if it's a weekday).
B2
End date (also counted).
D2:D3
Optional range of holiday dates to skip. Must be real dates, not text.

Common errors and fixes

Why does the formula return #VALUE!?

A date is stored as text. Convert with DATEVALUE or re-enter it.

One day too many?

NETWORKDAYS includes both ends. Subtract 1 if you need days between.

Holiday not excluded?

The holiday cell contains text like "Dec 25". Enter a real date.

Does this work in Google Sheets?

Yes. The formulas on this page work the same way in Google Sheets.