Hi All
Hoping to get some help for this little issue. I am working on a rostering template for work and wanting to get some assistance with the final stage. The worksheet is as follows.
Worksheet "Week 1" has the following
The names and shift codes are in the range B1:W115
There is then a list of all staff names in Column X
Then a tally of the hours would be put into Column Y
Worksheet "Data" has the following
The list of shift codes in column J
The hours each shift code represents in column K
So the idea is to find all of the names (as they are entered) in range B1:W115 that are the same (so all the Freddy Mercury's for example) and then look at the shift codes in the cell next to them next to them (if the name was in A1 for example the shift code would be in cell B1 of the same worksheet). Compare those shift codes to those in column J of worksheet "Data" to find the hours in column K of worksheet "Data"
and then in column Y next to the person's name in column X add the hours up for all the entries on the worksheet.
Here is the file attached
Example template.xlsm
Regards
Rey2
Bookmarks