Data Import & Export

How to Remove Duplicate Names and Keep the Most Recent Date in Excel

Huma Ashraf ChHuma Ashraf Ch Nov 3, 2026 871 views

Question details

The user wants to eliminate duplicate names in a dataset but ensure the retained record is the one with the latest date.

How to Remove Duplicate Names and Keep the Most Recent Date in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Cleaning up a dataset containing multiple entries for the same person or item over different dates.
Observed behavior
Duplicate names are removed, leaving only one unique name per row associated with its most recent chronological date.
Before you start

Before proceeding, ensure your date column is formatted properly as Date values in Excel rather than plain text, which is necessary to guarantee accurate chronological sorting.

Solution 1Recommended

Sort by Date and Use the Remove Duplicates Tool

Sort your data chronologically first, then use Excel's built-in feature to remove older duplicates.

Excel's Remove Duplicates feature works by scanning from top to bottom. It always keeps the first occurrence it finds and deletes subsequent duplicate rows. By sorting your dates from newest to oldest first, you guarantee the most recent date is at the top and will be retained.

1
Select your entire dataset

Highlight all the columns in your data range, including the header row containing names and dates.

2
Sort dates from newest to oldest

Navigate to the Data tab on the ribbon and click Sort. Choose to sort by your Date column, sort on Cell Values, and set the order to Newest to Oldest. Click OK.

3
Open the Remove Duplicates tool

With the data still highlighted, go back to the Data tab and click the 'Remove Duplicates' button located in the Data Tools group.

4
Configure duplicate criteria

In the dialog box that appears, uncheck the Date column and make sure only the Name column (or your identifier column) is checked. Click OK to execute.

Sort by Date and Use the Remove Duplicates Tool
Verification: Excel will display a prompt confirming how many duplicate values were found and removed, leaving you with unique names paired with their latest dates.
Manage Data Easily with WPS Spreadsheet

Remove Duplicates and Organize Data in WPS Office

WPS Spreadsheet provides intuitive data tools highly comparable to Excel, allowing you to easily sort records by date and remove duplicate entries with just a few clicks.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your dataset containing the duplicate names and dates.
  2. 2. Sort by Date: Highlight your data, click the Data tab, select Sort, and order your date column from Newest to Oldest.
  3. 3. Remove Duplicates: Under the Data tab, click Remove Duplicates. Check only the Name column in the dialog box and click OK.
Seamlessly open, edit, and save Microsoft Excel (.xlsx, .xls) files with 100% format compatibility.Easily clean your datasets by sorting dates and removing duplicates in seconds using built-in Data tools.Enjoy a lightweight, fast, and fully-featured spreadsheet application with a familiar user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why did Excel keep the oldest date instead of the newest?

Excel's Remove Duplicates tool retains the first matching record it scans from top to bottom. If your data was not sorted beforehand, or was sorted from oldest to newest, it will encounter and keep the older date first. Always sort from newest to oldest before removing duplicates.

Can I remove duplicates based on multiple columns?

Yes. In the Remove Duplicates dialog box, you can check multiple columns. Excel will only delete a row if the values in all selected columns exactly match an earlier row in the dataset.

Does the Remove Duplicates feature permanently delete my data?

Yes, it permanently deletes the duplicate rows from your active worksheet. It is highly recommended to save a copy of your workbook or duplicate the worksheet before performing data deletion actions.