• Home
  • NETWORKDAYS.INTL Function

NETWORKDAYS.INTL Function

The NETWORKDAYS.INTL function is one of the date and time functions. It is used to return the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days.

Syntax

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

The NETWORKDAYS.INTL function has the following arguments:

ArgumentDescription
start_dateThe first date of the period, entered using the DATE function or other date and time function.
end_dateThe last date of the period, entered using the DATE function or other date and time function.
weekendAn optional argument, a number or a string that specifies which days to consider weekends. The possible numbers are listed in the table below.
holidaysAn optional argument that specifies which dates in addition to weekend are nonworking. You can enter them using the DATE function or other date and time function or specify a reference to a range of cells containing dates.

The weekend argument can be one of the following:

NumberWeekend days
1 or omittedSaturday, Sunday
2Sunday, Monday
3Monday, Tuesday
4Tuesday, Wednesday
5Wednesday, Thursday
6Thursday, Friday
7Friday, Saturday
11Sunday only
12Monday only
13Tuesday only
14Wednesday only
15Thursday only
16Friday only
17Saturday only
Notes

A string that specifies weekend days must contain 7 characters. Each character represents a day of the week, starting from Monday. 0 represents a workday, 1 represents a weekend day. E.g. "0000011" specifies that weekend days are Saturday and Sunday. The string "1111111" is not valid.

How to apply the NETWORKDAYS.INTL function.

Examples

The figure below displays the result returned by the NETWORKDAYS.INTL function.

NETWORKDAYS.INTL Function

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags