
Originally Posted by
Miraun
It appears that you may be over complicating the situation slightly.
Rather than a separate function for the holidays, there is a pre-existing function =Workday that functions similarly. This function uses an array for the holiday values.
Rather than the imbedded dates within the VBA, I'd recommend setting those to another worksheet, and name the array of holidays (for however many years of data you have), as "Holidays"
Then using Bob Phillip's equation, you can get what you're looking for within the employee data worksheet.
Bookmarks