+ Reply to Thread
Results 1 to 6 of 6

Increase number of characters in a cell

Hybrid View

Andrewswart Increase number of characters... 07-26-2012, 08:57 AM
bonny24tycoon Re: Increase number of... 07-26-2012, 09:02 AM
MarvinP Re: Increase number of... 07-26-2012, 09:03 AM
Pete_UK Re: Increase number of... 07-26-2012, 09:09 AM
bonny24tycoon Re: Increase number of... 07-26-2012, 09:13 AM
Andrewswart Re: Increase number of... 07-26-2012, 09:50 AM
  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    Kempton Park
    MS-Off Ver
    Excel 2010
    Posts
    2

    Increase number of characters in a cell

    How can I inrease the number of characters in a cell by adding blanks. The cell contains alphbetic and numeric characters. I have different variations some with 7 or 8 or 9 characters and I need to have all with 10 characters.



    Example

    PBK 792 need to be PBK 792
    PDW 006 need to be PDW 006
    PGF 003 need to be PGF 003

  2. #2
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Increase number of characters in a cell

    I dont see the difference as PBK 792 need to be PBK 792, look alike?
    Thanks,

    Bonny Tycoon


  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,227

    Re: Increase number of characters in a cell

    Hi Andrewswart and welcome to the forum,

    It sounds to me like you just need to learn to use the AutoFit Column width function in Excel. Read http://www.ehow.com/how_2125611_use-autofit-excel.html
    If you really need to tack on spaces, do you want them in the middle, end or start of the string?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Increase number of characters in a cell

    It's not so obvious on the display, but I think you want to put the spaces between the alpha and the numeric part. If so you can use this:

    =SUBSTITUTE(TRIM(A1)," ",REPT(" ",11-LEN(TRIM(A1))))

    and copy down.

    Hope this helps.

    Pete

    ---------- Post added at 02:09 PM ---------- Previous post was at 02:07 PM ----------

    Quote Originally Posted by bonny24tycoon View Post
    I dont see the difference as PBK 792 need to be PBK 792, look alike?
    Bonny,

    click on Reply with Quote after the first post, and you can see the extra spaces between the alpha and the numeric part in the quoted section.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Increase number of characters in a cell

    @Pete_UK - Genius U R

  6. #6
    Registered User
    Join Date
    07-26-2012
    Location
    Kempton Park
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Increase number of characters in a cell

    Thank You Pete

+ 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