Different Multiple Conditions for Conditional Formatting

xirtam

New Member
Joined
Feb 23, 2012
Messages
28
I'm having issues with figuring out this formula:

If location = M and Delivery time is 5 or less, cell needs to be red
If location = M and delivery time is 6 or more, cell needs to be green
If location = R and delivery time is 9 or less, cell needs to be red
if location = R and delivery time is 10 or more, cell needs to be green

The cells I'm trying to highlight red or green are the delivery days.

I'm completely lost as to how to do this. I could really use some help as to how I could do this.

Can this even be done with conditional formatting?


Delivery Time (Days)Location (METRO/RURAL)
2M
2M
5R
2M
2M
3R
5M
7M
12R
5M
6M
7R
5R
7R
7M
4M
4M
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Book1
AB
1Delivery Time (Days)Location (METRO/RURAL)
22M
32M
45R
52M
62M
73R
85M
97M
1012R
115M
126M
137R
145R
157R
167M
174M
184M
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A18Expression=AND($B2="R",$A2>=10)textYES
A2:A18Expression=AND($B2="R",$A2<=9)textYES
A2:A18Expression=AND($B2="M",$A2>=6)textYES
A2:A18Expression=AND($B2="M",$A2<=5)textYES
 
Upvote 1
Solution
I'm not sure what is wrong here, but some of them are not working??

1731727752254.png
 
Upvote 0
Not sure why that would be - are you able to share your actual sheet using the XL2BB add in, or alternatively, share your actual file via Google Drive, DropBox or similar file sharing platform?
 
Upvote 0
Not sure why that would be - are you able to share your actual sheet using the XL2BB add in, or alternatively, share your actual file via Google Drive, DropBox or similar file sharing platform?
I’m not sure why it’s working now, but instead of having $F:$F I changed it to just the cells I needed and it worked.

Thank you very much for your help.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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