+ Reply to Thread
Results 1 to 4 of 4

Putting spaces to the right of numbers

  1. #1
    Registered User
    Join Date
    03-16-2009
    Location
    St Louis, MO
    MS-Off Ver
    Excel 2003
    Posts
    2

    Putting spaces to the right of numbers

    Hey folks,

    Got a strange question. I have a random length number followed by spaces to pad it out to certain character length and tyring to figure out how to get that to show correctly in excel. I know I can just put in ??????? for the format to get spaces in front.

    For example:

    ??? as the format 5 as what I enter gets SPACE SPACE 5

    The problem is I need 5 SPACE SPACE.

    Any ideas?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Putting spaces to the right of numbers

    Do you mean

    #__

    (# followed by 2 underscores)

  3. #3
    Registered User
    Join Date
    02-19-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    37

    Re: Putting spaces to the right of numbers

    Not sure what you mean - but you could use

    in A2
    =trim(B2)
    This clears all the spaces from the front or end of the data.
    copy and pate values into column B

    Then append 2 spaces onto it:
    In A2
    =" "&B2

    There are 2 spaces in the middle of the quotes!

    then copy and paste values again!

  4. #4
    Registered User
    Join Date
    03-16-2009
    Location
    St Louis, MO
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Putting spaces to the right of numbers

    Well for example if I enter in 10 I need there to be one space after the 10, but if I enter in 1 I need two spaces after the 1, and if I enter in 100 I need no spaces.

+ 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