I have a spreadsheet that contains duplicate references in Col H. I would like VBA code that will retain either the first or second duplicate, except where the reference begins with an Alpha Character.All references beginning with an Alpha character must be retained
In the example below all the references beginning with an Alpha for eg F14890 must be retained. One of the rows containing the duplicate references for eg 203432/1 must be deleted and the other one retained i.e one unique record must be retained
Your assistance in this regard will be most appreciated
In the example below all the references beginning with an Alpha for eg F14890 must be retained. One of the rows containing the duplicate references for eg 203432/1 must be deleted and the other one retained i.e one unique record must be retained
Your assistance in this regard will be most appreciated
Duplicate Records.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
26 | 10-03-2011 | INV | PARTSORDER | 30I00223 | -6,199.32 | 203434 | ||||
27 | 10-03-2011 | PMT | PARTSORDER | 453,208.67 | F14890 | |||||
28 | 10-03-2011 | PMT | PARTSORDER | 27,118.04 | F14890 | |||||
29 | 10-03-2011 | PMT | PARTSORDER | 27,118.04 | F14890 | |||||
30 | 10-03-2011 | INV | PARTSORDER | 30I00225 | -729.50 | 203432/1 | ||||
31 | 10-03-2011 | INV | PARTSORDER | 30I00222 | -1,286.83 | 203433/1 | ||||
32 | 10-12-2010 | JDR | PARTSORDER | 8424 | 8,513.92 | 8424 | ||||
33 | 10-12-2010 | JDR | PARTSORDER | 8424 | 8,513.92 | 8424 | ||||
34 | 11-02-2011 | INV | PARTSORDER | 30I00080 | -26,243.49 | 199979 | ||||
35 | 11-02-2011 | INV | PARTSORDER | 30I00080 | -26,243.49 | 199979 | ||||
36 | 11-02-2011 | INV | PARTSORDER | 30I00079 | -6,985.30 | 199980 | ||||
37 | 11-02-2011 | INV | PARTSORDER | 30I00079 | -6,985.30 | 199980 | ||||
38 | 11-02-2011 | INV | PARTSORDER | 30I00015 | -519.16 | 199981 | ||||
39 | 11-02-2011 | INV | PARTSORDER | 30I00015 | -519.16 | 199981 | ||||
Sheet1 |
Last edited: