I have some data in sheet 1 columns A to L
I will like to remove duplicate IDs in column F where there's no data in column L or if data exists in all duplicates, leave any 1.
I would like to return the data to sheet 2
example:
A B C D E ColumnF G H I J K ColumnL
1 00:20:21
1 00:20:21
2
2
2 00:00:20
Should return
1 00:20:21
2 00:00:20
Here, my approach for your problem:
Does it have to be VBA? I would do it this way:
Sort your data by columns F an L. In cell M2 enter the following formula:
Then either filter you data where column M equals 'X' or sort by column M, you will then have the non-duplicates which you can copy and paste to your new location.