LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Myerse
 
Posts: n/a
Default How to only show decimals if there are any


I want my numbers to be formatted as follows:

423
15
(2.5)
.5
10
(.5)
(2)
(23)
1,516

It is a FTE report, so most numbers are whole numbers, but some
departments have .5 for part-time employees.

When I use General formatting, the negative numbers show as -2, instead
of (2) and the decimals show as 0.5 instead of .5. I can live with
this, but was wondering how to format to get above results.

I have tried the following custom formatting, but it puts a decimal
after an integer, so 423 is 423. and (2) is (2.)

_(* #,###.##_);_(* (#,###.##);_(* "-"??_);_(@_)

Any ideas? Thanks for your help.


--
Myerse
------------------------------------------------------------------------
Myerse's Profile: http://www.excelforum.com/member.php...o&userid=35719
View this thread: http://www.excelforum.com/showthread...hreadid=555029

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show data used and percent label Desiree Charts and Charting in Excel 2 October 18th 05 04:34 PM
leading zeros are not showing in the formula bar but do show in ce Debbie Excel Discussion (Misc queries) 2 October 2nd 05 03:26 PM
Show values from other sheet TONY Excel Worksheet Functions 0 August 31st 05 03:03 PM
with formulas that show negative results I want to show zero inste brit64 Excel Discussion (Misc queries) 6 August 29th 05 11:12 PM
How do I calculate without decimals in excel? upstate Excel Worksheet Functions 1 August 11th 05 09:26 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"