Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Numeric formatting: decimals and no decimals

Hi,

Can anyone please tell me how to format numbers so that if there is no
decimal value a whole number without decimals shows up, but if there is a
decimal value then a number with 1 or 2 decimal values show up? Like this:

1
0
0.2
2.3

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Numeric formatting: decimals and no decimals

Have you tried formating as general?
--
HTH...

Jim Thomlinson


"ppsa" wrote:

Hi,

Can anyone please tell me how to format numbers so that if there is no
decimal value a whole number without decimals shows up, but if there is a
decimal value then a number with 1 or 2 decimal values show up? Like this:

1
0
0.2
2.3

Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Numeric formatting: decimals and no decimals

Yeah, it almost does the trick, but I'd like to get rid of the zero to the
left of the decimal (my example below mistakenly includes the zero).

"Jim Thomlinson" wrote:

Have you tried formating as general?
--
HTH...

Jim Thomlinson


"ppsa" wrote:

Hi,

Can anyone please tell me how to format numbers so that if there is no
decimal value a whole number without decimals shows up, but if there is a
decimal value then a number with 1 or 2 decimal values show up? Like this:

1
0
0.2
2.3

Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Numeric formatting: decimals and no decimals

Try
Tools - Options - View - Uncheck Zero Values
--
HTH...

Jim Thomlinson


"ppsa" wrote:

Yeah, it almost does the trick, but I'd like to get rid of the zero to the
left of the decimal (my example below mistakenly includes the zero).

"Jim Thomlinson" wrote:

Have you tried formating as general?
--
HTH...

Jim Thomlinson


"ppsa" wrote:

Hi,

Can anyone please tell me how to format numbers so that if there is no
decimal value a whole number without decimals shows up, but if there is a
decimal value then a number with 1 or 2 decimal values show up? Like this:

1
0
0.2
2.3

Thank you.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Numeric formatting: decimals and no decimals

How about conditional formatting?

"Jim Thomlinson" wrote in message
...
Try
Tools - Options - View - Uncheck Zero Values
--
HTH...

Jim Thomlinson


"ppsa" wrote:

Yeah, it almost does the trick, but I'd like to get rid of the zero to
the
left of the decimal (my example below mistakenly includes the zero).

"Jim Thomlinson" wrote:

Have you tried formating as general?
--
HTH...

Jim Thomlinson


"ppsa" wrote:

Hi,

Can anyone please tell me how to format numbers so that if there is
no
decimal value a whole number without decimals shows up, but if there
is a
decimal value then a number with 1 or 2 decimal values show up? Like
this:

1
0
0.2
2.3

Thank you.





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
Count digits before decimals and after decimals Elton Law[_2_] Excel Worksheet Functions 5 April 3rd 23 10:59 AM
Omitting whole numbers when formatting decimals BunnyHop Excel Worksheet Functions 2 July 17th 09 06:52 AM
Conditional formatting with decimals [email protected] Excel Programming 3 July 2nd 07 04:43 PM
Formatting axis decimals Don Culp Charts and Charting in Excel 1 February 22nd 07 08:30 AM
Conditional formatting : amount of decimals belgian11 Excel Discussion (Misc queries) 0 December 25th 05 04:47 PM


All times are GMT +1. The time now is 12:43 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"