ReferenceFunctionsDate & Time Functions
NETWORKDAYS.INTL
NETWORKDAYS.INTL: Returns the number of working days between two dates with configurable weekends.
Summary
Returns the number of working days between two dates with configurable weekends.
Remarks
- The
weekendargument can be a number code (1-7, 11-17) or a 7-character string of0s and1s (Mon-Sun,1= weekend day). Default is1(Sat/Sun). - The optional
holidaysargument accepts a range or array of date serials to exclude. - If
start_date > end_date, the result is negative. - A weekend string of all
1s (no workdays) returns#VALUE!.
Examples
Default weekends (same as NETWORKDAYS)
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
23
Friday-only weekend
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
6
Custom weekend string (Mon+Fri off)
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
5
Related functions
FAQ
What happens if the weekend string is all 1s?
NETWORKDAYS.INTL returns #VALUE! because there would be no workdays.
Runtime metadata
Category
Date & Time
Signature
NETWORKDAYS.INTL(arg1: Number, arg2: Number, arg3: Any, arg4…: Any)Arity
min 2, max variadic
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Number · Scalar · coercion NumberLenientText
arg3Any · Scalar
arg4Any · Scalar
Caps
PURE
Source