If A1 is zero, A2 is blank

G

Guest

I am trying to make an adjacent cell blank if the related cell is zero. I
have tried conditional formatting and IF formatting, but I still can't get it
to work. Can someone tell me how to do this?
 
K

KL

- if blank means EMPTY then it can't be achieved by formulas as it literally means EMPTY - no constants, no formulas (you'll need
macros for that)
- if blank means STRING OF ZERO LENGTH ("") then you can try the following formula in [A2]: =IF(A1=0,"",MyAlternative)
the string of 0 length looks like blank, but technically is not blank and behaves differently in most situations (not in all
though).

--
KL
[MVP - Microsoft Excel]
RU: http://www.mvps.ru/Program/Default.aspx
ES: http://mvp.support.microsoft.com/?LN=es-es
EN: http://mvp.support.microsoft.com/?LN=en-us
Profile: https://mvp.support.microsoft.com/profile=AB32F8EE-8ED3-4AB9-ADDA-9E6C73C09A36
 
B

Beege

KL said:
- if blank means EMPTY then it can't be achieved by formulas as it
literally means EMPTY - no constants, no formulas (you'll need macros
for that)
- if blank means STRING OF ZERO LENGTH ("") then you can try the
following formula in [A2]: =IF(A1=0,"",MyAlternative)
the string of 0 length looks like blank, but technically is not blank
and behaves differently in most situations (not in all though).


Even a vacuum takes up space, no?

Beege
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top