Removing duplicate WOs in spreadsheet, ensuring that row with earliest date/time stamp is the row to be retained

I receive a master report on a daily basis that has a number of duplicate WOs. I would like to have a macro that would remove all the duplicate WOs in a selective manner, in that it always retains the WO with earliest date/time stamp in column G.

I have attached a sample report with the duplicate WOs highlighted in red in Column A, and have highlighted in yellow, in the first section of the report as an illustration, the unique WOs to be retained once the macro is run according to the criteria outlined above.

I hope I have provided enough information...

Who is Participating?
Ejgil HedegaardCommented:
Try attached workbook.
Press button to run.
AndreamaryAuthor Commented:
Works like a charm - thanks very much, Ejgil!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.