Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() I am trying to remove all the spaces from a cell so that I can create a single word. For example, in A1, I have "HOT DOG" then in A2, I would like "HOTDOG." The only function I know that comes close to this is TRIM, but that still leaves single spaces in between. Thanks for the help people. -- killertofu ------------------------------------------------------------------------ killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024 View this thread: http://www.excelforum.com/showthread...hreadid=514520 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
Select the range with entries, you want to clean from all spaces. From menu, activate Replace dialog. Replace all spaces (" ") wit nothing. Arvi Laanemets "killertofu" wrote in message ... I am trying to remove all the spaces from a cell so that I can create a single word. For example, in A1, I have "HOT DOG" then in A2, I would like "HOTDOG." The only function I know that comes close to this is TRIM, but that still leaves single spaces in between. Thanks for the help people. -- killertofu ------------------------------------------------------------------------ killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024 View this thread: http://www.excelforum.com/showthread...hreadid=514520 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Perhaps this will work for you: For text in A1 B1: =SUBSTITUTE(A1," ","") Does that help? Regards, Ron -- Ron Coderre ------------------------------------------------------------------------ Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419 View this thread: http://www.excelforum.com/showthread...hreadid=514520 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=substitute(a1," ","")
is one way. killertofu wrote: I am trying to remove all the spaces from a cell so that I can create a single word. For example, in A1, I have "HOT DOG" then in A2, I would like "HOTDOG." The only function I know that comes close to this is TRIM, but that still leaves single spaces in between. Thanks for the help people. -- killertofu ------------------------------------------------------------------------ killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024 View this thread: http://www.excelforum.com/showthread...hreadid=514520 -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi!
Try this: =SUBSTITUTE(A1," ","") Or, you could use EditReplace and do this in-place and not have to use a helper cell/column. Select the cell(s) in question Goto EditReplace Find what: enter a space by hitting the spacebar Replace with: nothing, leave this blank Replace all Biff "killertofu" wrote in message ... I am trying to remove all the spaces from a cell so that I can create a single word. For example, in A1, I have "HOT DOG" then in A2, I would like "HOTDOG." The only function I know that comes close to this is TRIM, but that still leaves single spaces in between. Thanks for the help people. -- killertofu ------------------------------------------------------------------------ killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024 View this thread: http://www.excelforum.com/showthread...hreadid=514520 |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUBSTITUTE(A1)
-- Regards Ken....................... Microsoft MVP - Excel Sys Spec - Win XP Pro / XL 97/00/02/03 ------------------------------*------------------------------*---------------- It's easier to beg forgiveness than ask permission :-) ------------------------------*------------------------------*---------------- "killertofu" wrote in message ... I am trying to remove all the spaces from a cell so that I can create a single word. For example, in A1, I have "HOT DOG" then in A2, I would like "HOTDOG." The only function I know that comes close to this is TRIM, but that still leaves single spaces in between. Thanks for the help people. -- killertofu ------------------------------------------------------------------------ killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024 View this thread: http://www.excelforum.com/showthread...hreadid=514520 |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Would have helped if I included all the damn arguments (Last one is
optional). =substitute(text,old_text,new_text,instance_num) =SUBSTITUTE(A1," ","") Regards Ken.............. "Ken Wright" wrote in message ... =SUBSTITUTE(A1) -- Regards Ken....................... Microsoft MVP - Excel Sys Spec - Win XP Pro / XL 97/00/02/03 ------------------------------*------------------------------*---------------- It's easier to beg forgiveness than ask permission :-) ------------------------------*------------------------------*---------------- "killertofu" wrote in message ... I am trying to remove all the spaces from a cell so that I can create a single word. For example, in A1, I have "HOT DOG" then in A2, I would like "HOTDOG." The only function I know that comes close to this is TRIM, but that still leaves single spaces in between. Thanks for the help people. -- killertofu ------------------------------------------------------------------------ killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024 View this thread: http://www.excelforum.com/showthread...hreadid=514520 |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() SUBSTITUTE was exactly what I was lookin' for. Thanks people. -- killertofu ------------------------------------------------------------------------ killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024 View this thread: http://www.excelforum.com/showthread...hreadid=514520 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I remove an indent within a cell? | Excel Discussion (Misc queries) | |||
Remove dash in cell | Excel Discussion (Misc queries) | |||
how to remove spaces in a middle of a cell example '25 566 589. | Excel Discussion (Misc queries) | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |