Excel 2010 - Remove Duplicate Rows - Conditional

I am trying to remove duplicate rows from a spreadsheet. The duplicate values are contained in Column A. When I remove the duplicates, I want to remove the older ones and keep the newest (column B contains the date). I can sort this and highlight duplicate rows and then manually delete the older ones but I'd rather do this with a formula of some kind. Is there a relatively easy way to accomplish this? See Sample Spreadsheet and Resulting Spreadheet below for example.

Sample Spreadsheet

--A--    ------B------
1234   10/22/2013
1234   09/24/2013
1234   06/21/2013
2876   09/22/2013
3456   01/02/2012
3456   03/05/3013

Resulting Spreadsheet After Removing Duplicates

--A--    ------B------
1234   10/22/2013
2876   09/22/2013
3456   03/05/3013
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

byundtMechanical EngineerCommented:
Assuming that your data started in cell A1, I put the following formula in an empty column row 1:
=IF(COUNTIFS(A:A,A1,B:B,">" & B1),"Delete",IF(COUNTIFS(A$1:A1,A1,B$1:B1,B1)>1,"Delete",""))

The above formula will return an empty string (looks like a blank) for rows to be kept, and "Delete" for rows to be deleted. Sort your data by that column, then delete the desired rows.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cbridgmanAuthor Commented:
Worked like a charm. Thanks for the help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.