Conditional Formating for time scheduled

TFSRZR

New Member
Joined
Dec 19, 2016
Messages
3
I'm trying to create a schedule chart that allows me to see what periods of a range have been scheduled. I have been able thru conditional formatting to highlight the cells yellow for the scheduled time (start / end). I’d like to be able to have two different highlight colors. I tried various conditional formulas to try to get the time blocks to highlight black where Unit in column A is X and Yellow highlights for all other units , but couldn't get it to work. I have posted sample spreadsheet to one drive https://1drv.ms/x/s!Ai2z2uOS2mdJbIvl6UrlCSbhd3A

Thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try this.

Applies to $E$2:$AL$15
Black formula: =AND(E$1>=$C2,F$1<=$D2,$A2="X")
Gold formula: =AND(E$1>=$C2,F$1<=$D2)
 
Upvote 0
I have used
OR(AND(E$17>=$C18,E$17<=$D18),AND($C18>=E$17,$C18<=E$17))

That will confirm the CELLS to use

Now you can ADD the X
AND($A18="X",OR(AND(L$17>=$C18,L$17<=$D18),AND($C18>=L$17,$C18<=L$17)))

now use that as the formula in conditional formatting and use Black fill colour - stop if true ticked

then a 2nd rule
AND($A18<>"X",OR(AND(L$17>=$C18,L$17<=$D18),AND($C18>=L$17,$C18<=L$17)))
for your other colour

BUT you have Dates in the title times - you need to remove all the Dates snf just have time
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,179
Members
448,871
Latest member
hengshankouniuniu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top