• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to substitute out spaces

Cindy

New Member
If we have column A with "Bob_Jones" "Big_Bob_Jones" and "Little_Bob_" and want to create a list to takeout all the Bob's....what is the best way to embed the Substitute formula? (underscore represents Spaces)
 
Hi Cindy

Give this a try. Where A1 represents your string.

=SUBSTITUTE(A1,"Bob ","")

File attached to show workings.

Take care

Smallman
 

Attachments

  • Bob.xlsx
    9 KB · Views: 2
Hi Cindy,
Further to Smallman's answer, you can use the bellow formula too:

=TRIM(SUBSTITUTE(A1,"Bob ",""))

This will remove extra spaces between strings.
 
Back
Top