The Excel Networkdays function calculates the number of work days between two supplied dates (including the start and end date). The calculation includes all weekdays (Mon - Fri), excluding a supplied list of holidays.
The syntax of the function is:
where the arguments are as follows:
|start_date||-||start_date is counted in the returned number of days).(The|
|end_date||-||end_date is counted in the returned number of days).(The|
|[holidays]||-||An optional argument, which specifies an array of dates (in addition to weekends) that are not to be counted as working days.|
Note that Microsoft recommends that the start_date, end_date and [holidays] arguments should be input as either:
If you attempt to input Excel date arguments as text, Excel may misinterpret them, depending on the date system, or date interpretation settings on your computer.
The spreadsheet below provides two examples of the Excel Networkdays function, used to calculate the number of work days between the two dates Dec 01, 2015 and Jan 15, 2016.
One of the examples (in cell A8) ignores holidays (other than weekends), while the second example (in cell A9) provides a list of holidays to be excluded from the day count in the calculation.
In the above spreadsheet:
For further examples of the Excel Networkdays function, see the Microsoft Office website.
If you get an error from the Excel Networkdays function this is likely to be the #VALUE! error:
|#VALUE!||-||Occurs if any of the supplied arguments are not valid dates.|