cell color to be changed based on priority

sreejeshc

New Member
Joined
Sep 28, 2012
Messages
16
Hi

I am having a log sheet where i need to have the cell color changed based on the priority and time duration

Column A will have the date of entry
.
.
.
Column F shall have priority 1, priority2, priority3 as selection.
Default Color for priority 1 is red, priority 2 is yellow and priority 3 is green

If priority 1 is selected, the cell color to be red
If priority 2 is selected, the cell color to be yellow, but after 12 hours from date of entry, the cell color to be changed to red
If priority 3 is selected, the cell color to be green, but after 24 hours from date of entry, cell color to be changed to yellow and after 36hours from date of entry, cell color to be changed to red


regards
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Select Column A

Conditional Formatting
New Rule
Use a formula to determine...

=(F1=1) format as red

=(AND(F1=2,NOW()-A1<=0.5)) format as yellow
=(AND(F1=2,NOW()-A1>0.5)) format as red

=(AND(F1=3,NOW()-A1<=1)) format as green
=(AND(F1=3,NOW()-A1>1)) format as yellow
=(AND(F1=3,NOW()-A1>1.5)) format as red


Format as required
Use Format painter (paintbrush icon) to copy to other cells
 
Upvote 0

Forum statistics

Threads
1,223,981
Messages
6,175,771
Members
452,668
Latest member
mrider123

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