+ Reply to Thread
Results 1 to 4 of 4

How do I remove single spaces between words in spreadsheet?

  1. #1
    Registered User
    Join Date
    09-17-2007
    Posts
    2

    How do I remove single spaces between words in spreadsheet?

    I have a column in my spreadsheet. I need to remove all the single spaces between the words in every cell of the column.

    For example:
    Tooth paste
    Pop corn

    Need to appear as:
    Toothpaste
    Popcorn

    There are about 6000 lines so I can't do it one by one. The space is in between the two words and there are only two words per cell. Is there an easy way to do this? HELP! Thanks.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    In a free adjacent column you can enter a formula like

    =Substitute(A1," ","") where A1 houses first string to trim and copy the formula down 6000+/- rows.

    Then select that entire new column and copy it.

    Go to the top cell in the original column and select Paste Special from the Edit menu and select Values. Click Ok.

    Now you can delete the helper column.
    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
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    How do I remove single spaces between words in spreadsheet?

    Try this....

    Select the range of cells to be impacted

    From the Excel Main Menu:
    <edit><replace>
    Find what: (enter a space here)
    Replace with: (leave this blank)
    Click [Replace All]

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    09-17-2007
    Posts
    2
    Thanks... I had tried find & replace earlier but guess I was in too much of a rush and it didn't work. Retried it and that worked. Thanks.

+ 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