ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional Formatting Cells With Values 0 and Null (https://www.excelbanter.com/excel-discussion-misc-queries/239153-conditional-formatting-cells-values-0-null.html)

Rookie Access User

Conditional Formatting Cells With Values 0 and Null
 
I want the background of a cell one color if it holds a value of 0, another
color if it is null or empty, and another color if the value is 0<11. It
seems that Excel treats 0 and an empty cell the same. Whatja think?

Bernard Liengme

Conditional Formatting Cells With Values 0 and Null
 
These rules worked for me
for the blanks: =ISBLANK(A1)
for the zeros: =AND(ISNUMBER(A1),A1=0)
for the 0<11= =AND(A10,A1<11)
The 'trick' was ISNUMBER in the zero check! Otherwise it captures the blanks
also.

best wishes


"Rookie Access User" wrote in
message ...
I want the background of a cell one color if it holds a value of 0, another
color if it is null or empty, and another color if the value is 0<11. It
seems that Excel treats 0 and an empty cell the same. Whatja think?



Rick Rothstein

Conditional Formatting Cells With Values 0 and Null
 
You can do what you want using these 3 Conditional Format formulas (assuming
A1 is the active cell when you create them)...

Empty (Null) Condition: =A1=""

Zero Condition: =A1=0

Range Condition: =AND(A10,A1<11)

--
Rick (MVP - Excel)


"Rookie Access User" wrote in
message ...
I want the background of a cell one color if it holds a value of 0, another
color if it is null or empty, and another color if the value is 0<11. It
seems that Excel treats 0 and an empty cell the same. Whatja think?




All times are GMT +1. The time now is 01:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com