#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default removing all spaces

I have a list of company names in excel and need to remove all spacing. e.g.
"care homes ltd" needs to be "carehomesltd" if there a formula that will
remove this spacing?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default removing all spaces

=SUBSTITUTE(A1," ","")

--
Gary''s Student
gsnu200711

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default removing all spaces

One way:

=SUBSTITUTE(A1," ","")

In article ,
jamesea wrote:

I have a list of company names in excel and need to remove all spacing. e.g.
"care homes ltd" needs to be "carehomesltd" if there a formula that will
remove this spacing?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default removing all spaces

How about just selecting the range to fix and
Edit|Replace
what: (spacebar)
with: (leave blank)
replace all



jamesea wrote:

I have a list of company names in excel and need to remove all spacing. e.g.
"care homes ltd" needs to be "carehomesltd" if there a formula that will
remove this spacing?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default removing all spaces

One last thought on removing spaces from Excel: If the spaces are normal
spaces, use Ctrl+H (Replace), "Find What": [enter a single 'space' here]
"Replace With": [leave blank] will work fine. HOWEVER, if the spaces are
"protected spaces" (e.g., Ctrl+Shift+space), that procedure WILL NOT WORK.
Use the same procedure above, but instead of entering a single 'space' under
"Find What", you must enter Alt+0160 (using the numbers on the NumPad only).
You can't see "protected spaces" in Excel (you can copy and paste a section
into word and click on the Paragraph Icon to see if the spaces are
protected... they will appear as little circles instead of dots). Good luck.
P.S. Thank you "Cliff" for the latter tip.

"Dave Peterson" wrote:

How about just selecting the range to fix and
Edit|Replace
what: (spacebar)
with: (leave blank)
replace all



jamesea wrote:

I have a list of company names in excel and need to remove all spacing. e.g.
"care homes ltd" needs to be "carehomesltd" if there a formula that will
remove this spacing?


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing spaces in cell Tom Excel Worksheet Functions 4 January 30th 07 12:48 AM
REMOVING TRAILING SPACES Tris Excel Discussion (Misc queries) 5 August 29th 06 03:36 PM
Removing spaces from columns Joni Hook Excel Worksheet Functions 2 May 26th 06 09:59 PM
removing spaces Claus Massmann Excel Discussion (Misc queries) 12 March 30th 06 02:23 AM
Removing Spaces in a Cell carl Excel Worksheet Functions 2 October 28th 04 11:34 PM


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

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

About Us

"It's about Microsoft Excel"