Skip to main content

How to remove duplicates in Excel

woman working in shared Industrious workspace with laptop.
Image used with permission by copyright holder

You can improve your spreadsheet's readability by removing unnecessary duplicate values. If you know you don't need them, why not use Microsoft Excel's tools to find and remove them? If you want to get rid of them, we can show you how. Here's how to remove duplicates in Excel.

Recommended Videos

Difficulty

Easy

Duration

10 minutes

What You Need

  • A PC

  • Microsoft Excel

Before removing those duplicates: Here's how to find them

Before deleting those duplicate values from your Excel spreadsheet outright, you'll need to find them first. Here's how to do that:

Step 1: Highlight all the cells you want Excel to scan for duplicates. Then select the Home tab from the Ribbon Menu at the top of the screen.

how to remove duplicates in excel find screenshot 1
screenshot

Step 2: On the Home tab, click on Conditional Formatting. From the menu that appears select Highlight Cells Rules.

how to remove duplicates in excel find screenshot 2
screenshot

Step 3: Then choose Duplicate Values. In the dialog box that appears, click on the drop-down menu after the phrase Values With and choose your desired color formatting for the cells that are deemed to be duplicates.

how to remove duplicates in excel find screenshot 3
screenshot

Step 4: Click OK. All of the duplicates from the selected cells should have been detected and marked with your chosen color formatting. You should now be able to easily see which values in your spreadsheet are duplicates.

How to remove duplicates in Excel

Now that you know which values in your spreadsheets are duplicates, you can remove them. Here's how:

Note: Removing duplicates in Excel usually involves permanently deleting them, so you may want to make another copy of the original version of this data before proceeding with removing the duplicates.

Step 1: Highlight the group of cells that contains the duplicate values you'd like to delete.

Step 2: Click on the Data tab on the Ribbon Menu at the top of the screen. Then navigate to the Data Tools section of the Data tab menu.

how to remove duplicates in excel screenshot 1
screenshot

Step 3: In the Data Tools section, click on the Remove Duplicates button. (It looks like three blue and white cells with a red X.)

Step 4: In the Remove Duplicates dialog box that appears, and in the Columns section, check any boxes next to the spreadsheet columns where you'd like the duplicates to be deleted. Uncheck the ones you'd like left alone.

how to remove duplicates in excel screenshot 2
screenshot

Step 5: Then click OK.

Excel will then scan the selected columns for duplicates and remove them. When it's done, a dialog box will pop up notifying you how many duplicates were removed and how many unique values were left alone. It may also say that it couldn't find any duplicate values to remove. If that's the case, scroll to the next section.

how to remove duplicates in excel screenshot 3
screenshot

Troubleshooting: What if Excel doesn't remove all the duplicates?

Sometimes, Excel doesn't remove all of the duplicates that are visible to us in a spreadsheet. This is often because Excel's Remove Duplicates tool may consider two duplicate values to actually be unique values instead, usually because of some underlying difference in formatting or another not-so-visible-to-us difference. If you're running into this issue, here are a couple of possible fixes you may want to consider:

  • Make sure all values are formatted the same. The Remove Duplicates tool doesn't work on numbers written in different formats. Just because the Conditional Formatting tool was able to correctly identify and highlight the duplicate values, that doesn't mean the Remove Duplicates tool will do the same. The Conditional Formatting tool will overlook the formatting issues as long as the number values are the same. The Remove Duplicates tool will not overlook formatting issues and will consider formatting differences as indicators that two duplicate values are actually unique. For the Remove Duplicates tool, even though 5 and 5.00 and $5 all have the same numerical value, they are still unique (not duplicate) values because they are formatted differently. So be sure to format all of your number values the same way before running the tool again.

  • Look for extra spaces in your values' cells. If your duplicate values have extra spaces in their cells, those spaces will also cause the Remove Duplicates tool to consider them to be unique values. Removing these spaces can help the Remove Duplicates tool to better detect the duplicate values you want to remove.

Anita George
Former Digital Trends Contributor
Anita George has been writing for Digital Trends' Computing section since 2018. So for almost six years, Anita has written…
Google Sheets vs. Microsoft Excel: Which is better?
Microsoft's PowerPoint on the Vision Pro.

Workplace visualization tools make the world go round, and will definitely liven up your before-lunch presentation. If you’ve got hard numbers to display to the masses, or graph-scribed projections you’re eager to get onscreen, you’ll need a powerful spreadsheet. You can use Google Sheets, or you can use Microsoft Excel -- they're both great ways to get the job done. But which of these two platforms is truly the best option? That depends on a number of things, and we’re not here to dissuade or encourage, but merely to inform.

We actually love Google Sheets and Excel, but for different reasons. One software may not be ideal for A, B, and C, although it may be really good at D, E, and F. Whatever the case may be, we put together this comparison of Google Sheets and Excel, with focus paid to essential categories like application access, data analysis, and charts and graphs. 
The basics
It’s worth stating from the start that both Sheets and Excel are excellent spreadsheet applications. So if you have the opportunity to try them both out, you may have a clear preference from the start. But if you’re doing your research first, just know that you can’t go wrong with either.

Read more
How to add page numbers in Microsoft Word
Microsoft Word purchase page on a MacBook.

Adding page numbers to Word documents is a great way to better organize them as they grow longer, and especially if you print it all out. What if you dropped all that paperwork and it went out of order?! Page numbers to the rescue! Here's how to add page numbers to Word in a few different ways.

Looking for more general tips on how to make the most of Word? Check out our beginner's guide to Word.

Read more
How to create a pivot table in Excel to slice and dice your data

Microsoft Excel is arguably the greatest spreadsheet application from Redmond, and there's a good reason so many number crunchers use it for all of their number crunching needs. While using Microsoft Excel is fine for simple spreadsheets to track expenses or build calendars, it comes into its own when you need to slice and dice and then present complex data. Here, we show you how to create a pivot table in Excel to take advantage of one of the application's most powerful tools.

Before we start, just what exactly are pivot tables good for? Simply put, pivot tables let you look at the same data in different ways and from different angles, to make it easier to perform in-depth analysis and to spot important trends. When you're evaluating sales results, for example, you may want to look at an individual person, a specific product, or a specific timeframe. With a pivot table, you can create one pool of information and then easily change your focus from one thing to another -- an analysis that would be tedious to perform manually.

Read more