+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : How to replace spaces between words with dashes?

  1. #1
    Registered User
    Join Date
    04-15-2011
    Location
    Sofia
    MS-Off Ver
    Excel 2007
    Posts
    67

    How to replace spaces between words with dashes?

    My text is in column A, and I want to replace the space between all words with a dash. I tried this: find what " " and replace with - , but it doesn't work.


    Thanks!
    Last edited by emil9216; 04-29-2011 at 06:52 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: How to replace spaces between words with dashes?

    Just press the space bar, don't use the quotes.
    Press Ctrl&h
    Find what-press space bar
    replace with -

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to replace spaces between words with dashes?

    As dave says is fine, but if your string has leading/trailing or consecutive spaces you might want to try this
    In B2
    Please Login or Register  to view this content.
    Hope this helps
    Attached Files Attached Files
    Last edited by Marcol; 04-29-2011 at 06:52 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    04-15-2011
    Location
    Sofia
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: How to replace spaces between words with dashes?

    Thanks!!

    It works this way.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to replace spaces between words with dashes?

    @ Murar
    You must start a new thread, not add a totally unrelated question, to someone elses' thread.

    Read this Forum Rules

  6. #6
    Registered User
    Join Date
    07-17-2012
    Location
    FOUR, asyspt
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: How to replace spaces between words with dashes?

    Quote Originally Posted by Marcol View Post
    As dave says is fine, but if your string has leading/trailing or consecutive spaces you might want to try this
    In B2
    Please Login or Register  to view this content.
    Hope this helps
    Superb and saved me a lot of time doing this manually

    ---------- Post added at 04:49 AM ---------- Previous post was at 04:41 AM ----------

    Quote Originally Posted by Marcol View Post
    As dave says is fine, but if your string has leading/trailing or consecutive spaces you might want to try this
    In B2
    Please Login or Register  to view this content.
    Hope this helps
    Superb and saved me a lot of time doing this manually

+ 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