Holidays, if provided, must be a range of valid Excel dates.
In these example shown, the first two formulas use the NETWORKDAYS function.
Custom work schedule
This formula assumes all working days have the same number of work hours.
NETWORKDAYS automatically excludes weekends (Saturday and Sunday) and canoptionallyexclude a list of holidays supplied as dates.
…
NETWORKDAYS.INTL Function
The Excel NETWORKDAYS.INTL function calculates the number of working days between two dates.