Mass Find / Replace with Formula - Possible?

Southerncentralrain

Board Regular
Joined
Jul 6, 2008
Messages
115
Hi all. I have a list of about 100 rows that have the old term in column A and the new term that I would like it replaced with in column B. I have another column with about 3,000 cells that I would like to replace all of the old words in column A with the new words in column B.

Is this possible with doing the find/replace tool manually 100 times? Any help would be greatly appreciated.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
The words that are being replaced are not the only words in the cell so I don't know how to use vlookup for a partial replacement.

Here is an example:

Old Word= Hendrix Clay
New Word = 45446-04

Original Phrase = ST-NW-18-D-Hendrix Clay
Corrected Phrase = ST-NW-18-D-45446-04

Does that make sense?
 
Upvote 0
Yep, thats significantly different.

I think that a coded solution would be required. If you are ok with that.
 
Upvote 0
Something along the lines of

Dim c1 As Range, rng1
Dim c2 As Range, rng2
Dim chk_val As String
Dim chk_val2 As String
Set rng1 = Range("a1:a13")
Set rng2 = Range("h1:h52")
For Each c1 In rng1
chk_val = c1.Value
chk_val2 = c1.Offset(0, 1).Value

For Each c2 In rng2
If InStr(c2, chk_val) Then
c2.Value = Replace(c2, chk_val, chk_val2)
End If
Next c2
Next c1
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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