Macro to Remove Duplicate Entries From a List

Michael151

Board Regular
Joined
Sep 20, 2010
Messages
247
Hello all,

I have two columns - "Title" and "Notes" (identified in row 1 header).

If these columns contain multiple rows that are an identical match, then keep only 1 row (basically eliminate duplicates). For example:

Before:

Title Notes
Title1 Notes1
Title2 Notes2
Title2 Notes2
Title3 Notes3
Title4 Notes4
Title4 Notes4
Title4 Notes4

After:

Title Notes
Title1 Notes1
Title2 Notes2
Title3 Notes3
Title4 Notes4

Notice that the duplicates for Title2 and Title4 were removed since there were multiple matching rows - only one instance is kept.

Help is appreciated - thank you!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
also, obviously if there are no duplicates, then do nothing.

If there are no entries at all (nothing in Title or Notes columns), then do nothing.
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,700
Members
452,938
Latest member
babeneker

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