Conditional Formatting-blank cells vs zeros

froggiebecki

New Member
Joined
Dec 12, 2017
Messages
2
Trying to cf a range of cells that may have numbers from 0 to 10, but some will be blank.
0=green,
>0=red
blank should have no formatting

Red's no problem, but the 0 vs blank cells is whipping me.


With just $D$5:$BC$5=0 the 0 cells turn green, but so do the blank cells.

Using this formula to try to leave blank cells unformatted, but fill any that have a "o" in them.

=AND($D$5:$BC$5<>"",$D$5:$BC$5=0)

With the AND statement, nothing turns green.

What am I missing?


Thanks for looking,
Froggiebecki
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi, welcome to the board.

I can't replicate this, at least on a simpler version.

=A1=0
This turns green if the cell is blank or 0.

=AND(A1< > "",A1=0)
This turns green with an entry of 0, not green for blank or any other non-0 entry.

Select whichever option you want.
 
Upvote 0
Thanks. Figured out I was making it too complicated.

I've got it working, using your suggestion, ended up with 3 simple formulas.

=D$5="" [leaves blank cell blank, and has to be the first rule]
>5 [turns cell red]
=0 [turns it green]

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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