Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nicole0904
 
Posts: n/a
Default Changing characters in a cell


I want to check a cell to see if the text contains a space in it and if
it does I need to change that to an _. Can anyone help?


--
nicole0904
------------------------------------------------------------------------
nicole0904's Profile: http://www.excelforum.com/member.php...o&userid=31774
View this thread: http://www.excelforum.com/showthread...hreadid=514969

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Changing characters in a cell

Using a formula:

=substitute(a1," ","_")

(why bother checking??)

Or just select the range to inspect and
edit|replace
what: (spacebar)
with: _
replace all



nicole0904 wrote:

I want to check a cell to see if the text contains a space in it and if
it does I need to change that to an _. Can anyone help?

--
nicole0904
------------------------------------------------------------------------
nicole0904's Profile: http://www.excelforum.com/member.php...o&userid=31774
View this thread: http://www.excelforum.com/showthread...hreadid=514969


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default Changing characters in a cell

Use the SUBSTITUTE( ) function, such as:

=SUBSTITUTE(A1," ","_")

if your data is in A1.

Hope this helps.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Changing characters in a cell

Highlight the cell(s) then do Edit Replace ReplaceWhat: ALT32 Replace
with: _ ReplaceAll

Note, when typing the 32 while holding down the ALT key, use the 3 and 2
keys on the KEYPAD, not those on the Keyboard....

Vaya con Dios,
Chuck, CABGx3



"nicole0904" wrote:


I want to check a cell to see if the text contains a space in it and if
it does I need to change that to an _. Can anyone help?


--
nicole0904
------------------------------------------------------------------------
nicole0904's Profile: http://www.excelforum.com/member.php...o&userid=31774
View this thread: http://www.excelforum.com/showthread...hreadid=514969


  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Changing characters in a cell

Why not just hit the spacebar in the What box?

CLR wrote:

Highlight the cell(s) then do Edit Replace ReplaceWhat: ALT32 Replace
with: _ ReplaceAll

Note, when typing the 32 while holding down the ALT key, use the 3 and 2
keys on the KEYPAD, not those on the Keyboard....

Vaya con Dios,
Chuck, CABGx3

"nicole0904" wrote:


I want to check a cell to see if the text contains a space in it and if
it does I need to change that to an _. Can anyone help?


--
nicole0904
------------------------------------------------------------------------
nicole0904's Profile: http://www.excelforum.com/member.php...o&userid=31774
View this thread: http://www.excelforum.com/showthread...hreadid=514969



--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Changing characters in a cell

="Because"&CHAR(32)&"my"&CHAR(32)&"spacebar"&CHAR( 32)&"is"&CHAR(32)&"broken?€¦€¦.<g"


Vaya con Dios,
Chuck, CABGx3



"Dave Peterson" wrote:

Why not just hit the spacebar in the What box?

CLR wrote:

Highlight the cell(s) then do Edit Replace ReplaceWhat: ALT32 Replace
with: _ ReplaceAll

Note, when typing the 32 while holding down the ALT key, use the 3 and 2
keys on the KEYPAD, not those on the Keyboard....

Vaya con Dios,
Chuck, CABGx3

"nicole0904" wrote:


I want to check a cell to see if the text contains a space in it and if
it does I need to change that to an _. Can anyone help?


--
nicole0904
------------------------------------------------------------------------
nicole0904's Profile: http://www.excelforum.com/member.php...o&userid=31774
View this thread: http://www.excelforum.com/showthread...hreadid=514969



--

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
Automatically Changing Cell Reference's when Pasting in Excel No I'm Spartacus Excel Discussion (Misc queries) 0 February 13th 06 01:01 PM
Changing cell colour depending on another cells value... Web master Excel Discussion (Misc queries) 3 January 10th 06 12:30 PM
Problem with formulas changing cell reference janicesweet Excel Discussion (Misc queries) 1 August 2nd 05 06:23 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Repeat characters to cell width David Excel Worksheet Functions 2 May 10th 05 01:23 PM


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

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

About Us

"It's about Microsoft Excel"