Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

Search and Replace Entire Cell Content

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JerryG - 29 May 2008 06:20 GMT
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
Signature

JerryG

DILipandey - 29 May 2008 08:13 GMT
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
Signature

Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)
dilipandey@yahoo.com
dilipandey@gmail.com
New Delhi, India

> 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
David Biddulph - 29 May 2008 08:22 GMT
=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

>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
Stefi - 29 May 2008 08:34 GMT
Enter this formula in an empty helper column
=IF(ISERROR(FIND("texttosearchfor",A2)),A2,"givenstring")
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
Rick Rothstein (MVP - VB) - 29 May 2008 09:37 GMT
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

>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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.