+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Fill the cell to equal 13 characters

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2016
    Posts
    11

    Fill the cell to equal 13 characters

    I have cells of many character lengths that I need to change so they are a total of 13 characters in length and they must all begin with S01.

    An example of what I have:
    12345
    2510236
    149841310
    1151
    105463

    And what it needs to be:
    S010000012345
    S010002510236
    S010149841310
    S010000001151
    S010000105463

    Any idea on a function/formula that will help me accomplish this?


    Thanks in advance!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Fill the cell to equal 13 characters

    Try in a separate column

    ="S01"&TEXT(A1,REPT(0,10))

    copied down where A1 contains first value to fix.

    You can then copy and paste special >> Values over original, if needed.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2016
    Posts
    11

    Re: Fill the cell to equal 13 characters

    Thank you so much for your help!

+ 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