Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mgm mgm is offline
external usenet poster
 
Posts: 1
Default trying to replace 2 spaces with 1

Is there a way to search and replace within a column where there are 2
spaces present? When I search for " " (no quotes) it says cannot be found.

Thanks!
mgm


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default trying to replace 2 spaces with 1

It works ok for me.

A1 = try<space<spacethis
A2 = lets try this
A3 = try it

Select A1:A3
Goto EditReplace
Find what: hit the space bar twice
Replace with: hit the space bar once
Replace all

Results:

A1 = try this
A2 = lets try this
A3 = try it

Biff

"mgm" wrote in message
...
Is there a way to search and replace within a column where there are 2
spaces present? When I search for " " (no quotes) it says cannot be
found.

Thanks!
mgm



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default trying to replace 2 spaces with 1

Maybe someone else can respond with the technical explanation ("ansi
characters . . .") of why this works, but here's my approach:

- In some unused cell, type two spaces
- Highlight what you just typed and press Ctrl-C to copy
- Open the Replace function and paste (Ctrl-V) into the "Find What" field
- Paste again into the "Replace With" field, then hit backspace to eliminate
one of the two spaces.

If you want to limit your Replace to just one column, highlight that column
before invoking the Replace function.

HTH

"mgm" wrote:

Is there a way to search and replace within a column where there are 2
spaces present? When I search for " " (no quotes) it says cannot be found.

Thanks!
mgm



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default trying to replace 2 spaces with 1

You may have Non-Breaking Spaces in the cell. You can check with the Code() function
Look here for code to remove them:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"mgm" wrote in message ...
| Is there a way to search and replace within a column where there are 2
| spaces present? When I search for " " (no quotes) it says cannot be found.
|
| Thanks!
| mgm
|
|


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default trying to replace 2 spaces with 1

BTW, the TRIM() function reduces multiple spaces to single ones (and removes leading and trailing spaces)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Niek Otten" wrote in message ...
| You may have Non-Breaking Spaces in the cell. You can check with the Code() function
| Look here for code to remove them:
|
| http://www.mvps.org/dmcritchie/excel/join.htm#trimall
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
|
| "mgm" wrote in message ...
|| Is there a way to search and replace within a column where there are 2
|| spaces present? When I search for " " (no quotes) it says cannot be found.
||
|| Thanks!
|| mgm
||
||
|
|




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 301
Default trying to replace 2 spaces with 1

Another thing to look for -- make sure you don't have the checkbox "Match
Entire Cell Contents" selected! It could have been selected from a previous
Find/Replace.
Bob Umlas
Excel MVP

"mgm" wrote in message
...
Is there a way to search and replace within a column where there are 2
spaces present? When I search for " " (no quotes) it says cannot be
found.

Thanks!
mgm



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
FIND TAB, Replace with Spaces (3) or ... BEEJAY Excel Discussion (Misc queries) 2 February 28th 07 06:23 PM
Replace double spaces with Hard return Ket Excel Worksheet Functions 3 June 27th 06 03:10 PM
Excel: replace all 2 spaces to FF/LR in column of text Bill Craig Excel Discussion (Misc queries) 4 June 7th 06 05:40 PM
How can I replace spaces in text cells (excel) with underscores? JB2006 New Users to Excel 2 April 20th 06 06:05 PM
How can I replace zeros with blank spaces during calculations plea Ted Excel Worksheet Functions 9 January 3rd 06 03:02 AM


All times are GMT +1. The time now is 10:06 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"