Solved: Delete Duplicate Rows based on multiple columns
I am working with Excel 2003, but need code that will also work with Excel 2000 run by other users.
I have a worksheet with columns A-P. I want to delete rows that have duplicate data in columns A, B, and C. It does not matter what data is in the other columns.
For example:
A, B, C, D
1, X, 52, purple
1, X, 52, yellow
1, X, 17, blue
2, X, 52, purple
2, X, 52, purple
2, X, 17, blue
2, Z, 52, red
Once I run the code, I want the following rows to remain:
A, B, C, D
1, X, 52, purple
1, X, 17, blue
2, X, 52, purple
2, X, 17, blue
2, Z, 52, red
Basically, I want to delete duplicate records based on multiple columns.
Thanks!
~Heather