Practice free

NETWORKDAYS function

NETWORKDAYS counts the weekdays, Monday to Friday, between two dates, including both ends and minus any holidays you list. It is used for lead times, service deadlines and project durations.

Example

Read it as a sentence: count the weekdays from January 1, 2024 through January 31, 2024, which gives 23.

Practice this in the app

Syntax

NETWORKDAYS(start_date, end_date, [holidays])

Arguments in [square brackets] are optional.

start_date (required)
First date.
end_date (required)
Last date.
holidays (optional)
Optional list of dates to exclude as holidays.

Returns: The number of working days, Monday to Friday, in the range.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=NETWORKDAYS(DATE(2026,1,1),DATE(2026,1,31)) 22 January 2026
=NETWORKDAYS(DATE(2026,1,31),DATE(2026,1,1)) -22 Reversed
=NETWORKDAYS(DATE(2026,1,10),DATE(2026,1,10)) 0 Single Saturday
=NETWORKDAYS(DATE(2026,1,1),DATE(2026,1,31),{46023,46023}) 21 Duplicate holiday constants
=NETWORKDAYS("1/1/2026","1/31/2026") 22 Text dates
=NETWORKDAYS(DATE(2026,1,1.9),DATE(2026,1,9.9)) 7 Fractional dates
=NETWORKDAYS(DATE(2026,1,1),DATE(2026,1,31),{"a"}) #VALUE! Text holiday
=NETWORKDAYS("x",1) #VALUE! Bad date

Watch out for

  • Both start and end dates are counted when they are workdays.
  • Holidays should be real dates, not text.
  • Assumes Saturday and Sunday off; use NETWORKDAYS.INTL for other weekends.

Where it works

Excel
NETWORKDAYS is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Date and time functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .