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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,214,583
Messages
6,120,380
Members
448,955
Latest member
BatCoder

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