PC Review


Reply
Thread Tools Rate Thread

Auto Formatting Decimal Point

 
 
=?Utf-8?B?QmVuIER1bW1hcg==?=
Guest
Posts: n/a
 
      18th Sep 2007
How do you set the workbook to expand the cells to the last digit after the
decimal point but not display any trailing zero's?

Example how would you display A1=3.15476 & A2=4.2 instead of A1=3.15476 &
A2=4.20000 without setting the format individually for every cell, and
without any rounding involved?

Thanks,

ben
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UHJhbmF2IFZhaWR5YQ==?=
Guest
Posts: n/a
 
      18th Sep 2007
select the cells you want to format
go to cell properties
on the number tab select 'Custom'
Type this as your custom format 0.00#####

This will always display minimum 2 decimal places and for other numbers
actual decimal places.

Hope this helps!!!
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"Ben Dummar" wrote:

> How do you set the workbook to expand the cells to the last digit after the
> decimal point but not display any trailing zero's?
>
> Example how would you display A1=3.15476 & A2=4.2 instead of A1=3.15476 &
> A2=4.20000 without setting the format individually for every cell, and
> without any rounding involved?
>
> Thanks,
>
> ben

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      18th Sep 2007
General?
--
David Biddulph

"Ben Dummar" <(E-Mail Removed)> wrote in message
news6F70643-EF0D-4051-9D34-(E-Mail Removed)...
> How do you set the workbook to expand the cells to the last digit after
> the
> decimal point but not display any trailing zero's?
>
> Example how would you display A1=3.15476 & A2=4.2 instead of A1=3.15476 &
> A2=4.20000 without setting the format individually for every cell, and
> without any rounding involved?
>
> Thanks,
>
> ben



 
Reply With Quote
 
=?Utf-8?B?UHJhbmF2IFZhaWR5YQ==?=
Guest
Posts: n/a
 
      18th Sep 2007
I think changing to general will not change the existing data whereas will
affect the new entries only.
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"David Biddulph" wrote:

> General?
> --
> David Biddulph
>
> "Ben Dummar" <(E-Mail Removed)> wrote in message
> news6F70643-EF0D-4051-9D34-(E-Mail Removed)...
> > How do you set the workbook to expand the cells to the last digit after
> > the
> > decimal point but not display any trailing zero's?
> >
> > Example how would you display A1=3.15476 & A2=4.2 instead of A1=3.15476 &
> > A2=4.20000 without setting the format individually for every cell, and
> > without any rounding involved?
> >
> > Thanks,
> >
> > ben

>
>
>

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      18th Sep 2007
Which version of Excel behaves that way, Pranav? 2003 doesn't.
--
David Biddulph

"Pranav Vaidya" <(E-Mail Removed)> wrote in message
news:5C2B2F1A-AA78-4A15-84B8-(E-Mail Removed)...
>I think changing to general will not change the existing data whereas will
> affect the new entries only.
> --
> Pranav Vaidya
> VBA Developer
> PN, MH-India
> If you think my answer is useful, please rate this post as an ANSWER!!


> "David Biddulph" wrote:
>
>> General?
>> --
>> David Biddulph


>> "Ben Dummar" <(E-Mail Removed)> wrote in message
>> news6F70643-EF0D-4051-9D34-(E-Mail Removed)...
>> > How do you set the workbook to expand the cells to the last digit after
>> > the
>> > decimal point but not display any trailing zero's?
>> >
>> > Example how would you display A1=3.15476 & A2=4.2 instead of A1=3.15476
>> > &
>> > A2=4.20000 without setting the format individually for every cell, and
>> > without any rounding involved?
>> >
>> > Thanks,
>> >
>> > ben



 
Reply With Quote
 
=?Utf-8?B?QmVuIER1bW1hcg==?=
Guest
Posts: n/a
 
      18th Sep 2007
Pranav,

That works great!

I modified it to ######.###### because I don't want any trailing zero's.

One more question do you know how to get rid of the Decimal when a whole
number is the answer?

Example

Current answer = 345.
Desired answer = 345

The difference above is the decimal that appears in the current answer.

Ben

"Pranav Vaidya" wrote:

> select the cells you want to format
> go to cell properties
> on the number tab select 'Custom'
> Type this as your custom format 0.00#####
>
> This will always display minimum 2 decimal places and for other numbers
> actual decimal places.
>
> Hope this helps!!!
> --
> Pranav Vaidya
> VBA Developer
> PN, MH-India
> If you think my answer is useful, please rate this post as an ANSWER!!
>
>
> "Ben Dummar" wrote:
>
> > How do you set the workbook to expand the cells to the last digit after the
> > decimal point but not display any trailing zero's?
> >
> > Example how would you display A1=3.15476 & A2=4.2 instead of A1=3.15476 &
> > A2=4.20000 without setting the format individually for every cell, and
> > without any rounding involved?
> >
> > Thanks,
> >
> > ben

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Formatting currency with the cents but without the decimal point Bob Phillips Microsoft Excel Programming 0 25th Oct 2010 12:06 PM
Formatting currency with the cents but without the decimal point tgavin Microsoft Access Reports 1 13th Jan 2010 12:45 AM
Formatting exactly one decimal point John S. Ford, MD Microsoft Access Reports 2 6th Dec 2006 04:56 AM
OracleNumber decimal point formatting Daniel Stankiewicz Microsoft ADO .NET 1 10th May 2006 04:28 PM
Problem with formatting , need to get rid of decimal point ..... paul@palo.co.uk Microsoft Excel Discussion 1 5th Apr 2005 11:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:33 PM.