Format column so that if a cell has no value then it's blank

Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I have a column of data where I've added in two conditional formatting rules:

1) if the cell is 0, then the cell is filled with the colour green.

2) if the cell is NOT equal to zero, then the cell is filled with the colour red.

However, the formatting has made blank cells RED, as well!

Is there a way to add in a condition to say if the cell is blank, then fill it with NO COLOUR?

I used the following steps for the first two rules:

Conditional Formatting / Highlight Cells Rules / Equal To ....then selected 0 and chose the green fill.

Conditional Formatting / Highlight Cells Rules / More Rules / Format Only Cells That Contain / Cell Value / Not Equal To ....then selected 0 and chose the RED fill.

I'd be grateful for your thoughts.

Thanks in advance
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
1) if the cell is 0, then the cell is filled with the colour green.

2) if the cell is NOT equal to zero, then the cell is filled with the colour red.
Use the formula option, and use this formula for your first condition (assuming cell A1):
Excel Formula:
=AND(A1=0,A1<>"")
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,211
Members
448,554
Latest member
Gleisner2

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