Start free
Date & time

NETWORKDAYS function

NETWORKDAYS counts the working days between two dates, Monday to Friday, with both dates included and any holidays you list left out. NETWORKDAYS.INTL does the same for any other weekend.

Available in Excel 2007 and later, Excel for the web and Google Sheets; NETWORKDAYS.INTL from Excel 2010

Key takeaways

  • =NETWORKDAYS(start, end, holidays) counts Monday to Friday, with both dates included.
  • Holidays are a range of dates; one that falls on a weekend isn't taken off twice.
  • For another weekend, use NETWORKDAYS.INTL with a weekend code: 7 is Friday and Saturday off.
  • Subtracting one date from another counts calendar days, weekends and all.
On this page

NETWORKDAYS syntax

=NETWORKDAYS(start_date, end_date, [holidays])
ArgumentRequiredWhat it means
start_dateYesThe first day. It counts if it's a working day.
end_dateYesThe last day, which counts too. If it's before start_date, the result is negative.
holidaysNoA range of dates to leave out, such as public holidays or days the office is closed. Order doesn't matter.

Examples

Working days in a month

January 2026 has 31 days, and the weekdays among them are the working days.

C2=NETWORKDAYS(A2,B2)
RowABC
1FromToWorking days
21 Jan 202631 Jan 202622
=NETWORKDAYS(A2,B2) → 22

Leave out holidays

The third argument lists days off. All three here fall on weekdays, so each takes one day off the count.

C2=NETWORKDAYS(A2,B2,E2:E4)
RowABCDE
1FromToWorking daysHolidays
21 Dec 202631 Dec 20262024 Dec 2026
325 Dec 2026
431 Dec 2026
=NETWORKDAYS(A2,B2,E2:E4) → 20

A Friday and Saturday weekend

NETWORKDAYS.INTL takes a weekend code as its third argument; 7 means Friday and Saturday off. January 2026 has five Fridays and five Saturdays.

C2=NETWORKDAYS.INTL(A2,B2,7)
RowABC
1FromToWorking days
21 Jan 202631 Jan 202621
=NETWORKDAYS.INTL(A2,B2,7) → 21

A six-day week

A weekend can also be spelled out day by day, Monday first, with 1 for a day off: "0000001" is Sundays only.

C2=NETWORKDAYS.INTL(A2,B2,"0000001")
RowABC
1FromToDays open
21 Jan 202631 Jan 202627
=NETWORKDAYS.INTL(A2,B2,"0000001") → 27

Practise it

New data, so you can't copy the answer above. We check the number your formula returns, then change the data to make sure it still holds.

Your task: In C2, count the billable days from A2 to B2: Monday to Friday, without the days the office is closed (E2:E4).

Graded live
RowABCDE
1FromToBillable daysClosed
21 Apr 202630 Apr 20263 Apr 2026
36 Apr 2026
425 May 2026

Write the formula in the bar above, then press Check or Enter.

Hint

NETWORKDAYS takes the first day, the last day and the list of closed days: A2, B2 and E2:E4.

Solution

=NETWORKDAYS(A2,B2,E2:E4) Any formula that returns the same result passes.

Common mistakes

  1. Subtracting the dates. =B2-A2 counts every calendar day, and leaves out the first one. NETWORKDAYS counts working days and includes both ends.
  2. Expecting the first day not to count. Monday to Friday of one week is 5 working days, not 4: both the start and the end date count.
  3. A weekend code in NETWORKDAYS. NETWORKDAYS's third argument is the holidays, so a 7 there is read as a date in January 1900 and the weekend stays Saturday and Sunday. Weekend codes go in NETWORKDAYS.INTL.
  4. Holidays typed as text. Microsoft warns that dates typed as text can cause problems. Keep the holiday list as real dates.

NETWORKDAYS.INTL: other weekends

=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]) works like NETWORKDAYS, with the weekend as its third argument and the holidays moved to the fourth. The weekend is a code:

Code Days off
1, or left out Saturday and Sunday
2 to 7 Two days in a row, from Sunday and Monday (2) to Friday and Saturday (7)
11 to 17 One day, from Sunday only (11) to Saturday only (17)

Or spell the week out in seven characters, one for each day from Monday to Sunday, with 1 for a day off and 0 for a working day: "0000011" is a Saturday and Sunday weekend, and "1000001" gives Sunday and Monday off. WORKDAY has the same codes in WORKDAY.INTL.

FAQ

Does NETWORKDAYS count the start and end date?

Yes, both, when they're working days. A task from Monday to the Friday of the same week is five working days.

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

=NETWORKDAYS.INTL(A2,B2,7). Weekend code 7 is Friday and Saturday; holidays go in the fourth argument.

What happens if the start date is after the end date?

The result is negative: the same number of working days, with a minus sign.

Guides that use NETWORKDAYS

Worked problems with practice sheets.

Interview prepPractice sheet

Working days and due dates: Excel interview question

Invoices due at the end of next month, and the working days a client has to pay: the date task interviewers set, solved with EOMONTH and NETWORKDAYS, plus a sheet that grades yours.

3 min read · Updated

Know NETWORKDAYS? Prove it on a real sheet.

Practise NETWORKDAYS and the functions around it in a live grid that grades your result and explains your mistakes.

Runs in your browser · Graded on your result · No install