+ Reply to Thread
Results 1 to 9 of 9

How to remove leading space in multiple cells of a column in a spreadsheet

  1. #1
    Registered User
    Join Date
    03-20-2013
    Location
    Miami Beach, FL
    MS-Off Ver
    Excel 2003
    Posts
    3

    How to remove leading space in multiple cells of a column in a spreadsheet

    How to remove leading space in multiple cells of a column in a spreadsheet

  2. #2
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: How to remove leading space in multiple cells of a column in a spreadsheet

    just use the trim function.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-20-2013
    Location
    Miami Beach, FL
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to remove leading space in multiple cells of a column in a spreadsheet

    Sorry, could you be a little more specific. I'm just learning excel. Where's the trim function? It starts at A87 to A642. I'm trying to delete the first space which is empty

    Thanks

  4. #4
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: How to remove leading space in multiple cells of a column in a spreadsheet

    So add a column anywhere an in that column in row 87 type
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then copy that cell (CTRL+C) and highlight the column you are in from row 87 to row 642. Then paste (CTRL + V). Now in your new column you will have all the values without leading spaces.

  5. #5
    Registered User
    Join Date
    03-20-2013
    Location
    Miami Beach, FL
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to remove leading space in multiple cells of a column in a spreadsheet

    Yes, that worked!! Thanks so much.

  6. #6
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: How to remove leading space in multiple cells of a column in a spreadsheet

    No problem. Please click the star underneath this on the left under my profile if I helped you.

  7. #7
    Registered User
    Join Date
    03-30-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to remove leading space in multiple cells of a column in a spreadsheet

    Use the TRIM formula for this. This formula removes all spaces from text except for single spaces between words. This is frequently used for information exported from antiquated databases or external applications that may have irregular spacing.

    -Brian
    www.excel-help.net

  8. #8
    Registered User
    Join Date
    01-07-2013
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to remove leading space in multiple cells of a column in a spreadsheet

    Brian,

    How would you remove spaces to the left of a text string only, if you wanted to keep the spaces in the text string in tact?

    Is there a trim(left(len formula for this or something else I could use?

    I.E. - For example below I would only want to remove the spaces to the left of "Dog" but keep the spaces between "Dog" and "Puppy"

    _____Dog___Puppy

  9. #9
    Registered User
    Join Date
    03-30-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to remove leading space in multiple cells of a column in a spreadsheet

    I am not familiar with an easy way to do it, so I would probably just do it the long way - using the LEN and LEFT formula to peel characters off one at the time and identify them as a space or text.
    Then you could use the IF and the CONCATENATE function to put them all back together without the spaces. Would not be too difficult once you developed the initial structure.
    If you have any questions, you can email me through my website at www.bburkeconsulting.com -- send the worksheet and i'll take a look.

    Thanks,
    brian

+ 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