ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Removing Spaces from string (https://www.excelbanter.com/excel-worksheet-functions/88817-removing-spaces-string.html)

katmando

Removing Spaces from string
 

I want to be able to remove spaces from a string, that may have
muiltiple words to create a string with no spaces.
For example "sin city" to become "sincity"

The strings will be of a random length and may contain more than 2
words such as "master & commander"

Thanks


--
katmando
------------------------------------------------------------------------
katmando's Profile: http://www.excelforum.com/member.php...o&userid=29803
View this thread: http://www.excelforum.com/showthread...hreadid=542452


Ardus Petus

Removing Spaces from string
 
=SUBSTITUTE(A1," ","")

HTH
--
AP

"katmando" a écrit
dans le message de news:
...

I want to be able to remove spaces from a string, that may have
muiltiple words to create a string with no spaces.
For example "sin city" to become "sincity"

The strings will be of a random length and may contain more than 2
words such as "master & commander"

Thanks


--
katmando
------------------------------------------------------------------------
katmando's Profile:
http://www.excelforum.com/member.php...o&userid=29803
View this thread: http://www.excelforum.com/showthread...hreadid=542452




Beege

Removing Spaces from string
 
kat

Search/Replace

Select column

Use " " for search (space)
Use "" for replace (no space)

Beege

"katmando" wrote in
message ...

I want to be able to remove spaces from a string, that may have
muiltiple words to create a string with no spaces.
For example "sin city" to become "sincity"

The strings will be of a random length and may contain more than 2
words such as "master & commander"

Thanks


--
katmando
------------------------------------------------------------------------
katmando's Profile:
http://www.excelforum.com/member.php...o&userid=29803
View this thread: http://www.excelforum.com/showthread...hreadid=542452




Dave Peterson

Removing Spaces from string
 
Select the range
edit|Replace
what: (spacebar)
with: (leave blank)
replace all

is one way

katmando wrote:

I want to be able to remove spaces from a string, that may have
muiltiple words to create a string with no spaces.
For example "sin city" to become "sincity"

The strings will be of a random length and may contain more than 2
words such as "master & commander"

Thanks

--
katmando
------------------------------------------------------------------------
katmando's Profile: http://www.excelforum.com/member.php...o&userid=29803
View this thread: http://www.excelforum.com/showthread...hreadid=542452


--

Dave Peterson

katmando

Removing Spaces from string
 

Thanks. the substitute was the one i needed

cheers


--
katmando
------------------------------------------------------------------------
katmando's Profile: http://www.excelforum.com/member.php...o&userid=29803
View this thread: http://www.excelforum.com/showthread...hreadid=542452



All times are GMT +1. The time now is 06:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com