Conditional Formatting "Less Than" formula on multiple cells ignoring "0" value

Brendon Donald

New Member
Joined
Apr 27, 2022
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am looking for a conditional formatting formula which compares one cell value (CB51) against 6 other cells values (CB30, CB31, CB41, CB43, CB66 and CB69) to determine whether it is less than any of the 6 cells values and turns green but also ignores if any of the 6 cells values that are 0?

This is what I have and it doesn't work????
=AND(ISBLANK($CB$41)=FALSE,ISBLANK($CB$43)=FALSE,ISBLANK($CB$66)=FALSE,ISBLANK($CB$69)=FALSE,$CB$51<$CB$30,$CB$51<$CB$31,$CB$51<$CB$41,$CB$51<$CB$43,$CB$51<$CB$66,$CB$51<$CB$69)

Thanks,
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I've tried your formula and it works for me. Are all the values in those ranges definitely numeric values?
 
Upvote 0
Do any of those cells contain a formula?
 
Upvote 0
In that case none of the cells are blank, so this part of your formula is doing nothing ISBLANK($CB$41)=FALSE,ISBLANK($CB$43)=FALSE,ISBLANK($CB$66)=FALSE,ISBLANK($CB$69)=FALSE
If you want to check for a 0 use $CB$41<>0
 
Upvote 0
In that case none of the cells are blank, so this part of your formula is doing nothing ISBLANK($CB$41)=FALSE,ISBLANK($CB$43)=FALSE,ISBLANK($CB$66)=FALSE,ISBLANK($CB$69)=FALSE
If you want to check for a 0 use $CB$41<>0
Thanks Fluff, so is this how you would write the formula as CB30 and CB31 will always have values and only CB69, CB51, CB41, CB43 could have 0?
=AND($CB$41<>0)=FALSE,($CB$43<>0)=FALSE,($CB$66<>0)=FALSE,($CB$69<>0)=FALSE,$CB$51<$CB$30,$CB$51<$CB$31,$CB$51<$CB$41,$CB$51<$CB$43,$CB$51<$CB$66,$CB$51<$CB$69)
 
Upvote 0
No it should be like
Excel Formula:
=AND($CB$41<>0,$CB$43<>0,$CB$66<>0,etc)
 
Upvote 0
Hi Fluff, I have tried again with this new formula

=AND($CB$41<>0,$CB$43<>0,$CB$66<>0,$CB$69<>0,$CB$51<$CB$30,$CB$51<$CB$31,$CB$51<$CB$41,$CB$51<$CB$43,$CB$51<$CB$66,$CB$51<$CB$69)

But the rule still doesn't work..... what am I'm missing?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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