Hi
I have a vacation summary for various employees as show on the extract below. I would like a conditional format that highlights the dates taken by staff who are in a similar department and who have applied for vacation in the same month on the same dates. For instance, Staff A and Staff C are both in Department A and have both applied for vacation in the month of January on the same dates. The conditional formatting would then be applied to dates 7, 8 and 9 for both Staff A and Staff C.
On my spreadsheet, the data starts on row A1 and I am using Excel 2013. Please assist me with both a formula and a VBA solution.
<tbody>
</tbody>
Thanks
David
I have a vacation summary for various employees as show on the extract below. I would like a conditional format that highlights the dates taken by staff who are in a similar department and who have applied for vacation in the same month on the same dates. For instance, Staff A and Staff C are both in Department A and have both applied for vacation in the month of January on the same dates. The conditional formatting would then be applied to dates 7, 8 and 9 for both Staff A and Staff C.
On my spreadsheet, the data starts on row A1 and I am using Excel 2013. Please assist me with both a formula and a VBA solution.
Month | Staff Name | Department | Dates Taken | Dates Taken | Dates Taken | Dates Taken | Dates Taken | Dates Taken | Dates Taken | Dates Taken | Total Days Taken |
January | Staff A | Department A | 1 | 2 | 3 | 4 | 7 | 8 | 9 | 7 | |
January | Staff B | Department B | 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 8 |
January | Staff C | Department A | 7 | 8 | 9 | 3 | |||||
February | Staff D | Department A | 4 | 8 | 2 | ||||||
February | Staff E | Department B | 6 | 7 | 8 | 3 | |||||
March | Staff F | Department A | 14 | 1 | |||||||
May | Staff A | Department A | 7 | 1 | |||||||
June | Staff F | Department D | 8 | 9 | 10 | 11 | 12 | 5 | |||
July | Staff B | Department B | 4 | 5 | 6 | 9 | 10 | 5 |
<tbody>
</tbody>
Thanks
David