Find & Replace cells containing specific value with another value

tdavies93

New Member
Joined
Apr 13, 2017
Messages
4
Hi all,

I'm looking to execute a find & replace on a dataset whereby anything containing the value 'xxx' is replaced with the value 'xxx'. For example, in a set of:
yyyxxxyyy
hhhxxxhhh
xxxhhhhhh
wwwaaaxxx
xhhaxxghh

After the find & replace, I would like the cells to read:
xxx
xxx
xxx
xxx
xhhaxxghh

Is there a way of doing this? As far as I can tell, the Find & Replace feature does not allow this and does not delete characters when a cell string contains a certain value.

Thank you for any help
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the forum!

What's the underlying logic for the expected outcome that is last on the list? Why is it different to the others?
 
Upvote 0
Hi Thanks for responding!

The logic is that because the bottom outcome does not contain the consecutive string of 'xxx' as it does in the other cells. So if this were lists of websites, as it is in my dataset, I want to consolidate every web address containing the word 'google' to substitute for the word google.

Hope this helps! Thanks again for getting back to me
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top