A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Remove Spaces



 
 
Thread Tools Display Modes
  #1  
Old September 17th, 2003, 03:42 PM
Bryant Caldwell
external usenet poster
 
Posts: n/a
Default Remove Spaces

How can I use a function to remove spaces from a string.

Before
Smith , Bob

After
Smith,Bob

Thanks,

Bryant


  #2  
Old September 17th, 2003, 03:49 PM
Andy B
external usenet poster
 
Posts: n/a
Default Remove Spaces

Bryant

You could do it with Find/Replace. Or you could use:
=SUBSTITUTE(cell," ","")

Andy.
"Bryant Caldwell" wrote in message
...
How can I use a function to remove spaces from a string.

Before
Smith , Bob

After
Smith,Bob

Thanks,

Bryant




  #3  
Old September 17th, 2003, 03:55 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Remove Spaces

=SUBSTITUTE(A1," ","")

or just do an editreplace and put a space in the replace what and leave the
replace with empty

--

Regards,

Peo Sjoblom


"Bryant Caldwell" wrote in message
...
How can I use a function to remove spaces from a string.

Before
Smith , Bob

After
Smith,Bob

Thanks,

Bryant




  #4  
Old September 17th, 2003, 10:05 PM
Lynnus
external usenet poster
 
Posts: n/a
Default Remove Spaces

Hi Bryant
A1 contains: Smith , Bob
B2 contains: =SUBSTITUTE(A1," ","") , giving Smith,Bob.
Alternatively highlight cells which you want to remove
spaces from and CTRL+H to replace " " (no quote marks)
with nothing.
Lynnus

-----Original Message-----
How can I use a function to remove spaces from a string.

Before
Smith , Bob

After
Smith,Bob

Thanks,

Bryant


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.