Suppose the data is in the B column, write in the C column the formula:
=SUBSTITUTE(B1," ","")
Copy&Paste the formula in the whole C column.
edit: using commas or semicolons as parameters separator depends on your regional settings (I have to use the semicolons). This is weird I think. Thanks to @tocallaghan and @pablete for pointing this out.
Answer from vulkanino on Stack OverflowSuppose the data is in the B column, write in the C column the formula:
=SUBSTITUTE(B1," ","")
Copy&Paste the formula in the whole C column.
edit: using commas or semicolons as parameters separator depends on your regional settings (I have to use the semicolons). This is weird I think. Thanks to @tocallaghan and @pablete for pointing this out.
It is SUBSTITUTE(B1," ",""), not REPLACE(xx;xx;xx).
Patrรญcia Neves = patricianeves Helio of Pianti = heliodepianti รlvaro Marques = alvaromarques
I want to do this in bulk with a thousand names.
Edit: The user gutsyspirit told me the simplest way for anyone who has the same question:
Ctrl + H -> find what: space bar Replace with: does not write anything
Just press replace to adjust or replace all.
I copy text from documents into Excel and when they come through, there will be anywhere between 2 and 10 spaces between words. Is there anything I can do to get rid of those?
Thanks for the help!
Hi Wilson,
I am working on an excel that requires me to shorten text strings by removing spaces. I use the TRIM but it still leaves a regular blank between words. What I want to do is to make " apple orange lemon" become " appleorangelemon". I wonder if there is a way to do this so I can save my time.
- Select data of interest
- Ctrl+H to open the Find & Replace dialog
- Enter a single space in the Find what box
- Delete any content fromReplace with box
- Replace all
===
Regards,
Norman
Hi Wilson,
Thank you so much. Your method works like a magic.
You are very welcome!
Thank you for the kind feedback.
===
Regards,
Norman