The remove duplicates in excel shortcut is Alt, A, M, pressed one after another. Click inside your data, press the sequence, choose which columns must match, and press Enter. Excel deletes the repeated rows and tells you how many were removed.
Because the rows are deleted, not hidden, it is wise to highlight duplicates first or work on a copy. Both methods are shown below, along with the UNIQUE formula for a list that updates itself.
Quick facts
Remove Duplicates box
Alt, then A, then MHighlight duplicates
Alt, then H, then L, then H, then DConfirm
EnterUndo
Ctrl + ZFormula option
=UNIQUE(A2:A500)Select data first
Ctrl + A
Remove duplicates in Excel shortcut steps
- Click any cell in your data. Make sure it has a heading row.
- Press Alt, then A, then M. The Remove Duplicates box opens.
- Tick My data has headers if it is not already ticked.
- Untick the columns that should not count. For example, to find repeated customers, keep only the Phone column ticked.
- Press Enter. Excel reports how many duplicates were removed and how many unique values remain.
If the result is not what you expected, press Ctrl + Z straight away.
Highlight duplicates before removing
Select the column, then press Alt, H, L, H, D to open Duplicate Values under conditional formatting. Press Enter, and every repeated value is coloured. Look through them before deleting; sometimes two people really do share a name. Filter by colour with Ctrl + Shift + L to see only the coloured rows.
Which columns to tick
| Goal | Tick |
|---|---|
| Remove exact repeat rows | All columns |
| One row per customer phone number | Phone only |
| One row per invoice number | Invoice No only |
| One row per name and city | Name and City |
When only some columns are ticked, Excel keeps the first row it finds for each value and deletes the later ones, even if their other columns differ. Sort the data first so the row you want to keep comes first.
UNIQUE formula: a list without deleting anything
In newer Excel versions, =UNIQUE(A2:A500) in an empty cell returns the list without repeats and updates when the source changes. The original data stays untouched. Wrap it in SORT for an alphabetical list: =SORT(UNIQUE(A2:A500)). Older versions do not have UNIQUE; use the Remove Duplicates box on a copy instead. A pivot table is another way to see each value once with a count beside it.
When duplicates are not removed
| Problem | Fix |
|---|---|
| Duplicates remain | Extra spaces or different case; clean with TRIM first |
| Too many rows removed | Too few columns were ticked; undo and tick more |
| Alt, A, M does nothing | Click inside the data first, and press keys one at a time |
| Button greyed out | Sheet is protected or the data is in an outline |
Frequently asked questions
What is the shortcut to remove duplicates in Excel?
How do I highlight duplicates without deleting?
Can I undo remove duplicates?
Yes, with Ctrl + Z straight away.
Which row does Excel keep?
The first one it finds for each value.
Why are some duplicates not removed?
They differ by spaces or case. Clean them with TRIM first.
Is there a formula to remove duplicates?
Yes, UNIQUE in newer Excel versions.