I'm trying to create an excel macro that can delete duplicate rows and their original ones based on more than one column.
In the table below you will find the example data and the output for which I'm looking. I need to delete all duplicate rows but only look at some columns like in the example the first 3 headers.
Input table
Output table after executing the macro
In the table below you will find the example data and the output for which I'm looking. I need to delete all duplicate rows but only look at some columns like in the example the first 3 headers.
Input table
header1 | header2 | header3 | header4 |
---|---|---|---|
Test | 50 | 20 | 1 |
Test | 50 | 20 | 2 |
Test | 30 | 20 | 3 |
1 | 10 | 20 | 4 |
2 | 20 | 30 | 5 |
Test23 | 5 | 5 | 6 |
Test23 | 5 | 5 | 7 |
Output table after executing the macro
header1 | header2 | header3 | header4 |
---|---|---|---|
Test | 30 | 20 | 3 |
1 | 10 | 20 | 4 |
2 | 20 | 30 | 5 |