ShareYourGroupShareYourGroupExcel Formulas

Date and time functions

NETWORKDAYS and WORKDAY functions in Excel

NETWORKDAYS counts the working days between two dates; WORKDAY returns the date a number of working days ahead.

Deadlines, notice periods, delivery promises and pay calculations are counted in working days, not calendar days. These functions skip weekends for you, and public holidays too if you give them a list.

Syntax

=NETWORKDAYS(start_date, end_date, [holidays])
=WORKDAY(start_date, days, [holidays])
=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
ArgumentWhat it is
start_date, end_dateThe first and last dates. Both are counted if they are working days.
daysFor WORKDAY: how many working days to move. Negative goes back.
holidaysA range of dates to leave out as well as weekends.
weekendFor the .INTL versions: which days are the weekend. 1 is Saturday and Sunday, 11 is Sunday only, 7 is Friday and Saturday.

Examples

Each result below is what Excel itself showed for the formula on the sample sheet.

Sample sheet: Staff with their date of birth and date of joining, and a short list of holidays.
ABCD
1NameBornJoinedHoliday
2Anita19-Jul-198801-Apr-201926-Jan-2026
3Rohit30-Nov-199215-Jun-202004-Mar-2026
4Deepa29-Feb-199601-Sep-202115-Aug-2026
5Manoj05-Dec-199910-Jan-202202-Oct-2026

NETWORKDAYS: how many working days?

NETWORKDAYS counts the working days from the start date to the end date, including both. From a Monday to the Friday of the same week is 5, not 4.

By default the weekend is Saturday and Sunday.

WORKDAY: which date?

WORKDAY answers the opposite question. Given a start date and a number of working days, it returns the date you arrive at. The start date itself is not counted. "Five working days from Thursday" starts counting on Friday.

Format the result cell as a date, or you will see a number.

The holiday list

Both functions accept a range of dates to treat as non-working. Keep the list on its own sheet, one date per cell, and refer to it with fixed references, or give the range a name such as Holidays. Then the formula reads =NETWORKDAYS(A2,B2,Holidays).

Public holidays differ by country, by state and by organisation, and many change from year to year. Excel has no built-in list. Take the dates from your own organisation's holiday list or the official notification for your state, and update the range each year.

A holiday that falls on a weekend is not subtracted twice.

A six-day week, or a different weekend

Many offices, shops and schools in India work on Saturdays. The .INTL versions let you say which days are off.

weekend codeDays off
1 or left outSaturday and Sunday
2Sunday and Monday
7Friday and Saturday
11Sunday only
12Monday only
17Saturday only

For anything else, give a text of seven digits, one for each day from Monday to Sunday, where 1 means a day off. "0000011" is Saturday and Sunday. "0000001" is Sunday only. "0010001" is Wednesday and Sunday.

WORKDAY.INTL takes the same codes: =WORKDAY.INTL(A2,10,11,Holidays) is ten working days ahead in a six-day week.

Alternate Saturdays off, as in banks, cannot be expressed with a weekend code. List those Saturdays among the holidays.

Uses

Common mistakes

In Google Sheets

NETWORKDAYS, WORKDAY and their .INTL versions all exist in Google Sheets, with the same weekend codes.

Related functions

Every result on this page was calculated in Microsoft Excel (version 16.0, build 20326) on 12 November 2026, not typed by hand.

This is an independent help site. It is not connected with or approved by Microsoft. Excel and Microsoft 365 are trademarks of Microsoft Corporation, named here only to say which program a formula is for. The people and figures in the sample sheets are made up.