Delete duplicate ID if name does not match

aayaanmayank

Board Regular
Joined
Jul 20, 2018
Messages
157
Hi Can someone please help on this. I have two data set in sheet1 & sheet2. from sheet2 it should pick the ID and matches in sheet1. i have to check if first name of company match with remaining ID name if any of the ID does not have same name then delete All the row for that ID from sheet2. hope it make sense.

sheet1
IDName
787a00390AYECGAYTY UMDERYRGTERA YYC
787a00390AYECGAYTY UMDERYRGTERA, YYC
72a070872AVGAYY AERVGCEA GMC
72a070872AVGAYY AERVGCEA GMC
72a25a783OERGUAOM
72a25a783OERGUAOM #8390-GMDUATRGAY HUB
72a25a783OERGUAOM-BROKEM ARROY #8895
72a25a783OERGUAOM EMTERYRGAEA
72a25a783OERGUAOM EMTERYRGAEA GMC
72a25a783OERGUAOM EMTERYRGAEA GMC
72a25a783OerguAoM EMterYrGAeA GMc.
72a25a783OERGUAOM EMTERYRGAEA, GMC.
72a25a783YOYAEYEY GMDUATRGAY GRY
72a25a783YOYAEYEY GMDUATRGAY GROUY
72a02832aAOUTHERM YOYER COMYAMY
72a02832aAoutherM YoYer ComYaMy
720772893ARGZOMA AMERGCAM YATER
720772893GYYGMOGA AMERGCAM YATER
720772893GOYA AMERGCAM YATER CO
720772893MEY JERAEY AMERGCAM YATER
720772893MEY JERAEY AMERGCAM YATER
720772893TEMMEAAEE AMERGCAM YATER
720772893TEMMEAAEE AMERGCAM YATER
720772893YEAT VGRGGMGA AMERGCAM YATER
720772893YEAT VGRGGMGA AM YATER CO



<colgroup><col><col></colgroup><tbody>
</tbody>
sheet2
IDName
787a00390AYECGAYTY UMDERYRGTERA YYC
787a00390AYECGAYTY UMDERYRGTERA, YYC
72a070872AVGAYY AERVGCEA GMC
72a070872AVGAYY AERVGCEA GMC
72a25a783OERGUAOM EMTERYRGAEA GMC
72a25a783OERGUAOM EMTERYRGAEA GMC
72a02832aAOUTHERM YOYER COMYAMY
72a02832aAoutherM YoYer ComYaMy
720772893TEMMEAAEE AMERGCAM YATER
720772893TEMMEAAEE AMERGCAM YATER

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,684
Messages
6,126,199
Members
449,298
Latest member
Jest

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