Returns the number of whole working days between start_date and end_date. Working days exclude weekends and any dates identified in holidays. Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days worked during a specific term.
If this function is not available, run the Setup program to install the Analysis ToolPak. After you install the Analysis ToolPak, you must enable it by using the Add-Ins command on the Tools menu.
Start_date is a date that represents the start date.
End_date is a date that represents the end date.
Holidays is an optional range of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays.
- If any argument is nonnumeric, NETWORKDAYS returns the #VALUE! error value.
- If any argument is not a valid date, NETWORKDAYS returns the #NUM! error value.
NETWORKDAYS(DATEVALUE("10/01/91"), DATEVALUE("12/01/91"), equals 43