Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Show decimal point only if not a whole number


I'd like to clean up the appearance of a spreadsheet by showing a
decimal point only if the value is not a whole number, as well as limit
the number of decimal places.

Conditional formatting allows formulas to specify a condition, such as
=A1=Int(A1), but I can't figure out how to specify a number format
(instead of a color) as a result.


--
Exceler
------------------------------------------------------------------------
Exceler's Profile: http://www.excelforum.com/member.php...o&userid=36221
View this thread: http://www.excelforum.com/showthread...hreadid=560141

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Show decimal point only if not a whole number


Use the command Format\Cells\Number. To do what you want, you should
either select General format 0 which will give you exactly what is
typed, or alternatively 0.### with one hash for each decimal place you
want to display

Matt


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=560141

  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Show decimal point only if not a whole number

Right-click FormatCells NumberTab Custom 0.## in the Type: window
Ok.........this will format to give a decimal point and no digits after for
whole numbers and one to two decimal places max for those numbers with
decimals.

hth
Vaya con Dios,
Chuck, CABGx3

"Exceler" wrote:


I'd like to clean up the appearance of a spreadsheet by showing a
decimal point only if the value is not a whole number, as well as limit
the number of decimal places.

Conditional formatting allows formulas to specify a condition, such as
=A1=Int(A1), but I can't figure out how to specify a number format
(instead of a color) as a result.


--
Exceler
------------------------------------------------------------------------
Exceler's Profile: http://www.excelforum.com/member.php...o&userid=36221
View this thread: http://www.excelforum.com/showthread...hreadid=560141


Reply
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 week number in current month DKerr Excel Discussion (Misc queries) 4 February 23rd 06 09:20 PM
I want the greater number of 2 cells to show in a separate cell Ron Coderre Excel Discussion (Misc queries) 1 November 16th 05 09:22 PM
How do I round last number without a decimal point rollover22 Excel Worksheet Functions 1 July 26th 05 04:35 PM
How do I insert 2 decimal places to a number in cell? Rebecca Martinez Excel Worksheet Functions 6 July 7th 05 07:12 PM
Converting a number to 2 decimal places mattslav Excel Discussion (Misc queries) 2 June 4th 05 04:10 AM


All times are GMT +1. The time now is 01:54 AM.

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"