+ Reply to Thread
Results 1 to 5 of 5

add 2 zeros to the beginning of each number

  1. #1
    Registered User
    Join Date
    09-13-2011
    Location
    glasgow
    MS-Off Ver
    Excel 2003
    Posts
    2

    Thumbs up add 2 zeros to the beginning of each number

    Hello guys



    anyone able to help out with a small problem i have

    i have a whole row of numbers that contain a letter in each line e.g



    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1
    3478L1
    1357L1


    what i would like to do is add 2 zeros to the beginning of each number eg

    003478L1
    001257L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1
    003478L1
    001357L1

    guys i have tried right clicking on A1 the selecting format cells then number then custom and entering 000000

    this works ok for a standard 6 digit number but mines contains a letter L and thus cause this formula to fail

    does anyone have have any ideas how i would get 2 zeros to the start of each number please

    many thanks

    Gary

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: add 2 zeros to the beginning of each number

    in b1 use
    ="00"&A1

    and copy down, then paste values from column B to column A

    see attatchment
    Attached Files Attached Files
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  3. #3
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: add 2 zeros to the beginning of each number

    also in format cell use

    General;General;General;"00"General

    see attatchment
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-13-2011
    Location
    glasgow
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: add 2 zeros to the beginning of each number

    got it working guys thanks for taking time out to help its appreciated

  5. #5
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: add 2 zeros to the beginning of each number

    If your problem is solved, mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.

+ 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