Formatting 0 values to show blank cells


R

RLD

I am using the =IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...)) to return a zero value.
For printing purposes I need the 0 to not show in the cell (blank cell). I
can do this by using the accounting format, but a dash (-) still shows in the
cell. The sheet is protected to protect the formula. How can I protect AND
not show anything in the cell WHILE keeping the value at "0"?
 
Ad

Advertisements

H

Hakyab

You can use set the custom format to

;;"";

See Worksheet and Excel table basics > Formatting numbers in Excel help file
for details.
 
R

RLD

I cannot use ;;""; because it returns no value. I need the value to remain
at 0 because it is part of another SUM formula.
 
D

Dave Peterson

Try something like:
General;-General;;@
(Positive;Negative;Zero;Text)

If you're really using =sum(), you could return "" in your long formula:

=if(isna(vlookup()),"",vlookup())

=Sum() will ignore the text (an empty string).

But if you're doing arithmetic (like =a1+b1), this won't work.
 
Ad

Advertisements


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