Date & time function

NETWORKDAYS function

Counts working days (Monday to Friday) between two dates, including both ends and optionally skipping a list of holidays.

Available in Excel 2007 and later (earlier versions needed the Analysis ToolPak add-in), Excel for the web

Excel 2007 and laterWorks in Google Sheets

Syntax

NETWORKDAYS(start_date, end_date, [holidays])
ArgumentWhat it means
start_dateRequiredThe first date of the period (counted if it is a working day).
end_dateRequiredThe last date of the period (counted if it is a working day).
holidaysOptionalA range or array of dates to exclude, such as public holidays or company closure days.

Returns: The number of working days. Negative if end_date is before start_date.

How NETWORKDAYS works

NETWORKDAYS counts business days: it takes every date from start to end inclusive, drops Saturdays and Sundays, drops any dates you list as holidays, and returns how many are left. It answers everyday questions such as how many days a project has, how many days a new starter worked in their first month, or how many working days are left before a deadline.

Both the start and end dates count if they are weekdays, so a Monday-to-Friday week returns 5, not 4. Holidays that fall on a weekend are ignored automatically (they would not have been counted anyway). Keep holidays in a separate range — ideally an Excel Table — and reference it, so the list can be updated once a year.

If your weekend is not Saturday–Sunday, or you need part-time patterns, use NETWORKDAYS.INTL.

Examples

1Working days in a project phase

D2fx=NETWORKDAYS(B2,C2)
ABCD
1PhaseStartEndWorking days
2Build2026-03-022026-03-2720

Result: 20

From Monday 2 March to Friday 27 March there are four full weeks: 4 × 5 = 20 working days.

2Excluding Easter holidays

D2fx=NETWORKDAYS(A2,B2,C2:C3)
ABCD
1StartEndHolidaysWorking days
22026-04-012026-04-302026-04-0320
32026-04-06

Result: 20

April 2026 has 22 weekdays. Good Friday (3 Apr) and Easter Monday (6 Apr) are both weekdays, so they are removed: 22 − 2 = 20.

3Working days left until a deadline

B2fx=NETWORKDAYS(TODAY(),A2)
AB
1DeadlineDays left
22026-12-2417

Result: 17

If today is Wednesday 2 Dec 2026, the working days from today through Thursday 24 Dec, counting both, are 17.

4Pro-rata salary for a mid-month starter

C2fx=B2*NETWORKDAYS(A2,EOMONTH(A2,0))/NETWORKDAYS(EOMONTH(A2,-1)+1,EOMONTH(A2,0))
ABC
1Start dateMonthly salaryFirst pay
22026-12-1442002,556.52

Result: 2,556.52

The employee works 14 of December's 23 working days, so the first pay is 4,200 × 14 / 23 = 2,556.52 (cell formatted with 2 decimals). Check your payroll rules — some use calendar days instead.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 17 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!A date argument is text that is not a valid date.Use real date cells; check holiday cells are dates, not text.
Too high a countHoliday cells contain text dates, which are silently ignored.Make sure the holiday range holds real dates (right-aligned by default).

Tips

  • Put holidays in an Excel Table named e.g. Holidays and use NETWORKDAYS(A2,B2,Holidays[Date]) so new dates are picked up automatically.
  • The result includes both end dates. To count days between two dates excluding the start, subtract 1 when the start is a working day.
  • To find a date N working days away rather than count days, use WORKDAY.

Questions

Does NETWORKDAYS include the start and end date?

Yes, both are counted if they are working days. A Monday-to-Friday span returns 5.

How do I count working days with a Friday–Saturday weekend?

Use NETWORKDAYS.INTL with weekend code 7, e.g. =NETWORKDAYS.INTL(A2,B2,7).

Can I count working hours instead?

Multiply the working days by the daily hours, e.g. =NETWORKDAYS(A2,B2)*8, then adjust for partial first and last days if needed.

Google Sheets

NETWORKDAYS also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

NETWORKDAYS in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishANTAL.ARBEJDSDAGE
DutchNETTO.WERKDAGEN
FinnishTYÖPÄIVÄT
FrenchNB.JOURS.OUVRES
GermanNETTOARBEITSTAGE
HungarianÖSSZ.MUNKANAP
ItalianGIORNI.LAVORATIVI.TOT
Norwegian (Bokmål)NETT.ARBEIDSDAGER
PolishDNI.ROBOCZE
Portuguese (Brazil)DIATRABALHOTOTAL
Portuguese (Portugal)DIATRABALHOTOTAL
RussianЧИСТРАБДНИ
SpanishDIAS.LAB
SwedishNETTOARBETSDAGAR
TurkishTAMİŞGÜNÜ

Recipes that use NETWORKDAYS