chadski778
Active Member
- Joined
- Mar 14, 2010
- Messages
- 297
I have a spreadsheet that I need cleaning up. I would like a macro that deletes rows when there are duplicate values in colums D and F but keeps the row with the most recent date which is in column K. For rows were D and F are the same the date value in column K will always be unique
See example
Thanks
See example
Excel Workbook | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
2 | |||||||||
3 | FROM | ||||||||
4 | col D | col F | col K | ||||||
5 | B10134 | 234 | 01/09/2011 | Same in D and F but not K - duplicates | |||||
6 | B10134 | 234 | 14/06/2011 | ||||||
7 | B101347 | 234 | 13/04/2011 | ||||||
8 | B110 | 333 | 01/06/2011 | ||||||
9 | B110 | 333 | 01/07/2011 | ||||||
10 | B110 | 333 | 01/09/2011 | Same in D and F but not K - triplicates | |||||
11 | B1001 | 110 | 03/06/2011 | ||||||
12 | |||||||||
13 | TO | ||||||||
14 | col D | col F | col K | ||||||
15 | B10134 | 234 | 01/09/2011 | ||||||
16 | B101347 | 234 | 13/04/2011 | ||||||
17 | B110 | 333 | 01/09/2011 | ||||||
18 | B1001 | 110 | 03/06/2011 | ||||||
19 | |||||||||
Sheet1 |
Thanks