NETWORKDAYS.INTL Function



Description

The NETWORKDAY.INTL function returns the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days. Weekend days and any days that are specified as holidays are not considered as workdays.

Syntax

NETWORKDAYS.INTL (start_date, end_date, [weekend], [holidays])

Arguments

Argument Description Required/ Optional
Start_date The dates for which the difference is to be computed. Required
end_date The start_date can be earlier than, the same as, or later than the end_date. Required
Weekend

Indicates the days of the week that are weekend days and are not included in the number of whole working days between start_date and end_date.

Weekend is a weekend number or string that specifies when weekends occur. Look at Weekend Number - Weekend Days Table given below.

Optional
Holidays

An optional set of one or more dates that are to be excluded from the working day calendar.

Holidays shall be

  • a range of cells that contain the dates

  • an array constant of the serial values that represent those dates

The ordering of dates or serial values in holidays can be arbitrary.

Optional

Weekend Number - Weekend Days Table

Weekend Number Weekend Days
1 or omitted Saturday, Sunday
2 Sunday, Monday
3 Monday, Tuesday
4 Tuesday, Wednesday
5 Wednesday, Thursday
6 Thursday, Friday
7 Friday, Saturday
11 Sunday only
12 Monday only
13 Tuesday only
14 Wednesday only
15 Thursday only
16 Friday only
17 Saturday only

Weekend string values are seven characters long and each character in the string represents a day of the week, starting with Monday. 1 represents a non-workday and 0 represents a workday. Only the characters 1 and 0 are permitted in the string. Using 1111111 will always return 0.

Notes

  • If start_date is later than end_date, the return value will be negative, and the magnitude will be the number of whole workdays.

  • If start_date is out of range for the current date base value, NETWORKDAYS.INTL returns the #NUM! error value.

  • If end_date is out of range for the current date base value, NETWORKDAYS.INTL returns the #NUM! error value.

  • If the specified weekend is an invalid numeric value, NETWORKDAYS.INTL returns the NUM! error value.

  • If a weekend string is of invalid length or contains invalid characters, NETWORKDAYS.INTL returns the #VALUE! error value.

  • If the supplied start_date, end_date, or any of the values in the supplied [holidays] array are not valid dates, NETWORKDAYS.INTL returns the #VALUE! error value.

Applicability

Excel 2010, Excel 2013, Excel 2016

Example

NETWORKDAYS.INTL Function
advanced_excel_date_time_functions.htm
Advertisements