Highlight cell if one cell is blank and another shows zero

SaraWitch

Active Member
Joined
Sep 29, 2015
Messages
322
Office Version
  1. 365
Platform
  1. Windows
Hello peeps.

I want to highlight a cell based on two others; if A1 is empty and B1 is higher than zero (0). However, B1 has a formula that returns a number and the following Conditional Formatting formula is turning all cells red (because of the formula, I believe):

=AND($B1>0,$A1="") (then set format as fill red)

I've tried it both ways, with the same result.

Any advice would be gratefully received...

Ta muchly!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Maybe
Excel Formula:
=AND($B1<>"",$A1="")
 
Upvote 0
What is your formula in column B?
What range are you trying to apply this Conditional Formatting to?
 
Upvote 0
Thanks, @Fluff. That works, but I don't want the cell highlighted if the formula result is zero (0). I just want the cell highlighted if the formula returns any number over zero...
 
Upvote 0
Maybe
Excel Formula:
=AND(ISNUMBER($B1),$B1>0,$A1="")
 
Upvote 0
Solution
Hi,

This works also:

Excel Formula:
=AND(N(B1)>0,A1="")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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