ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   number format (https://www.excelbanter.com/new-users-excel/56981-number-format.html)

Newbie

number format
 
I want to be able to format a number so that
if it is 0 it shows "-"
If it is positive is shows 2 decimal places like 10,500.30
If it is negative it shows in brackets like (10,500.30)

How can I do this

Thanks

A



Bob Phillips

number format
 
Custom format of

#,###,##0.00;(#,###,##0.00);"-"

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Newbie" wrote in message
...
I want to be able to format a number so that
if it is 0 it shows "-"
If it is positive is shows 2 decimal places like 10,500.30
If it is negative it shows in brackets like (10,500.30)

How can I do this

Thanks

A





Newbie

number format
 
thanks
"Bob Phillips" wrote in message
...
Custom format of

#,###,##0.00;(#,###,##0.00);"-"

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Newbie" wrote in message
...
I want to be able to format a number so that
if it is 0 it shows "-"
If it is positive is shows 2 decimal places like 10,500.30
If it is negative it shows in brackets like (10,500.30)

How can I do this

Thanks

A








All times are GMT +1. The time now is 08:00 PM.

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