Hide Negative Numbers or Display as Zero

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using Excel 2007 and can't figure out how to hide Negative Numbers or
dispay them as Zero. I'm making a timesheet and this is the formula I'm
using: =IF(ISTEXT(C10),D10,D10-C10)*24. When C10 is not text and I enter
8:00, F10 shows as -8.00. How can I hide this or display it as Zero until I
enter a value in D10?
 
Try this:

=IF(D10="","",IF(ISTEXT(C10),D10,D10-C10)*24)

will display a blank if D10 is blank.

Hope this helps.

Pete
 
Don't know if this applies to 2007, but try condtional formatting, with value
less than or equal to zero:

Set the font color equal to the background color.
 
I thought of that but I was hoping there was a formula or option I could set
such as hiding zero values. If all else fails this is what I'll do. Thanks!
 
Nope, didn't work. I even tried this formula:
=IF(D10<0,0,IF(ISTEXT(C10),D10,D10-C10))*24 and still doesn't work. If I
can't figure it out I'll just use conditional formatting and set font and
background as white unless it's over 0. Thanks for the response!
 
Do you need to use the zero in calculations? If not, use this number
format to display zero:

0;"0"

or this number format to display blank:

0;""
 

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