Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

number formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zuraan - 30 Nov 2007 08:03 GMT
Hi. I was woundering how I can add trailing zero's to numbers. I have
a colunm with number lemgths between 1 and 7 digets and need them all
to be 10 diget's long. I have no trouble with adding the zero's as
headers but needt hem as trailers. Thanks.
OssieMac - 30 Nov 2007 08:54 GMT
Hi zuraan,

You could put the following formula in a column beside the numbers and then
Copy, Paste special, Values over the original numbers.

=A1*10^(7-LEN(A1))

The formula assumes that the number is in cell A1

Signature

Regards,

OssieMac

> Hi. I was woundering how I can add trailing zero's to numbers. I have
> a colunm with number lemgths between 1 and 7 digets and need them all
> to be 10 diget's long. I have no trouble with adding the zero's as
> headers but needt hem as trailers. Thanks.
RichardSchollar - 30 Nov 2007 11:06 GMT
Hi Ossie

Shouldn't that be:

=A1*10^(10-LEN(A1))

Richard

> Hi zuraan,
>
[quoted text clipped - 16 lines]
>
> - Show quoted text -
Rick Rothstein (MVP - VB) - 30 Nov 2007 14:53 GMT
And another possible approach...

   =--LEFT(A1&"0000000000",10)

or, if it will be copied through blank Column A cells...

   =IF(A2="","",--LEFT(A2&"0000000000",10))

Rick

> Hi Ossie
>
[quoted text clipped - 25 lines]
>>
>> - Show quoted text -

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.