IF THEN Conditional Formulas

LTPLegend

New Member
Joined
Aug 22, 2012
Messages
5
Hello,

B7 has a number calculated from two other cells, it is how many days old something is.
D7 has one of three words to show how serious something is

I want to change the color of B7 depending on what number it is, for example

IF
D7 = HIGH
AND
B7 = 15
THEN
Fill Orange

Conditional Format checks D7 for what number range it should use, then checks B7 to see where it falls in that range and colors it.

Three sets of Number Ranges Based on Priority:
High means:
0-15 days Blue to Orange Color Fill
15-30 days Orange to Red Color Fill
After 30 days true Red Fill

Medium means:
0-30 days Blue to Orange Color Fill
30-60 days Orange to Red Color Fill
After 60 days true Red Fill

Low means:
0-45 days Blue to Orange Color Fill
45-90 days Orange to Red Color Fill
After 90 days true Red Fill

Thank you!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You will need to use 9 different formulas and criterias within conditional formatting set the formating accordingly to your desires.
=and(D7="HIGH",B7<15)
=and(D7="HIGH",B7<30)
=and(D7="HIGH",B7>29)
=and(D7="MEDIUM",B7<30)
=and(D7="MEDIUM",B7<60)
=and(D7="MEDIUM",B7>59)
=and(D7="LOW",B7<45)
=and(D7="LOW",B7<90)
=and(D7="LOW",B7>89)
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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