NETWORKDAYS.INTL
counts business days with custom weekend · from excel · excel: verified match · sheets: verified match
signature
NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
returns: number
| argument | required |
|---|---|
| start_date | required |
| end_date | required |
| weekend | optional |
| holidays | optional |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
fx
=NETWORKDAYS.INTL(DATE(2006,1,1), DATE(2006,1,31)) 22 | A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | 10 | 2 | 2 | |||||
| 2 | 4 |
fx
=NETWORKDAYS.INTL(A1, B1, 7, H1:H10) -5 errors
error values observed from the engine — each with a call that produces it.
| error | produced by |
|---|---|
| #ERROR! | =NETWORKDAYS.INTL(1,2,3,4,5) |
| #NUM! | =NETWORKDAYS.INTL(1,10,99) |