Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number Formatting in XLS

Status
Not open for further replies.

awood69

Programmer
Feb 27, 2012
19
US
I need to be able to use the same style for multiple number formats. For example, I need to show anywhere between 0 & 2 decimal places. I have this like below -

<NumberFormat ss:Format="#,###.##;[Red]\(-#,###.##\)"/>

Problem is I get the following results and I need to not show the decimal.


37 - 37.

Please Help.
 

Try:
Code:
<NumberFormat ss:Format="#,##[blue]0[/blue].##;[Red]\(-#,##[blue]0[/blue].##\)"/>

Have fun.

---- Andy
 
Andy, thanks for the response but that will still show the decimal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top