Conditional formatting based on multiple cell criteria

oreyoh

New Member
Joined
Mar 1, 2010
Messages
4
I've been going at this for days...and I still can't get it right.

I'm trying to use conditional formatting so that:

Condition 1:
When A11 = PM&R 150 Days and D11 is < or = 150
OR When A11 = MLF 240 Days and D11 is < or = 240
The cell turns GREEN

Condition 2:
When A11 = PM&R 150 Days and D11 is > 150
OR When A11 = MLF 240 Days and D11 is > 240
The cell turns RED

Is this possible?
For Condition 2 I tried the formula:
=OR((AND(A19="PM&R 150 Days",D19>150)),(AND(A19="MLF 240 Days",D19>240)))

Am I close??? Or far off??
Please Help :confused:
Thanks in advance!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try This:

condition 1
Code:
=OR(AND($A$11="PM&R 150 Days",$D$11<=150),AND($A$11="MLF 240 Days",$D$11<=240))

condition 2
Code:
=OR(AND($A$11="PM&R 150 Days",$D$11>150),AND($A$11="MLF 240 Days",$D$11>240))

What is the A19 cell?


(edit..I think I see the list now...(a19))
 
Last edited:
Upvote 0
Oh! A19 should be A11, I pasted the wrong item. Thanks for the code! I'm going to try this right away!
 
Upvote 0
When I tried the code, the cell turned red, but should be green.
The scenario I had setup up was A11=PM&R 150 Days, D11=148 Days.

Any other suggestions? I think my original code is incorrect..I sort of just put them together...LOL

Thank you!!
 
Last edited:
Upvote 0
In d11 you are going to have two rules for CF.

select d11
manage rules(make sure you are using a formula)

edit the rule that is there

1st rule is condition 1...copy and paste the code

format this rule to 'fill' green

click ok.

add a new rule
use formula
2nd rule is condition 2...copy/paste

format rule to 'fill' red

See if that helps.
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,127
Members
452,381
Latest member
Nova88

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