Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Suppressing Decmal zero's

Hi

Is it possible that I can format cells so that numbers that have zero
after the decimal point show without the .0 but other numbers with
values after the decimal point show?

Example, I have formatted a set of cells to have a single decimal
place but I want 248.0 to show as 248 but I also want 248.5 to show as
248.5

Thanks
Neil

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Suppressing Decmal zero's

Isn't that what General will do?

The bad news is that =1/3 may not show what you want.



neil40 wrote:

Hi

Is it possible that I can format cells so that numbers that have zero
after the decimal point show without the .0 but other numbers with
values after the decimal point show?

Example, I have formatted a set of cells to have a single decimal
place but I want 248.0 to show as 248 but I also want 248.5 to show as
248.5

Thanks
Neil


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Suppressing Decmal zero's

=IF(MOD(A1,1)=0,INT(A1),A1)


"neil40" wrote:

Hi

Is it possible that I can format cells so that numbers that have zero
after the decimal point show without the .0 but other numbers with
values after the decimal point show?

Example, I have formatted a set of cells to have a single decimal
place but I want 248.0 to show as 248 but I also want 248.5 to show as
248.5

Thanks
Neil


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Suppressing Decmal zero's

On 22 Apr, 00:25, Dave Peterson wrote:
Isn't that what General will do?

The bad news is that =1/3 may not show what you want.

neil40 wrote:

Hi


Is it possible that I can format cells so that numbers that have zero
after the decimal point show without the .0 but other numbers with
values after the decimal point show?


Example, I have formatted a set of cells to have a single decimal
place but I want 248.0 to show as 248 but I also want 248.5 to show as
248.5


Thanks
Neil


--

Dave Peterson


Dave
General will remove the .0 but it also rounds others, so 523.5 becomes
524
The other solution works though, (Teethless mama's)
Neil

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Suppressing Decmal zero's

Try widening the column so you can see more digits--or change to a smaller font.

Either way will let you see 523.5 as 523.5


neil40 wrote:

On 22 Apr, 00:25, Dave Peterson wrote:
Isn't that what General will do?

The bad news is that =1/3 may not show what you want.

neil40 wrote:

Hi


Is it possible that I can format cells so that numbers that have zero
after the decimal point show without the .0 but other numbers with
values after the decimal point show?


Example, I have formatted a set of cells to have a single decimal
place but I want 248.0 to show as 248 but I also want 248.5 to show as
248.5


Thanks
Neil


--

Dave Peterson


Dave
General will remove the .0 but it also rounds others, so 523.5 becomes
524
The other solution works though, (Teethless mama's)
Neil


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Suppressing Decmal zero's

What version of Excel do you have where General causes 523.5 to round to 524
(unless the cell width is too narrow to display 523.5)?

What cell format do you have that allows Teethless mama's solution to work?
I would expect it to work only if the cell format is General, in which case
it doesn't need the formula.
--
David Biddulph

"neil40" wrote in message
oups.com...
General will remove the .0 but it also rounds others, so 523.5 becomes
524
The other solution works though, (Teethless mama's)
Neil


On 22 Apr, 00:25, Dave Peterson wrote:
Isn't that what General will do?

The bad news is that =1/3 may not show what you want.

neil40 wrote:

Hi


Is it possible that I can format cells so that numbers that have zero
after the decimal point show without the .0 but other numbers with
values after the decimal point show?


Example, I have formatted a set of cells to have a single decimal
place but I want 248.0 to show as 248 but I also want 248.5 to show as
248.5


Thanks
Neil



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 663
Default Suppressing Decmal zero's

Hi,

On the Format Toolbar, click the Increase decimal or decrease decimal button.

Challa Prabhu

"neil40" wrote:

Hi

Is it possible that I can format cells so that numbers that have zero
after the decimal point show without the .0 but other numbers with
values after the decimal point show?

Example, I have formatted a set of cells to have a single decimal
place but I want 248.0 to show as 248 but I also want 248.5 to show as
248.5

Thanks
Neil


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Suppressing Decmal zero's

On 23 Apr, 10:26, challa prabhu
wrote:
Hi,

On the Format Toolbar, click the Increase decimal or decrease decimal button.

Challa Prabhu



"neil40" wrote:
Hi


Is it possible that I can format cells so that numbers that have zero
after the decimal point show without the .0 but other numbers with
values after the decimal point show?


Example, I have formatted a set of cells to have a single decimal
place but I want 248.0 to show as 248 but I also want 248.5 to show as
248.5


Thanks
Neil- Hide quoted text -


- Show quoted text -


That would work but not acceptable as the column of numbers could be
either .5 or .0 as it's a League table derived from a ranking.
The 'General' format and column widening resolved it, though I would
have expected a series of #### if the number was too wide, Have seen
that before.
Thanks all
Neil

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
Suppressing zero value for calculated items Tim Wheeler Excel Discussion (Misc queries) 3 August 22nd 08 04:21 PM
Suppressing zero value display in print-out Gary D. Excel Worksheet Functions 3 October 13th 07 08:49 PM
Suppressing print dialogue box sgrech Excel Discussion (Misc queries) 0 September 24th 05 12:14 PM
Hi all!! Suppressing the "Do you want to save changes" Bony Pony Excel Worksheet Functions 2 February 2nd 05 11:39 AM
suppressing the splash screen bullseye Excel Discussion (Misc queries) 4 January 5th 05 05:39 PM


All times are GMT +1. The time now is 11:40 PM.

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

About Us

"It's about Microsoft Excel"