Find and Replace

15 pts.
Tags:
Microsoft Excel 2010
microsoft excel functions
I have a spread sheet where I need to replace the space between each word with a hyphen. Since find & replace does not recognize space, is there another way to do this?

Software/Hardware used:
Microsoft Office 2010

Answer Wiki

Thanks. We'll let you know when a new response is added.

Well, I use ‘replace’ to replace ” ” with anything else. In excel it works fine!
Ex to replace space with hyphen: Worksheets(S).Columns(“A”).Replace _
    What:=” “, Replacement:=”-”, _
    SearchOrder:=xlByColumns, MatchCase:=False
Rgrds, chris

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I don't recall ever having a problem replacing spaces, but I don't currently have copies of Excel to work with (nor do I want any). I can only agree with the 'Answer' from memory and ask for more clarification that better describes the problem. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Find ~ Replace -Use Tilde Followed by a Space to indicate find a spaceReplace with a hyphen where it's found.Phil
    49,840 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following