Formula returns "0"; How do I make it return nothing?

  • Thread starter Thread starter jonlandrum
  • Start date Start date
J

jonlandrum

It's a very basic formula: it simply returns data from another worksheet
in the workbook. However, if no data is entered in the cell a "0" will
be inserted in any cell that references it. I tried IF with a space for
value_if_true, like so:

=IF('sheet1!A1'=0, , 'sheet1!A1')

But that didn't work; it still returned "0". I then tried replacing the
space with a non-breaking space (Alt + 0160); that returned an error.
Any Ideas?

~Jonathan
 
tony, it worked beautifully. Thank you very much! I don't know why I
didn't post that question here six months ago. I've just been coloring
the zeros white. :o)

Now I have to find another excuse for spending all day with these
files.

~Jonathan
 
You could also use a custom format of General;General;

and then just use

='sheet1!A1'

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Bob, I didn't think of that, either. However, it wouldn't work because
the formating has to be either in date format or dollar format.
 
You can still use the technique

Assuming you never get negative dates

dd/mmm/yyyy;;

But with currency

£#,##0.00;-£#,##0.00;

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

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

Back
Top