PC Review


Reply
Thread Tools Rate Thread

adding a leading 00 to some loan numbers

 
 
*alan*
Guest
Posts: n/a
 
      11th Mar 2008
I've got several thousand loan numbers which need to be updated to a
ten-digit format by adding a leading 00.
That's easy enough to do, HOWEVER, some of them have already been updated
with the leading 00.
What formula can I use to add 00 only to those which have not already been
updated?
Thanks.
--
alan

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      11th Mar 2008
=right(rept("0",10)&a1,10)

If the values are all numeric (not text), you could apply a custom format:

Select the range
format|cells|Number tab|Custom category
0000000000

or use a formula like this if the cell looks numeric:
=text(a1,rept("0",10))
or
=text(a1,"0000000000")


*alan* wrote:
>
> I've got several thousand loan numbers which need to be updated to a
> ten-digit format by adding a leading 00.
> That's easy enough to do, HOWEVER, some of them have already been updated
> with the leading 00.
> What formula can I use to add 00 only to those which have not already been
> updated?
> Thanks.
> --
> alan


--

Dave Peterson
 
Reply With Quote
 
*alan*
Guest
Posts: n/a
 
      11th Mar 2008
Thank you so much ---- the numbers were all text, and your formula worked
perfectly. I see also that it will work perfectly for some 7-digit numbers
that have be updated with 000, and in fact (by changing the number after the
comma)will work for addition of as many zeroes as will be necessary to
expand to any digit matrix. I'd been totally unaware of the "rept" factor.
Thanks again
--
alan

"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> =right(rept("0",10)&a1,10)
>
> If the values are all numeric (not text), you could apply a custom format:
>
> Select the range
> format|cells|Number tab|Custom category
> 0000000000
>
> or use a formula like this if the cell looks numeric:
> =text(a1,rept("0",10))
> or
> =text(a1,"0000000000")
>
>
> *alan* wrote:
>>
>> I've got several thousand loan numbers which need to be updated to a
>> ten-digit format by adding a leading 00.
>> That's easy enough to do, HOWEVER, some of them have already been updated
>> with the leading 00.
>> What formula can I use to add 00 only to those which have not already
>> been
>> updated?
>> Thanks.
>> --
>> alan

>
> --
>
> Dave Peterson


 
Reply With Quote
 
Tyro
Guest
Posts: n/a
 
      11th Mar 2008
A good book on Excel, such as JohnWalkenbach's Bible series would help you.
It's only $40 and easy reading

Tyro

"*alan*" <(E-Mail Removed)> wrote in message
news:bgkBj.15649$(E-Mail Removed)...
> I've got several thousand loan numbers which need to be updated to a
> ten-digit format by adding a leading 00.
> That's easy enough to do, HOWEVER, some of them have already been updated
> with the leading 00.
> What formula can I use to add 00 only to those which have not already been
> updated?
> Thanks.
> --
> alan



 
Reply With Quote
 
*alan*
Guest
Posts: n/a
 
      11th Mar 2008
Thanks for the suggestion --- I'll check it out.
--
alan

"Tyro" <(E-Mail Removed)> wrote in message
newsTlBj.16746$(E-Mail Removed)...
>A good book on Excel, such as JohnWalkenbach's Bible series would help you.
>It's only $40 and easy reading
>
> Tyro
>
> "*alan*" <(E-Mail Removed)> wrote in message
> news:bgkBj.15649$(E-Mail Removed)...
>> I've got several thousand loan numbers which need to be updated to a
>> ten-digit format by adding a leading 00.
>> That's easy enough to do, HOWEVER, some of them have already been updated
>> with the leading 00.
>> What formula can I use to add 00 only to those which have not already
>> been updated?
>> Thanks.
>> --
>> alan

>
>


 
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
Adding up a loan Joel Microsoft Excel Misc 2 16th Apr 2008 01:17 AM
Sort "text" numbers with and without leading zeros as numbers T.K. Microsoft Excel Misc 1 10th Feb 2008 04:19 PM
adding a leading 0 to only the numbers with 4 digits SwampYankee Microsoft Excel Discussion 4 1st Jun 2006 08:34 PM
Looking to add a leading 0 @ start of numbers doktor_man Microsoft Excel Misc 1 8th May 2006 04:30 PM
unwanted duplicate loan account numbers =?Utf-8?B?Z2VlYmVl?= Microsoft Access Queries 1 8th Mar 2006 11:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:41 AM.