Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Search and Replace Entire Cell Content

I want to search for text within a cell, and if that text is found anywhere
within that cell, replace the entire cell with a given text string
--
JerryG
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Search and Replace Entire Cell Content

Hi Jerry,
You can use SUBSTITUTE or REPLACE function.
for Example: if you want to search and replace 1 in the following value
entered in cell A1:-
abc1defghij1klmno1pqrstuvw1xyz
Use formulae =SUBSTITUTE(A1,"1","")
Please let me know if this helps. Thanks
--
Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)


New Delhi, India


"JerryG" wrote:

I want to search for text within a cell, and if that text is found anywhere
within that cell, replace the entire cell with a given text string
--
JerryG

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Search and Replace Entire Cell Content

=IF(ISNUMBER(FIND("old text",A2)),"new text",A2) if you want the search to
be case sensitive,
=IF(ISNUMBER(SEARCH("old text",A2)),"new text",A2) if you don't.
--
David Biddulph

"JerryG" wrote in message
...
I want to search for text within a cell, and if that text is found anywhere
within that cell, replace the entire cell with a given text string
--
JerryG



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Search and Replace Entire Cell Content

Enter this formula in an empty helper column
=IF(ISERROR(FIND("texttosearchfor",A2)),A2,"givens tring")
and fill it down as necessary. You can Copy-PasteSpecial/Value the result
back to the original cells.

Regards,
Stefi


€˛JerryG€¯ ezt Ć*rta:

I want to search for text within a cell, and if that text is found anywhere
within that cell, replace the entire cell with a given text string
--
JerryG

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Search and Replace Entire Cell Content

I'm guessing you want to do that to the cell's content itself. Try this.
Select all the cells you want to do this to and then click Edit/Replace in
Excel's menu bar. Assuming for this example that the text you want to find
is "find me" (without the quote marks). Put this in the "Find what" field...

*find me*

then put the replacement text in the "Replace with" field. The key to
replacing the entire contents using Replace is the asterisks on both sides
of the text you are search for.

Rick


"JerryG" wrote in message
...
I want to search for text within a cell, and if that text is found anywhere
within that cell, replace the entire cell with a given text string
--
JerryG




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
replace the content of cell Wu Excel Discussion (Misc queries) 3 December 11th 07 12:13 PM
Replace all empty or " by the content of the cell above it hccatmo Excel Worksheet Functions 3 November 9th 06 08:52 PM
replace one tag in content of one cell and format not changed replace one tag in content of one cell a Excel Discussion (Misc queries) 1 January 9th 06 03:36 PM
Hide/Delete entire rows based in the content of one cell Clueless Excel Discussion (Misc queries) 2 October 3rd 05 02:40 PM
How to search and copy cell content to another sheet? Roel Excel Worksheet Functions 1 March 7th 05 01:56 PM


All times are GMT +1. The time now is 12:39 AM.

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"