The short answer to how do you remove duplicates in excel is to select your full data range, open the Data tab, choose Remove Duplicates, and select the columns Excel should compare. Excel removes repeated rows according to those columns and keeps the first matching occurrence. Make a copy first: the right settings depend on whether a duplicate means a repeated email address, an entire repeated row, or something else.
Start with a copy and a definition
Save a separate copy of the workbook, or duplicate the worksheet before you change anything. Remove Duplicates changes the selected data; a backup gives you a way back if you save, close, or discover a mistake later. Undo may be available immediately afterward, but it is not a substitute for a copy.
Next, decide what makes two records the same. In a customer list, an email address might identify a duplicate contact. In an order list, the same email can appear on several legitimate orders, so an order ID may be the better comparison. If you need to remove only rows that match in every field, select every relevant column in the dialog.
This choice determines which information disappears. Suppose two rows have the same email but different phone numbers. Comparing only the email treats them as duplicates, and Excel keeps the first row it encounters. It does not merge the phone numbers or decide which one is more accurate.
Before selecting anything, check that your data has a header row and no completely blank rows or columns splitting the range. If other columns belong to each record, include them in your selection even when you do not plan to compare them. That way, Excel can remove whole records rather than leaving related values out of alignment.

How do you remove duplicates in excel step by step?
- Click anywhere inside the dataset, or select the entire range you want to clean, including its headers and all related columns.
- On the Data tab, select Remove Duplicates. If Excel asks whether to expand the selection, choose to include the related columns so the records stay together.
- In the dialog box, confirm whether your data has headers. Check the columns that define a duplicate and clear the others. Selecting a column here tells Excel to use it for comparison; the other selected columns still belong to the rows being removed.
- Select OK. Excel reports how many duplicate values it removed and how many unique values remain. Check the resulting rows against your backup before sharing the file.
For example, if the range contains Name, Email, and Last Contacted, select all three columns in the sheet but check only Email in the dialog to keep one row per matching email. If you check Email and Last Contacted, Excel removes a row only when both selected values match another row.
The distinction between selecting the range and checking comparison columns is easy to miss. It is also the difference between cleaning a table and potentially scrambling a customer list.
Choose which record survives
Remove Duplicates keeps the first occurrence in the selected range, so sort before removing duplicates when one version is more useful than another. For example, to keep the most recently updated record for each customer ID, sort the entire dataset by its update-date column from newest to oldest, then remove duplicates using Customer ID as the comparison column.
Include all related columns in the sort. If Excel asks whether to expand the selection, include the full dataset. Sorting just the date column independently can put dates beside the wrong customers.
This method assumes the update dates are reliable and that the newest row contains everything you need. If an older row has a missing account number or a useful note, removing it will discard that information. Review and combine important fields first; Excel will not consolidate them automatically.

Preview duplicates before deleting them
If you want a visual check, select the column you want to inspect, then choose Home, Conditional Formatting, Highlight Cells Rules, and Duplicate Values. Pick a formatting style and confirm. Excel highlights matching values without deleting rows, making this a good first pass for a list of email addresses or IDs.
Highlighting one column does not prove the full rows are identical. Two highlighted email addresses could belong to different orders, and blank cells may need attention too. Filter or inspect the highlighted entries in context before deciding what to remove.
For a separate list of distinct values, the UNIQUE function is another option in Excel versions that support it. If email addresses are in B2 through B100, enter =UNIQUE(B2:B100) in a clear area of the sheet. The results spill into the cells below, so leave enough empty space. This creates a distinct list; it does not delete or consolidate the original records.
Check the result and handle near matches
Excel's duplicate tools look for matching values, not necessarily the same real-world person or company. Extra spaces, spelling differences, and inconsistent formats can leave apparent duplicates behind. For example, an address with a trailing space may need cleanup before it matches the version without one.
Keep original values while you investigate. A helper column using =TRIM(B2) can remove leading and trailing ordinary spaces and reduce repeated spaces between words. Fill it down, then compare the cleaned values. TRIM does not fix every kind of whitespace, spelling error, or formatting difference, so inspect suspicious cases rather than assuming the formula caught them all.
Finally, compare the remaining record count with the original and spot-check the records that mattered most: recent updates, high-value accounts, or rows with important notes. A count that looks plausible is not proof that the right rows survived. Open the backup alongside the cleaned sheet and trace a few duplicate groups from beginning to end.
You can use an AI assistant to suggest a formula or explain a confusing dialog, but avoid uploading sensitive customer data unless your organization permits it. Describe the column names with fictional examples instead, and check any suggested formula in a copy. Don’t guess whether it works. Run the result.
No letters yet — be the first to write.