Select your data and go to Data › Remove Duplicates (or use the UNIQUE function in Microsoft 365).

You have a column of customer names, product codes or email addresses and you need a clean list without repeats — for a mail merge, a drop-down list or a quick count of how many different items there are.
Step by step
- Select the range that contains your values, including the header row if there is one.
- On the Data tab, click Remove Duplicates.
- In the dialog, tick My data has headers if your first row is a header, and make sure the right column is ticked.
- Click OK. Excel tells you how many duplicates were removed and how many unique values remain.
- If you want to keep the original data, copy it to another sheet first and run Remove Duplicates on the copy.
On a Mac: On a Mac, the command is under Data › Remove Duplicates as well; the dialog looks the same.
Before and after
| A | B | C | |
|---|---|---|---|
| 1 | Name | ||
| 2 | Ana | ||
| 3 | Ben | ||
| 4 | Ana | ||
| 5 | Cara | ||
| 6 | Ben | ||
| 7 | Dan |
| A | B | C | |
|---|---|---|---|
| 1 | Name | ||
| 2 | Ana | ||
| 3 | Ben | ||
| 4 | Cara | ||
| 5 | Dan |
With a formula instead
| Formula | Use it when |
|---|---|
=UNIQUE(A2:A7) | You have Microsoft 365 and want a dynamic list that updates automatically when the source changes. |
Practise it
Free exercises with instant feedback. No sign-up needed.
Common mistakes
- Running Remove Duplicates on the original data and losing rows you wanted to keep. Work on a copy of the data, or use =UNIQUE in a new column so the source stays intact.
- Forgetting to tick 'My data has headers', so the header row is treated as a value and may be removed. Always tick the header box when your first row contains column names.
- Selecting only part of the table, so duplicates across the full row are not detected correctly. Select the whole table (all columns) before clicking Remove Duplicates.
Questions people also ask
How do I count unique values?
Use =COUNTA(UNIQUE(A2:A100)) in Microsoft 365, or =SUMPRODUCT(1/COUNTIF(A2:A100,A2:A100)) in older versions.
Does Remove Duplicates ignore case?
Yes, it treats 'Ana' and 'ana' as the same value.
Can I get a unique list without deleting anything?
Yes, use the UNIQUE function in a blank cell, for example =UNIQUE(A2:A100).
Functions used
Steps written for Excel for Microsoft 365 on Windows. All how-to guides