ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Custom format show < +/-500 as zero not blank (https://www.excelbanter.com/excel-worksheet-functions/216249-custom-format-show-500-zero-not-blank.html)

annem

Custom format show < +/-500 as zero not blank
 
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).


JE McGimpsey

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

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

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



In article ,
AnneM wrote:

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).


annem

Custom format show < +/-500 as zero not blank
 
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" wrote:

One way:

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

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



In article ,
AnneM wrote:

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).




All times are GMT +1. The time now is 10:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com