Hello,
I'm new to the forum and this is my first post. I took a look through, but could not find what I'm looking for so I would appreciate any help with what I'm trying to do.
I'm using the WORKDAY fuction, and the problem I'm running into is when passing in the array of holidays. The issue is that the holidays will vary depending on who the employee is, as I need to include vacation time, so I do not know which list of holidays to pass in before an employee is assigned and WORKDAY is executed.
I have created a hidden sheet that contains the employees in column A, and their days off in individual cells in the corresponding row. So it looks something like this:
A B C D
John Smith 41211 41212
Mike Jones 41211 41212 41213
Adam Smith 41216
So, what I need to do is to do is search through the column containing the list of employees and return the array of their holidays. For example if Mike Jones is the employee, then I would need the resulting array to be B2:B4. I've tried using various functions, but I have not been able to make this work. I thought I could make it work by using MATCH to return the row number, but I have not been able to successfully work that into my WORKDAY holidays argument. Any help, or pointing me in the right direction would work. I'm not opposed to changing around the layout of the hidden sheet if there is an easier way to do this.
Bookmarks