Howdy All,
I need help.....
I have a worksheet that contains, on average between 3000 to 4000 records which I run every month. The worksheet contain record of files submission by customers. The problem is that I have customer submitting the same file multiple times in the same day. Each time a customer submit, the system creates a submission_ID.
Column A ---> Contains Customer ID
Colomn C ---> Contains Submit Date
Column E ---> File ID
I'd like to have a script or macro to check for each record - if same Customer ID AND Same submit Date, then look in Column E for the highest ID number (the latest file submitted) and retain that record. Then Delete all records that belong to the same Customer ID which submit on the same date.
Example:
Customer ID | Submit Date | File ID
Q1 | 1/23/08 | 12056 (Delete this record)
Q1 | 1/23/08 | 12268 (Delete this record)
Q1 | 1/23/08 | 13023 (Keep this record - same customer/date, latest File)
Q1 | 1/26/08 | 15756 (Keep this record - different date)
EH | 1/26/08 | 15766 (Keep this record - different Customer ID)
MY | 1/27/08 | 16745 (Delete this record)
MY | 1/27/08 | 16875 (Keep this record - same customer/date, latest File)
Thank you very much for the help....
Much Appreciated.
CD
Bookmarks