How to delete duplicate records dependent on a set of variables

DoctorAwesome

New Member
Joined
Oct 17, 2013
Messages
2
Greetings. First time poster, rookie VBA programmer and long time Excel user.

I am trying to write a rather long and sophisticated macro to automate my day-to-day work.

I work with relatively large datasets that are always in the same layout. The inclusion of duplicate data in one column is the final problem to which the solution eludes me. Basically I need a block of code that will find any duplicate entries in one column, then check to see if the rest of the row contains the same data (except in one column), if any differences occur then it will delete both rows, if all data matches (except for cell L) then it will delete the row that has the higher value in cell L, and finally if both records are totally identical then it deletes just one of the 2 records.

Sorry for the rather confused articulation of this post.

Thanks for reading and even bigger thanks for any help.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,221,553
Messages
6,160,467
Members
451,649
Latest member
fahad_ibnfurjan

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