Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

NETWORKDAYS in Excel: Count Working Days and Skip Holidays

NETWORKDAYS in Excel - explanatory illustration for networkdays function in excel
Illustration: NETWORKDAYS in Excel

Section: Excel & Google Sheets

The NETWORKDAYS function in Excel counts the working days between two dates and leaves out weekends and any holidays you list. =NETWORKDAYS(A2,B2) gives the number of weekdays from the start date to the end date, both included. It is the function behind every "days left" cell in a project tracker, every leave entitlement calculation and every delivery promise that skips Saturdays. This guide covers the syntax, the holiday list, the difference from WORKDAY, and the errors that come from dates stored as text. The sample data is made up.

What NETWORKDAYS counts

Microsoft's description is precise: it returns the number of whole working days between a start date and an end date, where working days exclude weekends and any dates you identify as holidays. Saturday and Sunday are the weekend by default. A task that starts on a Monday and ends on the Friday of the same week returns 5. A task that starts and ends on the same Monday returns 1, because both ends count.

The syntax

=NETWORKDAYS(start_date, end_date, [holidays])

  • start_date is required and holds the first day.
  • end_date is required and holds the last day.
  • holidays is optional. Give a range of dates or an array of date values to leave out, such as public holidays or a company shutdown.
Arguments (made up) - explanatory illustration for networkdays function in excel
Arguments (made up) (explanatory illustration, not a software screenshot).

A first example

With a project start in A2 and a due date in B2, =NETWORKDAYS(A2,B2) tells you how many working days you have. Put =NETWORKDAYS(TODAY(),B2) beside it and you get the working days left from today, which updates every morning without any editing. That pair is enough for most trackers.

Exclude holidays

List the dates in a column, name the range, and add it as the third argument: =NETWORKDAYS(A2,B2,$H$2:$H$12). Every date in the list is removed from the count if it falls inside the range, whether it is a weekend or not. A holiday that falls on a Saturday makes no difference, because the day was already excluded. Keep the list in date format, not text, and update it once a year.

Holiday list (made up) - explanatory illustration for networkdays function in excel
Holiday list (made up) (explanatory illustration, not a software screenshot).

Work out a deadline

NETWORKDAYS returns a count from two date endpoints. WORKDAY goes the other way: give it a start date and a number of working days and it returns the date you will finish. =WORKDAY(A2,10,$H$2:$H$12) answers "if this starts today, when is the tenth working day?". Use NETWORKDAYS to report how long something took and WORKDAY to plan when it will be done. Both take the same holiday range, so the two agree with each other.

A different weekend

Not every business closes on Saturday and Sunday. NETWORKDAYS.INTL takes a weekend code or a seven character mask, so you can count a Friday and Saturday weekend, or a single day off. =NETWORKDAYS.INTL(A2,B2,7,$H$2:$H$12) treats Friday and Saturday as the weekend. The codes run from 1 to 7 for the common pairs and 11 to 17 for the single day options, and Microsoft documents the full list on the NETWORKDAYS.INTL page. Check the code against your own week before you rely on it.

Count or plan - explanatory illustration for networkdays function in excel
Count or plan (explanatory illustration, not a software screenshot).

Combine with other date logic

NETWORKDAYS returns a number, so it can drive conditional formatting or an IF. A rule such as =IF(NETWORKDAYS(TODAY(),B2)<=3,"Due soon","On track") turns the tracker into something people read at a glance. Add colour with conditional formatting based on another cell and the row warns before the deadline, not after. If you need the plain calendar difference instead, with weekends included, our guide to calculating days between two dates covers the simple subtraction.

Add months instead of days

For contract dates and payment terms, months are the useful unit. EDATE adds a number of months to a date and keeps the day, and EOMONTH returns the last day of a month. Combining them with NETWORKDAYS lets you answer questions such as "how many working days from today until the end of the month". Our guide to EDATE and EOMONTH has the patterns.

Working days in a month or a leave year

To count the working days in a given month, give the function the first and last day of that month: =NETWORKDAYS(DATE(2026,11,1),EOMONTH(DATE(2026,11,1),0),$H$2:$H$12). Change the year and month in the DATE and the count follows. The same formula is the base for a leave entitlement: multiply the working days by the daily allowance, then subtract the days already taken from a log. Because the holiday range is part of the formula, the working-day count reflects listed holidays. Do not equate this count with a legal leave entitlement; that depends on the applicable policy and law.

Problems - explanatory illustration for networkdays function in excel
Problems (explanatory illustration, not a software screenshot).

Common problems

  • #VALUE! One of the arguments is not a valid date, usually because it was typed as text. Use DATE or convert the column.
  • The count is one day too high. Both ends count. If you need to exclude the start date, use =NETWORKDAYS(A2+1,B2,holidays) for a forward interval. Subtracting 1 blindly is wrong when the start is a weekend or holiday.
  • Holidays are ignored. The holiday range is outside the dates, or the dates in it are text. Check the format.
  • The result is negative. The end date is earlier than the start date. Swap them or wrap the formula in ABS.
  • Weekend days differ by country. Use NETWORKDAYS.INTL with the right code rather than editing the calendar by hand.

Questions and answers

Does NETWORKDAYS include the start and end date?

Yes, both count when they are working days. The same working Monday as both endpoints returns 1; that Monday through the following Monday returns 6 if there are no holidays.

What is the difference between NETWORKDAYS and WORKDAY?

NETWORKDAYS counts working days between two dates. WORKDAY returns the date that is a set number of working days away.

Can I count a six day week?

Yes, with NETWORKDAYS.INTL and the weekend code for Sunday only.

Does NETWORKDAYS work in Google Sheets?

Yes, with the same three arguments, and NETWORKDAYS.INTL is there too.

Why does the holiday list not change the total?

The dates in it probably sit outside the start and end range, or they were pasted as text. Both are common after copying from a web page.

Official references

العربية