Search/Replace terms from a Table

joand

Active Member
Joined
Sep 18, 2003
Messages
267
In Sheet 2, I have a table (2 columns: A and B). In column A, I have listed the search items; in column B, I have listed the replace items.

I want to search all the items in Sheet 1 (say Column B) that corresponds to the column A values in Sheet2, and if it is found, replace them with the terms in column B.

To illustrate, in Sheet Column A, I have the terms delta, beta and alpha. I want to search these terms in Sheet1 Column B and if it is a hit, replace those terms in Sheet2 Column B, notably, ~d for Delta, ~b for Beta and ~a for Alpha. So the result would be,

Original: (Sheet1) Column B
The river flowed from its source to the delta where it entered the sea.

Modified: (Sheet1) Column B
The river flowed from its source to the ~d where it entered the sea.

Anyone got ideas?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,587
Messages
6,179,741
Members
452,940
Latest member
rootytrip

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