
Learn how to delete duplicates in Excel in 2027, so you can clean up messy spreadsheets, remove repeated rows, and trust your data again.
Duplicate rows sneak into almost every spreadsheet. A customer list gets pasted twice. A sales report is copied from two sources. A form is filled in by the same person three times. The result is the same every time: wrong totals, double counted customers, and charts that tell a lie. Deleting duplicates by hand is slow and risky, because it is easy to remove the wrong row.
Excel has a built in tool that finds and removes duplicates in a few clicks, and it also has formulas and filters for trickier cases. This guide shows you every method, from the quick Remove Duplicates button to the UNIQUE formula and Power Query. You will learn which method fits your data, how to keep the first copy and delete the rest, and how to check your work before you delete anything for good.
What Does It Mean to Delete Duplicates in Excel?
Deleting duplicates in Excel means finding rows that repeat the same values and removing the extra copies, so each unique entry appears only once. A duplicate is usually a full row where every column matches another row. It can also be a repeated value in one column, such as the same email address appearing five times in a customer list.
Excel lets you choose which columns to check. If you check only the email column, Excel will treat two rows as duplicates when their emails match, even if the names are spelled differently. If you check all columns, Excel will only remove rows that match in every column. Picking the right columns is the most important decision in the whole job.
Before you delete anything, always make a copy of your worksheet. Duplicates removal cannot be undone once you save and close the file, and a wrong choice can delete data you needed. A quick copy takes five seconds and saves hours of rebuilding later.
What You Need Before You Start
Before you start, open your spreadsheet and make sure your data has headers, such as Name, Email, and Date, in the first row. Remove any blank rows in the middle of your data, because blank rows can stop Excel from selecting the full range. Save a copy of the file with a new name, so the original stays safe while you work.
Which Columns Should You Check for Duplicates?
Think about what makes a row a duplicate in your data. In a customer list, the email address is usually the best column to check, because one person should have one email. In an order list, the order number is the best column. If you check too many columns, Excel will miss real duplicates. If you check too few, Excel will delete rows that are actually different. When in doubt, check the one column that should be unique, and look at the result before you confirm.
How to Delete Duplicates in Excel With the Remove Duplicates Tool
The Remove Duplicates tool is the fastest way to clean a list. It is built into every modern version of Excel, on Windows and Mac, and it takes less than a minute. Use it when you want to keep the first copy of each row and delete the rest.
Follow these steps to delete duplicates with the Remove Duplicates tool:
- Click any cell inside your data range.
- Go to the Data tab at the top of Excel.
- Click Remove Duplicates in the Data Tools group.
- Excel will select your data and open a small window.
- Make sure the box for My data has headers is ticked if your first row holds headers.
- Tick the columns you want Excel to check for duplicates.
- Click OK to remove the duplicates.
- Excel will show a message telling you how many duplicate rows were found and removed.
- Click OK to close the message and see your cleaned list.
Excel always keeps the first occurrence of each value and deletes the later copies. The rows below shift up to fill the gaps, so your list stays neat. If you need to keep the last copy instead of the first, sort your data first so the copy you want to keep sits at the top.
How to Delete Duplicates in One Column Only
To clean a single column, select just that column before you open the Remove Duplicates tool. Excel will ask if you want to expand the selection to the whole table. If you choose Continue with the current selection, Excel will delete the duplicate cells in that column only, and the other columns will stay untouched. This is useful when you want a clean list of unique names or emails to copy somewhere else.
How to Check Your Results Before You Confirm
The Remove Duplicates window shows you which columns are selected before you click OK. Read that list carefully. If the wrong columns are ticked, Excel will delete the wrong rows. You can also test the result first: copy your data to a new sheet, run Remove Duplicates there, and compare the two sheets. If the test looks right, run it on the real data.

How to Delete Duplicates in Excel With Formulas
Formulas give you more control than the Remove Duplicates tool. They let you find duplicates without deleting anything, mark them for review, or build a new list that holds only unique values. Use formulas when you want to check the data first, or when the duplicates need a human decision.
The COUNTIF formula is the simplest way to find duplicates. It counts how many times a value appears in a range. If the count is more than one, the value is a duplicate. The UNIQUE formula, available in newer versions of Excel, builds a clean list with no duplicates at all. Both formulas are easy to learn and they update automatically when your data changes.
To use COUNTIF, add a helper column next to your data. In the first cell of the helper column, type a formula that counts the value in the row. Copy the formula down the whole column. Any row with a count above one is a duplicate, and you can filter or sort by that column to review them before you delete.
How to Find Duplicates With the COUNTIF Formula
Follow these steps to find duplicates with COUNTIF:
- Add a new column at the right of your data and call it Count.
- In the first data row of that column, type =COUNTIF($A$2:$A$100,A2) using your own column and range.
- Press Enter, then copy the formula down to the last row of data.
- Any cell showing 2 or more means that value appears more than once.
- Filter the Count column to show only values above 1, and review the duplicates.
- Delete the duplicate rows by hand, or filter and delete them in a batch.
The dollar signs in the formula lock the range, so the formula always checks the full column. Change the column letter and the range to match your own data. If your list is longer than 100 rows, extend the range to cover the whole list.
How to Build a Clean List With the UNIQUE Formula
The UNIQUE formula creates a new list that holds each value only once. Type =UNIQUE(A2:A100) in an empty cell, using your own range, and Excel will spill the unique values into the cells below. This does not delete anything from your original data, so it is the safest method when you are not sure what to remove. The new list updates itself if you change the original data, which makes it great for reports that refresh often.

How to Delete Duplicates in Excel With Advanced Filter
Advanced Filter is an older Excel feature that still works well. It can copy only the unique rows to a new place, leaving your original data untouched. Use it when you want a clean copy and you do not want to risk changing the original list.
Follow these steps to use Advanced Filter for duplicates:
- Click any cell inside your data.
- Go to the Data tab and click Advanced in the Sort and Filter group.
- Choose Copy to another location in the window that opens.
- Check that the List range covers your full data, including headers.
- Click in the Copy to box and click the cell where the clean list should start.
- Tick the box for Unique records only.
- Click OK, and Excel will copy only the unique rows to the new location.
The new list will have the same headers and the same columns, but each repeated row will appear only once. Check the new list carefully, because Advanced Filter keeps the first copy just like the Remove Duplicates tool. If the result looks right, you can replace the old list with the new one.
How to Delete Duplicates Without Deleting the Original Data
Both Advanced Filter and the UNIQUE formula leave your original data alone. That makes them the best choice when the spreadsheet is shared with other people, or when you are not sure the duplicates are really duplicates. Always prefer a method that copies the clean data to a new place when the original file matters.
When to Use Advanced Filter Instead of Remove Duplicates
Use Advanced Filter when you need a clean copy in a different sheet, or when you want to filter by complex rules. Use Remove Duplicates when you are sure about the data and you want the original list cleaned in place. For most daily jobs, Remove Duplicates is faster, and Advanced Filter is the safer second choice.
Excel Duplicate Removal Methods Compared
Each method for deleting duplicates has its own strengths. The table below compares them, so you can pick the right one for your job.
| Method | Best For | Deletes Original | Needs Formula | Works In |
|---|---|---|---|---|
| Remove Duplicates tool | Quick cleanup of a whole list | Yes, in place | No | Excel 2007 and later |
| COUNTIF helper column | Reviewing duplicates before deleting | No, you delete by hand | Yes | All versions of Excel |
| UNIQUE formula | A live list that updates itself | No, builds a new list | Yes | Excel 365 and Excel 2021 |
| Advanced Filter | A clean copy in a new place | No, copies unique rows | No | All versions of Excel |
| Power Query | Large files and repeated cleaning | No, loads a clean table | No | Excel 2016 and later |
The Remove Duplicates tool wins for speed, and it is the method most people should learn first. The UNIQUE formula wins when the list changes often and you want the clean version to update itself. Power Query wins for large files and for cleaning jobs you repeat every week, because you can save the steps and run them again with one click.
Related: Excel Remove Duplicates Guide to Cleaner Data
How to Delete Duplicates in Excel With Power Query
Power Query is Excel built in data cleaning tool, and it is the best choice for large files or for a cleaning job you repeat often. It loads your data, removes the duplicates, and puts a clean table back in your workbook. You can save the steps and refresh them later when new data arrives.
Follow these steps to delete duplicates with Power Query:
- Click any cell inside your data.
- Go to the Data tab and click From Table or Range.
- Excel will ask you to confirm the range and headers. Click OK.
- The Power Query editor will open with your data in a table.
- Select the column or columns you want to check for duplicates.
- Go to the Home tab in the editor and click Remove Rows, then Remove Duplicates.
- Click Close and Load at the top left to put the clean table in your workbook.
Power Query keeps the first copy of each row, just like the other methods. The big advantage is that the steps are saved. Next week, when you paste new data into the same table, you can click Refresh and Power Query will clean it again the same way.
How to Remove Duplicates From More Than One Column in Power Query
In Power Query, hold the Ctrl key and click each column you want to check, then use Remove Duplicates. Power Query will treat two rows as duplicates only when all the selected columns match. This is useful for an order list where the same customer appears many times, but each order number should appear only once.
How to Refresh a Power Query Clean Up
After you load a clean table from Power Query, the query stays linked to the source data. When the source data changes, right click the clean table and choose Refresh. Power Query will run the same steps again, including the duplicate removal, and update the table. This turns a weekly cleaning chore into a single click.

Common Mistakes When Deleting Duplicates in Excel
The most common mistake is deleting duplicates without a backup. Once you save and close the file, the removed rows are gone for good. Always save a copy first, or work on a copy of the sheet, so you can go back if something looks wrong.
Another common mistake is checking the wrong columns. If you tick every column, Excel will only remove rows that match in all of them, and real duplicates will survive. If you tick only one column, Excel may delete rows that differ in other columns. Read the column list in the Remove Duplicates window before you click OK.
A third mistake is forgetting about extra spaces. Two cells can look the same but be different to Excel, because one has a trailing space. Use the TRIM function to remove extra spaces before you check for duplicates, or the duplicates will not be found. Case does not matter to Excel, so Smith and SMITH count as the same value.
- Do not delete duplicates in the original file without saving a copy first.
- Do not tick columns blindly. Check which columns define a duplicate in your data.
- Do not forget hidden rows or filtered rows. Excel checks them too.
- Do not use Remove Duplicates on a list with no headers unless you untick the headers box.
- Do not ignore extra spaces. Clean them with TRIM before you check.
Why Excel Says No Duplicates Were Found
If Excel says no duplicates were found but you can see repeated values, the values are probably not exact matches. Check for extra spaces at the start or end of a cell, and for numbers stored as text. A number stored as text looks like a number but is a different value to Excel. Select the column, use Text to Columns to convert it, and try again. Different spellings and different capitalisation of a name will also hide duplicates.
Excel Formulas for Duplicates Compared
Formulas are useful when the Remove Duplicates tool is not enough. The table below compares the main formulas people use for duplicate work.
| Formula | What It Does | Best For | Needs Newer Excel |
|---|---|---|---|
| COUNTIF | Counts how many times a value appears | Finding and marking duplicates | No, works everywhere |
| COUNTIFS | Counts with more than one condition | Duplicates across two columns | No, works everywhere |
| UNIQUE | Builds a list with no duplicates | A clean list that updates itself | Yes, Excel 365 or 2021 |
| FILTER | Shows only rows that meet a rule | Showing duplicate rows for review | Yes, Excel 365 or 2021 |
| IF with COUNTIF | Labels each row as Duplicate or Unique | Reviewing before you delete | No, works everywhere |
COUNTIF is the formula to learn first, because it works in every version of Excel and it is easy to understand. COUNTIFS is the next step, because it lets you check two columns at once, such as first name and last name together. UNIQUE and FILTER are faster and cleaner, but they need a newer version of Excel, so check your version before you rely on them.
Related: How to Sort in Excel
Related: How to Reset Windows 11 Without Losing Data
Frequently Asked Questions
1. How do I delete duplicates in Excel but keep the first one?
Use the Remove Duplicates tool on the Data tab. Excel always keeps the first occurrence of each value and deletes the later copies. Select your data, click Remove Duplicates, tick the columns to check, and click OK.
2. How do I delete duplicates in Excel without deleting the original data?
Use the UNIQUE formula or Advanced Filter. Both build a clean list in a new place and leave your original data untouched. Type =UNIQUE(A2:A100) in an empty cell, or use Advanced Filter with the Unique records only box ticked.
3. How do I find duplicates in Excel without deleting them?
Add a helper column with the COUNTIF formula, such as =COUNTIF($A$2:$A$100,A2). Any row with a count above one is a duplicate. You can also use Conditional Formatting, under Home and then Highlight Cells Rules, to colour duplicate values so they stand out.
4. Why does Excel say no duplicates were found when I can see them?
The values are probably not exact matches. Extra spaces, numbers stored as text, and different spellings all hide duplicates from Excel. Clean the data with TRIM first, convert numbers stored as text, and check the spelling of the repeated values.
5. Can I delete duplicates in Excel on a phone?
The Excel mobile app has fewer tools than the desktop version, and the Remove Duplicates button is not available in the same way. For a quick job, use Excel on the web at office.com, where the Data tab includes Remove Duplicates. For a large or complex file, clean it on a computer instead.
Related: How to Create a Drop Down List in Excel
Conclusion: Keep Your Spreadsheets Clean and Trustworthy
Deleting duplicates in Excel is a small job that makes a big difference. A clean list gives you correct totals, honest charts, and no double counted customers. The Remove Duplicates tool handles most jobs in under a minute, and formulas like COUNTIF and UNIQUE cover the cases where you need to check first or build a live clean list.
Key Takeaways
- Save a copy of your file before you delete any duplicates.
- Use the Remove Duplicates tool on the Data tab for the fastest cleanup.
- Tick only the columns that define a duplicate in your data.
- Use COUNTIF to find duplicates and UNIQUE to build a clean list.
- Clean extra spaces with TRIM, or Excel will miss real duplicates.
- Power Query is best for large files and cleaning jobs you repeat.
- Advanced Filter gives you a clean copy without touching the original.