Custom format show < +/-500 as zero not blank

A

AnneM

With custom format to display in thousands, how do I get <500 and >-500 to
display as zero instead of blank?
I am currently using #,###,_);(#,###,);0_) which shows 0 if value is zero,
but not if value >0 and <500.
I tried conditions, such as [>=500]#,###,;[<=-500](#,###,) but can't figure
out what to do for (<500 and >-500).
 
J

JE McGimpsey

One way:

[<=-500](#,##0,);[<500]\0_);#,##0,_)

Note, however, that negative values greater than -500 will display as -0.
 
A

AnneM

Thanks! Building on that, I realized that ##,##0,_);(#,##0,);0_) will do
what I want. I just had to replace the last # with a 0.

JE McGimpsey said:
One way:

[<=-500](#,##0,);[<500]\0_);#,##0,_)

Note, however, that negative values greater than -500 will display as -0.



AnneM said:
With custom format to display in thousands, how do I get <500 and >-500 to
display as zero instead of blank?
I am currently using #,###,_);(#,###,);0_) which shows 0 if value is zero,
but not if value >0 and <500.
I tried conditions, such as [>=500]#,###,;[<=-500](#,###,) but can't figure
out what to do for (<500 and >-500).
 

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