Find and replace with multiple values, finding duplicate values

Jonathan Jones

New Member
Joined
Jul 30, 2017
Messages
18
Hi,

I have two issues I need some help with. The first is: I have a list of old part numbers in column A and a list of new part numbers in column B. I would like to find and replace all instances of any of the old part numbers in column C with the relevant new part number.

Secondly, I have a list of part numbers in column A and in column B is a list of the components which are used to make up that part number. I would like to find instances where the component part number has been duplicated. Example below:

Column A Column B
TABLE TABLE-LEG1
TABLE TABLE-LEG1
TABLE TABLE-TOP1
TABLE2 TABLE-LEG1
TABLE2 TABLE-TOP2

It's the part numbers in column A which have a duplicated component which I am trying to find. I basically need a list of part numbers with duplicated components. So, if I ran the code on the above data, the result I would get is just "TABLE", as TABLE2 has no duplicated components. Clear as mud?

Any help would be very gratefully received.

J
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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