Thread: [Solved] Zero (0) in cell
View Single Post
 
Old 01-18-2011, 09:47 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by ConneXionLost View Post
Please note the OP's question; the part where it refers to "cell formatting".
Your point being?

Your advice:
Quote:
it will hide ALL zeros
is plain wrong. It will only hide 0s in the cells to which the custom format is applied - not all cells in the worksheet.

As for:
Quote:
Originally Posted by ConneXionLost View Post
Your formula would work better as:

Code:
IF(AND(A1=0,B1=0),"",A1+B1)
to avoid the embarrassment of 0+4=""
I was quite deliberate in using the OR statement, for the reasons I gave. With your variant, if -A1=B1, you'll still get a 0 display.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote