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

  • Thread starter Thread starter AnneM
  • Start date Start date
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).
 
One way:

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

Note, however, that negative values greater than -500 will display as -0.
 
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).
 
Back
Top