Count workdays with NETWORKDAYS and WEEKDAY

Working with dates · About 6 minutes

Count workdays with NETWORKDAYS and WEEKDAY

NETWORKDAYS counts Monday to Friday between two dates, counting both the first and the last day. =NETWORKDAYS(A2,B2) reads as "workdays from A2 to B2".

Add a range of holidays as a third part and those days are left out too: =NETWORKDAYS(A2,B2,A5:A6).

WEEKDAY turns a date into a day number. With a 2 at the end, Monday is 1 and Sunday is 7, so anything above 5 is a weekend: =WEEKDAY(B2,2).

Part of Plus

Free during our founding launch: sign in to unlock this lesson's exercises, the timed practice sets and the rest of Plus. The free lessons stay free, with no account needed.

What NETWORKDAYS and WEEKDAY does

NETWORKDAYS counts the working days between two dates. It skips Saturdays and Sundays, and any holidays you list, and it counts the first and last day too if they are workdays.

WEEKDAY turns a date into a number for its day of the week. Together they answer everyday planning questions: how many working days a project has, or whether a delivery lands on a weekend.

How to write NETWORKDAYS and WEEKDAY

=NETWORKDAYS(start_date, end_date, [holidays])

start_date
The first day to count.
end_date
The last day to count.
holidays
A range of dates to leave out, like public holidays. The square brackets mean it's optional.

=WEEKDAY(serial_number, [return_type])

serial_number
The date to look at.
return_type
How to number the days. Left out, Sunday is 1 and Saturday is 7. With 2, Monday is 1 and Sunday is 7.

NETWORKDAYS and WEEKDAY worked example

An audit runs from May 18 to May 29, 2026, and the office is closed on May 25. In D2, count the audit's working days.

An audit runs from May 18 to May 29, 2026, and the office is closed on May 25. In D2, count the audit's working days.
ABCD
1TaskStartEndWorkdays
2Audit05/18/202605/29/20269
3
4Closed05/25/2026
D2=NETWORKDAYS(B2,C2,B4)Count Monday to Friday from Monday, May 18 to Friday, May 29, 2026, which is 10 days, and leave out the closed day in B4: 9 working days.

Common NETWORKDAYS and WEEKDAY mistakes

The count is one more than expected

NETWORKDAYS counts both the start and the end date. If the first day shouldn't count, start from the day after.

WEEKDAY says Monday is 2

Without a second part, the week starts on Sunday. Add ,2 before the closing bracket so Monday is 1 and Sunday is 7.

A holiday is still counted

Check the holiday's cell is inside the holidays range you gave, like B4:B6, and holds the same date as the day off.

NETWORKDAYS or WORKDAY?

Use NETWORKDAYS when you have two dates and want the count of working days between them. Use WORKDAY when you have a start date and a number of working days, and want the finish date.

Both assume a Saturday and Sunday weekend. If the weekend falls on other days, NETWORKDAYS.INTL and WORKDAY.INTL let you choose them. All four work in Excel and Google Sheets.

Questions people ask

How do I count working days between two dates?

=NETWORKDAYS(A2,B2) counts Monday to Friday from A2 to B2, both days included.

How do I leave out holidays?

Add a range that lists them as a third part: =NETWORKDAYS(A2,B2,A5:A6).

How do I check whether a date is a weekend?

=WEEKDAY(B2,2) gives 1 for Monday up to 7 for Sunday, so anything above 5 is a Saturday or Sunday.

Theme