How to Remove Duplicates in Excel Step by Step (With and Without Copilot)
How to remove duplicates in Excel step by step: highlight them first, copy your data, use Data > Remove Duplicates with the right columns checked, or let Copilot's @clean-data skill flag duplicate values for your review.
Remove duplicates safely in Excel by highlighting them first, copying your data, then using Data > Remove Duplicates — or letting Copilot flag them for your review.
Key points
- Highlight duplicates with conditional formatting first, so you can review them before anything is deleted.
- Remove Duplicates deletes permanently; the columns you check decide what counts as a duplicate.
- Copilot’s Clean Data button does not remove duplicates — the @clean-data skill flags duplicate values for you to review and select.
A repeated row looks harmless until a total or headcount quietly goes wrong. This guide follows our pillar on how to use Copilot Clean Data in Excel and covers both routes.
Highlight the duplicates first, before you delete anything
Colour shows you every repeat while your data stays completely untouched.
Start with review, not removal. Use conditional formatting to highlight duplicates and decide whether they should go:
- Select the cells you want to check for duplicates.
- Select Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.
- In the box next to values with, pick a format for the duplicates, then select OK.
Scan what lights up. Some repeats are obvious mistakes — the same sign-up pasted twice. Others need a second look. One limit matters: Microsoft notes Excel cannot highlight duplicates in a PivotTable’s Values area, so check the underlying list.

Copy your data somewhere safe before any removal
Remove Duplicates deletes permanently, so a backup copy is not optional.
Microsoft warns that Remove Duplicates permanently deletes duplicate data. Before deleting, move or copy the original data to another worksheet — its filtering guidance says the same for a range or table: copy it to another sheet or workbook first. Keep the original untouched, and compare afterwards if a number looks wrong.
Remove duplicates step by step with the built-in command
Three steps, one dialog, and a result message you should actually read.
With review done and a copy saved, removal is short:
- Select the range with the duplicates to remove.
- Select Data > Remove Duplicates, then under Columns, check or uncheck the columns to compare.
- Select OK.
Microsoft’s example shows why column choice matters: its January column holds prices to keep, so it unchecks January in the box. Read the result message carefully — Microsoft notes the duplicate and unique counts after removal might include empty cells and spaces, so spot-check what remains.
The columns you check define what a duplicate is
Excel matches on displayed values, so formatting and formulas can surprise you.
This explains most “Excel deleted the wrong row” stories. Microsoft defines a duplicate as a row whose values exactly match another row. Crucially, duplicates are determined by the value displayed in the cell, not necessarily the value stored in it. Microsoft’s example: the same date formatted as “12/8/2017” in one cell and “Dec 8, 2017” in another counts as unique. Formulas follow the result: =2-1 and =3-2 are duplicates if formatted the same. But the same value in different number formats — 1.00 versus 1 — is not. In our view, Excel sees the display, not your intention.
Hide duplicates instead when you do not want to delete
Filtering shows the same unique list while keeping every original row.
Sometimes you need a clean list for one report, not a smaller dataset. Microsoft is clear: filtering and removing display the same unique list, but filtering temporarily hides duplicates while removal permanently deletes them. To filter, select the range, or ensure the active cell is in a table, then on the Data tab, in the Sort & Filter group, click Advanced, choose filter in place or copy results elsewhere, select Unique records only, and click OK. Copied results leave the original unaffected.

Use Copilot to flag duplicates without handing it the delete key
The Clean Data button handles other faults; the @clean-data skill is the one that checks duplicates.
The Clean Data button does not itself remove duplicates — a distinction the similar names hide. Microsoft describes it as an AI-based feature with three suggestion types: inconsistent text, inconsistent number formats and extra spaces. Duplicates are handled by Remove Duplicates above, and by Copilot’s @clean-data skill. Enter @ followed by its name in your Copilot prompt, such as @clean-data. The skill checks for extra spaces, inconsistent text and number formats, inconsistent dates, duplicate values and wrong data types, explains why each matters, and proposes corrections you select. Our comparison of Copilot in Excel vs Power Query covers when that approach beats a saved, repeatable process.
Check the result before the cleaned list goes anywhere
A quick recount and a glance at the survivors catch most mistakes early.
Pause before sharing the cleaned list. Compare its row count with your copy, re-run the highlight check, and recheck totals that used removed rows. Watch rows that looked identical: in our view, identical rows can be legitimate repeat orders — the same customer buying the same item twice — so a row should only disappear when it records the same event. That sceptical last look is the habit behind our checklist for checking AI answers, and it applies to deletions just as much as to Copilot’s answers.
What this means
The button is easy; deciding what counts as a duplicate is the real work.
Most duplicate problems are not really software problems. The list in front of you was probably assembled by tired people, merged from two exports, or pasted together before a meeting. Of course it contains repeats. The frustration when a total looks wrong is rarely about Excel — it is about not knowing which version of the truth you are looking at.
That is why the order matters more than any single step. Highlight first, copy second, delete last. Each stage lets you notice something: a customer who appears twice because they genuinely ordered twice, a date that only looks repeated because two formats show the same day differently, a price column you do not want deciding matches. In our view, people get into trouble not because the tool is dangerous, but because they let it answer a question — what counts as the same record? — that only they can answer well.
Copilot changes the feel of that work, without changing who decides. Having @clean-data surface duplicate values alongside spaces, dates and wrong data types, explain why each matters, and wait for you to select the fixes is a kinder workflow than squinting down a long column alone. It will not rescue a list you have not thought about, and it is never permission to approve everything. But as a second pair of eyes, it earns its place.
There is also a quieter benefit once the list is clean. Counts start agreeing with each other, names stop appearing twice in a mail merge, and the person reading your report stops wondering which figure to trust. Clean data does not just save you time in the moment — it makes every conversation built on that sheet calmer, shorter and far more useful for everyone involved.
So keep the habit simple. Look before you delete, keep the original safe, and make the columns you check a deliberate choice, not a default you never noticed. Then, when someone asks why the numbers changed, you will have an answer instead of a worry.
Bottom line
Highlight, copy, then remove — and let Copilot flag, never blindly delete.
For a permanent cleanup, highlight first, copy the original, then use Data > Remove Duplicates with only the columns that truly define a match checked. For a temporary view, filter for unique records instead. With Copilot, use @clean-data to flag duplicates for review — the Clean Data button itself covers spaces, text and number formats, not duplicates.
Frequently Asked Questions
Is removing duplicates in Excel permanent?
Yes. Microsoft warns that when you use the Remove Duplicates feature, the duplicate data is permanently deleted, which is why it advises moving or copying the original data to another worksheet first, so you do not accidentally lose information you still need later on.
Does the Copilot Clean Data button remove duplicates?
No. Microsoft describes Clean Data as providing three suggestion types only: inconsistent text issues, inconsistent number format issues and extra spaces. Duplicate values are checked instead by the separate @clean-data skill, which proposes corrections in the workbook for you to review and select before applying.
Can Excel highlight duplicates inside a PivotTable?
No. Microsoft notes that Excel cannot highlight duplicates in the Values area of a PivotTable report, even though the Duplicate Values conditional formatting rule works on ordinary selected cells. To review repeats behind a pivot, go back to the underlying list and apply the highlighting there instead.
Can I remove duplicates from outlined or subtotalled data?
No. Microsoft states that you cannot remove duplicate values from data that is outlined or that has subtotals, so both the outline and the subtotals must be removed first. Only after that preparation can you select the range and run Remove Duplicates on the flattened data safely.
Related Guides
Sources
- Find and remove duplicates — Microsoft Support
- Filter for or remove duplicate values — Microsoft Support
- Clean up your data with Copilot in Excel — Microsoft Support
- Use built-in skills and skills created by Microsoft with Copilot in Excel — Microsoft Support
{
“@context”: “https://schema.org”,
“@type”: “FAQPage”,
“mainEntity”: [
{
“@type”: “Question”,
“name”: “Is removing duplicates in Excel permanent?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Yes. Microsoft warns that when you use the Remove Duplicates feature, the duplicate data is permanently deleted, which is why it advises moving or copying the original data to another worksheet first, so you do not accidentally lose information you still need later on.”
}
},
{
“@type”: “Question”,
“name”: “Does the Copilot Clean Data button remove duplicates?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “No. Microsoft describes Clean Data as providing three suggestion types only: inconsistent text issues, inconsistent number format issues and extra spaces. Duplicate values are checked instead by the separate @clean-data skill, which proposes corrections in the workbook for you to review and select before applying.”
}
},
{
“@type”: “Question”,
“name”: “Can Excel highlight duplicates inside a PivotTable?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “No. Microsoft notes that Excel cannot highlight duplicates in the Values area of a PivotTable report, even though the Duplicate Values conditional formatting rule works on ordinary selected cells. To review repeats behind a pivot, go back to the underlying list and apply the highlighting there instead.”
}
},
{
“@type”: “Question”,
“name”: “Can I remove duplicates from outlined or subtotalled data?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “No. Microsoft states that you cannot remove duplicate values from data that is outlined or that has subtotals, so both the outline and the subtotals must be removed first. Only after that preparation can you select the range and run Remove Duplicates on the flattened data safely.”
}
}
]
}



