The Excel Workday function returns a date that is a supplied number of working days (excluding weekends and holidays) ahead of a given start date.
The syntax of the function is:
where the arguments are as follows:
|start_date||-||The initial date, from which to count the number of workdays.|
|days||-||The number of workdays to add onto start_date.|
|[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 the start_date and [holidays] arguments should be input as either:
- If you attempt to input these date arguments as text, there is a risk that Excel may misinterpret them, due to different date systems, or date interpretation settings.
In the spreadsheets below, the Excel Workday function is used to find a date that is 25 work days after 01-Dec-2015. The first example (in cell A7) only excludes weekends from the calculation, while the second example (in cell A8) excludes weekends and a supplied list of holidays.
Note that, in the above spreadsheets:
Note also that, as recommended by Microsoft, both calls to the Workday function, the start_date and [holidays] arguments have been supplied as cell references.
Further examples of the Excel Workday function can be found on the Microsoft Office website.
If you get an error from the Excel Workday function this is likely to be one of the following:
|#NUM!||-||Occurs if the supplied start_date plus the supplied days argument results in an invalid date.|
Occurs when Excel does not recognise a function name. This may be because you have made a mistake when typing the Workday function name into Excel.
Alternatively, this could be because the Analysis ToolPak add-in is not enabled in your Excel. You will need to enable this if you want to use the Excel Workday function.