Conditional Formatting w/ Formulas

Austin Lang

New Member
Joined
Sep 10, 2021
Messages
46
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Hey all,

I feel like this is a simple one but I am having a brain fart about it..

I have a document that has these separate conditional formatting rules.. How do I go about combining these into one? I attempted to add OR but I am falling short somewhere.

=AND($A5="Circuit 1",$AB5<1.5)
=AND($A5="Circuit 2",$AB5<1.5)
=AND($A5="Circuit 3",$AB5<1.5)

Thanks in advance.
 
How about...
CF.xlsx
AVW
4
5Circuit 18
6Circuit 68
7
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
V5:V6Expression=OR(AND($V5>4,$A5<>"Circuit 1",$A5<>"Circuit 2",$A5<>"Circuit 3"),(AND($V5>15,OR($A5="Circuit 1",$A5="Circuit 2",$A5="Circuit 3"))))textNO
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Again:
Code:
=$V5>IF(OR($A5="Circuit 1",$A5="Circuit 3",$A5="Circuit 3"),15,4)
or even:
Code:
=$V5>IF(RIGHT($A5,2)-4<0,15,4)
 
Upvote 0
Solution
Bigger sample data

CF.xlsx
AVW
4
5Circuit 18
6Circuit 215
7Circuit 316
8Circuit 44
9Circuit 55
10
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
V5:V9Expression=OR(AND($V5>4,$A5<>"Circuit 1",$A5<>"Circuit 2",$A5<>"Circuit 3"),(AND($V5>15,OR($A5="Circuit 1",$A5="Circuit 2",$A5="Circuit 3"))))textNO
 
Upvote 0
Again:
Code:
=$V5>IF(OR($A5="Circuit 1",$A5="Circuit 3",$A5="Circuit 3"),15,4)
or even:
Code:
=$V5>IF(RIGHT($A5,2)-4<0,15,4)

The first formula does work. Thank you for that! I think big, so what about if I want to say...

Circuit 1-3: >15
Circuit 4-6: >20
Circuit 7-50: >4

Can we easily adapt the formula to handle that? I promise this is the last one. Haha
 
Upvote 0
If last 2 letters of A5 is alway from 1 to 50, try:
Code:
=$V5>LOOKUP(RIGHT(A5,2)+0,{1,4,7},{15,20,4})
 
Upvote 0
The circuit names all have unique names. I had changed them to Circuit 1 and so on for the question.
 
Upvote 0
You should create a lookup table with 2 columns, one is circuit name and other is value limit
Tank 15 ___4
Fridge Ther ___15
.....
 
Upvote 0
If I were do that, what would you suggest the formula be for the conditional formatting?
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,872
Members
449,097
Latest member
dbomb1414

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