Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JenBasch
 
Posts: n/a
Default removing a space between words in a cell


I am trying to figure out how to remove a space between two words in one
cell.

ex: dog house ---- doghouse

Once I figure that out I want it to look through a lot of cells and if
they have a space take it out (above) and if not leave it the way it
is.

Thanks for any help available,
Jen


--
JenBasch
------------------------------------------------------------------------
JenBasch's Profile: http://www.excelforum.com/member.php...o&userid=27369
View this thread: http://www.excelforum.com/showthread...hreadid=468842

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


assuming you only have one space per cell to eliminate, use this formula
in another cell (say B1):

B1=LEFT(A1,(FIND(" ",A1)-1))&MID(A1,FIND(" ",A1)+1,LEN(A1)-(FIND("
",A1)))

of course, adjust the cell reference to meet your needs.

A1=dog house returns: doghouse in B1

HTH

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=468842

  #3   Report Post  
David Billigmeier
 
Posts: n/a
Default

A LOT easier formula is:
=SUBSTITUTE(A1," ","")


--
Regards,
Dave
<!--


"JenBasch" wrote:


I am trying to figure out how to remove a space between two words in one
cell.

ex: dog house ---- doghouse

Once I figure that out I want it to look through a lot of cells and if
they have a space take it out (above) and if not leave it the way it
is.

Thanks for any help available,
Jen


--
JenBasch
------------------------------------------------------------------------
JenBasch's Profile: http://www.excelforum.com/member.php...o&userid=27369
View this thread: http://www.excelforum.com/showthread...hreadid=468842


  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

A LOT easier may be EditReplace

what: space

with: nothing

Replace all.


Gord Dibben Excel MVP

On Mon, 19 Sep 2005 09:28:09 -0700, "David Billigmeier"
wrote:

A LOT easier formula is:
=SUBSTITUTE(A1," ","")


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
Using 'If' refer to specific words in a cell containing text Casino Guy Excel Worksheet Functions 5 August 10th 05 02:02 PM
how do I fit 2 words into one cell one on top of the other? Emzie Excel Discussion (Misc queries) 2 April 21st 05 10:16 PM
Removing a space after a comma DebbieK9 New Users to Excel 3 April 1st 05 10:08 PM
Is there a limit to number of words in a cell in excel? rampam1 Excel Discussion (Misc queries) 1 January 23rd 05 06:07 PM
Removing a space within a cell JERRY8 Excel Worksheet Functions 3 December 2nd 04 03:22 AM


All times are GMT +1. The time now is 03:18 PM.

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

About Us

"It's about Microsoft Excel"