+ Reply to Thread
Results 1 to 3 of 3

Converting 2/3 digit numbers to 5 digits with text

  1. #1
    Registered User
    Join Date
    02-05-2008
    Posts
    2

    Converting 2/3 digit numbers to 5 digits with text

    Hi guys I've spent ages trying to work this out with no joy
    Basically I have a list of numbers, and i need to add 1 char to the front of the number and make it into a 5 digit number.

    Heres an example

    Number------------------- Needs to Look like this
    12--------------------- S00012
    14--------------------- S00014
    15--------------------- S00015
    20--------------------- S00020
    50--------------------- S00050
    100-------------------- S00100
    354-------------------- S00354
    555-------------------- S00555
    666-------------------- S00666

    I have over 1000 rows of these numbers that need to be changed so I was hoping that there is some sort of formula that will do this for me, any help would be greatly appreciated

    -Andy

    P.S sorry for previous wrong post

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Say data in Col A. Enter this in B1 and drag down

    ="S"&TEXT(A1,"00000")
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-05-2008
    Posts
    2
    thats brill thanks very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1