Hi all,
I am trying to make a cell highlight in red if there are more than 1 condition present. The table below represents a work rota and also a holiday planner underneath. The initials of each employee are entered into the rota for each day they are at work. If they are on a rest day (RD) or have booked holidays (H) these are entered into the planer at the bottom. The holiday planner can be populated for the whole year in some cases whereas the rota is done around 2 weeks in advance.
With 100 employees and 25 sites to work with this can be quite a difficult task and time consuming task.
To highlight any errors would make the task much quicker to do.
Is it possible to have some conditional formatting to the rota part of the sheet.
The sequence would be - If the initials are input into the rota then a check would be made to see if the that person has either rest days or holiday booked and if so highlight the cell in a colour to highlight that fact. Each employees given initials are in the bottom part of the planner to match 2. In the instance of BF/OG, then there are 2 people working that site on that day.
I hope that is all making sense, its had my head in a spin for ages. I think I did manage to get it working for single cells and I had the conditional formatting in the planner part which was wrong.
I cant work out how to check the initials in the rota against those in the planner column and see if there is 'H' or 'RD' in the planner. The highlight needs to be in the rota part.
eg The cells with JS in the 10th and 11th against site 1, should highlight to show that JS has booked holiday those days and should not be included in the rota.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]DATE
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10TH
[/TD]
[TD="align: center"]11TH
[/TD]
[/TR]
[TR]
[TD="align: center"]DAY
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]SITE 1
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]JS
[/TD]
[TD="align: center"]JS
[/TD]
[/TR]
[TR]
[TD="align: center"]SITE 2
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]GP
[/TD]
[TD="align: center"]GP
[/TD]
[/TR]
[TR]
[TD="align: center"]SITE3
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]BF/OG
[/TD]
[TD="align: center"]BF/OG
[/TD]
[/TR]
[TR]
[TD="align: center"]SITE4
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]TR
[/TD]
[TD="align: center"]TR
[/TD]
[/TR]
[TR]
[TD="align: center"]SITE 5
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]DB
[/TD]
[TD="align: center"]DB
[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]PLANNER
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]EMPLOYEE
[/TD]
[TD="align: center"]INITS
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]JS
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]H
[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD="align: center"]GP
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]H
[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD="align: center"]BF
[/TD]
[TD="align: center"]RD
[/TD]
[TD="align: center"]RD
[/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]OG
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD="align: center"]TR
[/TD]
[TD="align: center"]H
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD="align: center"]DB
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Many Thanks
I am trying to make a cell highlight in red if there are more than 1 condition present. The table below represents a work rota and also a holiday planner underneath. The initials of each employee are entered into the rota for each day they are at work. If they are on a rest day (RD) or have booked holidays (H) these are entered into the planer at the bottom. The holiday planner can be populated for the whole year in some cases whereas the rota is done around 2 weeks in advance.
With 100 employees and 25 sites to work with this can be quite a difficult task and time consuming task.
To highlight any errors would make the task much quicker to do.
Is it possible to have some conditional formatting to the rota part of the sheet.
The sequence would be - If the initials are input into the rota then a check would be made to see if the that person has either rest days or holiday booked and if so highlight the cell in a colour to highlight that fact. Each employees given initials are in the bottom part of the planner to match 2. In the instance of BF/OG, then there are 2 people working that site on that day.
I hope that is all making sense, its had my head in a spin for ages. I think I did manage to get it working for single cells and I had the conditional formatting in the planner part which was wrong.
I cant work out how to check the initials in the rota against those in the planner column and see if there is 'H' or 'RD' in the planner. The highlight needs to be in the rota part.
eg The cells with JS in the 10th and 11th against site 1, should highlight to show that JS has booked holiday those days and should not be included in the rota.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]DATE
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]10TH
[/TD]
[TD="align: center"]11TH
[/TD]
[/TR]
[TR]
[TD="align: center"]DAY
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]SITE 1
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]JS
[/TD]
[TD="align: center"]JS
[/TD]
[/TR]
[TR]
[TD="align: center"]SITE 2
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]GP
[/TD]
[TD="align: center"]GP
[/TD]
[/TR]
[TR]
[TD="align: center"]SITE3
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]BF/OG
[/TD]
[TD="align: center"]BF/OG
[/TD]
[/TR]
[TR]
[TD="align: center"]SITE4
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]TR
[/TD]
[TD="align: center"]TR
[/TD]
[/TR]
[TR]
[TD="align: center"]SITE 5
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]DB
[/TD]
[TD="align: center"]DB
[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]PLANNER
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]EMPLOYEE
[/TD]
[TD="align: center"]INITS
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]JS
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]H
[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD="align: center"]GP
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]H
[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD="align: center"]BF
[/TD]
[TD="align: center"]RD
[/TD]
[TD="align: center"]RD
[/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]OG
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD="align: center"]TR
[/TD]
[TD="align: center"]H
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD="align: center"]DB
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Many Thanks