Guides
/

Date & time

NETWORKDAYS

How to use NETWORKDAYS in Excel: count working days excluding holidays

NETWORKDAYS counts the working days between two dates, excluding Saturdays, Sundays and holidays. Ideal for timesheets, payroll and deadlines.

Syntax

=NETWORKDAYS(start_date, end_date, [holidays])
  • start_date — The first day of the period. It is counted if it is a working day.
  • end_date — The last day of the period. It is also counted if it is a working day.
  • holidays — Optional. A range of dates to treat as non-working (public holidays, extra days off).

Example

ABC
1StartEndHolidays
22025-03-012025-03-312025-03-08
32025-03-21

Formula:

=NETWORKDAYS(A2,B2,C2:C3)

→ result: 20

How NETWORKDAYS works

The function counts Monday-to-Friday days between the start and end dates, including both boundary days. Then it subtracts any working days that appear in the holiday list. In the example, March 2025 has 31 days, 10 of which are Saturdays and Sundays → 21 working days. 21 March (Navruz) falls on a Friday and is subtracted → 20. 8 March is a Saturday — already a day off — so it isn’t subtracted twice.

Building a holiday list

Write your holidays once in a separate column or sheet. The main public holidays in Uzbekistan: • 1 January — New Year • 8 March — Women’s Day • 21 March — Navruz • 9 May — Day of Remembrance and Honour • 1 September — Independence Day • 1 October — Teachers’ Day • 8 December — Constitution Day Ramadan and Kurban Hayit dates change every year, and the government sometimes moves days off — add those too. Give the list a name (for example, Holidays) or lock it with $: =NETWORKDAYS(A2,B2,$H$2:$H$20).

Six-day work week: NETWORKDAYS.INTL

In many companies and schools Saturday is a working day. NETWORKDAYS.INTL handles this; its 3rd argument is a weekend code: =NETWORKDAYS.INTL(A2,B2,11,C2:C3) → 24 Codes: 1 — Saturday and Sunday (default), 11 — Sunday only, 7 — Friday and Saturday, 17 — Saturday only. Or use a 7-character string from Monday to Sunday, where 1 = day off and 0 = working day: "0000001" — Sunday only, "0000011" — Saturday and Sunday. The example gives 24: March has 26 non-Sunday days, minus the 8 March and 21 March holidays (Saturday is now a working day).

WORKDAY: the date N working days later

The reverse task is finding a deadline: “complete within 10 working days” — which date is that? =WORKDAY(A2,10,Holidays) If A2 is 2025-03-03 (a Monday), the result is 2025-03-17. WORKDAY doesn’t count the start day and skips weekends and holidays. If the result shows as a number (45733), apply a date format to the cell. For a six-day week: =WORKDAY.INTL(A2,10,11,Holidays).

Practical examples

• Working days in a month (for a timesheet): =NETWORKDAYS(A2,EOMONTH(A2,0),Holidays), where A2 is the 1st of the month. • Daily rate: =C2/NETWORKDAYS(A2,EOMONTH(A2,0),Holidays) — monthly salary / working days. • How many working days a project took: =NETWORKDAYS(B2,C2,Holidays). • Is a task overdue: =IF(TODAY()>WORKDAY(B2,5,Holidays),"Overdue","On time").

Common errors

• #VALUE! — one of the dates is stored as text (including in the holiday list). Check that the dates are right-aligned. • The result looks like a date (e.g. 1/20/1900) — set the cell format to General. • A negative result — the start date is after the end date. Swap the arguments. • The result is one too high — NETWORKDAYS counts both boundary dates. If you need “working days elapsed”, subtract 1. • The holiday range shifts when you drag the formula — lock it with $ or use a named range.

Pro tips

• Keep holidays in an Excel table (Ctrl+T): any new date is picked up by every formula automatically. • Need calendar days? Use =B2-A2 or DATEDIF. Need working days? Use NETWORKDAYS. • A holiday that falls on a weekend can stay in the list — it won’t be subtracted twice. A moved day off (say, a Monday) should be added as its own row. • In NETWORKDAYS.INTL the code "0000000" makes every day a working day, so only holidays are excluded.

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us

Frequently asked questions

Use =NETWORKDAYS(A2,B2) for the number of working days without Saturdays and Sundays. To exclude holidays as well, pass their list as the third argument: =NETWORKDAYS(A2,B2,H2:H20).
Use NETWORKDAYS.INTL with code 11: =NETWORKDAYS.INTL(A2,B2,11,Holidays). Code 11 means only Sunday is a day off. WORKDAY.INTL works the same way.
Yes, both are counted if they are working days. For example, =NETWORKDAYS(A2,A2) returns 1 for a Monday. If you need the number of working days elapsed, subtract 1.
=WORKDAY(A2,10,Holidays) returns the date of the 10th working day, skipping weekends and holidays. Format the result cell as a date.
ЧИСТРАБДНИ. NETWORKDAYS.INTL is ЧИСТРАБДНИ.МЕЖД and WORKDAY is РАБДЕНЬ. The arguments are the same; only the separator changes to a semicolon.