There's a guide for how to create a table with holidays in them, and the only input the users need is Year, which the functions will determine what the holiday date is. However, I want to do away with the table and go with a UDF approach. The only argument that is required would be the year.
I would like the UDF to take the year argument, and produce an array of "Observed" holidays; the function will return an array of dates.
It will be used in this WORKDAY function:
Is there something like this out there?
I would like the UDF to take the year argument, and produce an array of "Observed" holidays; the function will return an array of dates.
It will be used in this WORKDAY function:
Code:
=WORKDAY(B1,1,OBSHOLIDAYS(year))