Remove duplicate reords from multiple work sheets

ken1o

New Member
Joined
Jun 26, 2015
Messages
1
I have over 1000 thousand records in a work sheet and 2000 records in another sheet on the same workbook. I want to compare both sheets and remove duplicate records from one of them. The records contain text. Is there a function/macro that can be used for that?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Ken,

Not so much a function, but a process.

1) Sort each set of records
2) Give the shorter (fewer) records a named range (nr_short) - be sure the values that match the longer list are in the first column.
3) In an empty column next to matching values in the longer list (assumes equation here is in A1, and matching values are in B1)
A1 = VLOOKUP(B1,nr_short,FALSE)
4) Copy the equation down.
5) Those with matching values will show the value. Those that don't match will show an error

You might want the TRIM() function to remove leading and trailing spaces.
Use Auto Filter to ignore the error rows
Delete the remaining rows
Remove the filter.

Tubal
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,953
Members
448,535
Latest member
alrossman

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