In Excel: copy the data first, select the whole table, then Data ▸ Remove Duplicates. Confirm the header setting and tick the columns that define a duplicate. Excel keeps the first matching record; UNIQUE returns a separate list of distinct rows or values.
On this page8
Make a copy, then select all columns of the records, including headers.
On the Data tab, click Remove Duplicates.
Confirm My data has headers and tick only the columns that define the comparison key.
Confirm, check the removed count, and verify which complete records remain before saving.
For a separate list on Microsoft 365 or Excel 2021/2024, use UNIQUE in an empty area and choose the input columns for the intended output.
Check the duplicate key before deleting rows
Paste this sample into A1 on a spare sheet. Select the whole A1:B5 range, mark the header row, then compare the two column selections on separate copies.
A1| Amount | |
|---|---|
| ada@example.com | 10 |
| ben@example.com | 20 |
| ada@example.com | 30 |
| ben@example.com | 20 |
If columns are cut off, scroll the table sideways.
| Amount | |
|---|---|
| ada@example.com | 10 |
| ben@example.com | 20 |
If columns are cut off, scroll the table sideways.
| Amount | |
|---|---|
| ada@example.com | 10 |
| ben@example.com | 20 |
| ada@example.com | 30 |
If columns are cut off, scroll the table sideways.
- Email alone removes Ada/30 as well as the repeated Ben/20. The first record for each selected key survives.
- Both columns remove only the identical Ben/20 record. Ada/10 and Ada/30 are different rows.
- =UNIQUE(A2:B5) in D2 returns 3 distinct whole rows; =UNIQUE(A2:A5) returns 2 email addresses without their amounts. These are different outputs.
- UNIQUE requires Microsoft 365, Excel 2021 or Excel 2024. Leave its spill area empty. Compare the remaining records with the original before saving.
Documentation reviewed .
Microsoft: Filter or remove duplicate valuesMicrosoft: UNIQUE
What this does
Remove Duplicates changes the selected data in place. Its checked columns form the comparison key: checking Email alone can delete a record with a different amount, while checking Email and Amount requires both to match. Keep the full record range selected so values stay together. UNIQUE over several columns compares entire rows; it does not select the first whole record for each email address. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. Treat “remove duplicates in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected duplicates shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a data step that keeps your analysis trustworthy into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
A1:B5 has headers Email and Amount, followed by ada@example.com/10, ben@example.com/20, ada@example.com/30 and ben@example.com/20. On a copy, select A1:B5 and confirm headers. Tick Email only: Ada/10 and Ben/20 remain, with 2 records removed. Restore a fresh copy and tick both columns: Ada/10, Ben/20 and Ada/30 remain, with only 1 removed. =UNIQUE(A2:B5) in D2 returns those 3 distinct rows on supported versions; =UNIQUE(A2:A5) returns only 2 email addresses. Duplicate rows quietly inflate counts, totals and mailing lists. Removing them — or surfacing them with UNIQUE and COUNTIF — is a basic data-hygiene step before any analysis you want to trust. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.
In Google Sheets
Function availability: UNIQUE: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. If you take one thing from this page on “remove duplicates in excel”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.
Common mistakes
- Selecting only one column, so Remove Duplicates shrinks that column out of step with its row.
- Forgetting it edits in place — make a copy first if you might need the duplicates back.
- Ticking every column when only one (like an ID) actually defines a duplicate.
- Treating
UNIQUEover the entire table as equivalent to removing duplicates by one selected key. - Overlooking stray spaces or different display formats; inspect the compared cells before changing the data.
Frequently asked questions
Remove Duplicates or UNIQUE?
Remove Duplicates changes the selected records and keeps the first match for the checked columns. UNIQUE returns a live separate array of distinct rows or values. UNIQUE(A2:B5) compares both columns, not just the email key.
How do I find duplicates without deleting them?
Use Conditional Formatting ▸ Highlight Cells ▸ Duplicate Values to colour them, or =COUNTIF(range, cell)>1 to flag them.
Why are visible duplicates not removed?
Check the selected comparison columns, stray spaces and cell display formats. A difference in another checked column is enough to keep the row. Inspect the key before cleaning or deleting records.
Other ways people ask this
People reach this page typing “remove duplicates in excel”, “how do i remove duplicates in excel”, “how to eliminate duplicates in excel” and “eliminate duplicates in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.
Why do people search for this in so many different ways?
Because the same task has many names. “remove duplicates in excel”, “how do i remove duplicates in excel”, “how to eliminate duplicates in excel” all point at the one operation explained on this page, which is why they all lead here.