Skip to main content

How to find duplicates in Excel

When you're working with a spreadsheet, duplicate data can sometimes make its way in and cause all sorts of problems. In this how-to, we demonstrate two methods for identifying and removing duplicate data in Microsoft Excel.

Difficulty

Easy

Duration

10 minutes

What You Need

  • Microsoft Excel

Identifying duplicate data using conditional formatting

One of the easiest ways to locate duplicate data in Excel is to use conditional formatting. Here's how.

Step 1: Select the portion of your data where you want to locate duplicates. In our example, we're selecting our entire table. Note that conditional formatting won't work with Excel Pivot Tables.

Selecting the data for conditional formatting in Microsoft Excel.
Mark Coppock/Digital Trends

Step 2: Select Conditional Formatting from the Home menu, then choose Highlight Cell Rules > Duplicate Values...

Selecting the duplicate values function in Microsoft Excel.
Mark Coppock/Digital Trends

Step 3: You'll be presented with a dialog that lets you select whether to show duplicate or unique values (we want the former, of course) and how you want the data highlighted. You can choose from the drop-down list or create a custom format.

Setting conditional formatting options in Microsoft Excel.
Mark Coppock/Digital Trends

Step 4: Once you've selected an option or clicked OK, your duplicate data will be highlighted. This can be textual or numeric data, and it can include any number of columns.

Duplicate data highlighted in Microsoft Excel.
Mark Coppock/Digital Trends

Using the Remove Duplicates function

You can also elect to have Excel remove any duplicate data from your spreadsheet. Use this function with caution – it's probably a good idea to back up your spreadsheet first.

Step 1: First, select the columns where you want to remove duplicates. Here, we're selecting the entire table. Note that Remove Duplicates will only remove those items where the values are identical across rows or from individual cells if a single column is selected.

In our example, the last three rows contain duplicate data.

how to find duplicates in excel selecting the data for conditional formatting
Mark Coppock/Digital Trends

Step 2: Select the Data menu, then click Remove Duplicates. In the dialog box that pops up, you'll be presented with several options. First, you can identify if your data has headers. Second, you can choose which columns to include or exclude.

When you're ready, click OK.

Remove duplicate options in Microsoft Excel.
Mark Coppock/Digital Trends

Step 3: You'll be presented with a dialog that will indicate how many duplicate values were found and removed and how many unique values remain. Note that the last three columns in our data were removed.

Duplicated data removed in Microsoft Excel.
Mark Coppock/Digital Trends
Mark Coppock
Mark has been a geek since MS-DOS gave way to Windows and the PalmPilot was a thing. He’s translated his love for…
Google Sheets vs. Excel: Which is better?
Spreadsheet on a laptop on a table.

If you’re trying to decide on a spreadsheet application, it’s likely that Google Sheets and Microsoft Excel have made their way onto your list of options. After all, these are two of the most popular and widely used spreadsheet tools on the market.

So, what makes one better than the other? Is it a matter of features, access, cost, collaboration, or something else? To help you decide which one is best for you, we’ll break down these categories in our Google Sheets versus Excel comparison.
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 freeze rows and columns in Excel
A woman on the phone sitting at a table using a laptop.

Excel spreadsheets can quickly get unruly and hard to navigate and scroll through, especially if there are a lot of rows and columns involved. But there are ways to take charge of the situation and make them easier to read.

Here's how to freeze a row in Excel in just a few clicks, so they stick with you while you scroll.

Read more
How to convert Apple Numbers to Excel
Numbers and Excel on a MacBook with a business person.

Apple Numbers is a convenient spreadsheet application included with macOS, iOS, and iPadOS for free. While this makes it handy for Apple users, it can make it difficult to share a workbook with a non-Apple user.

Because you can use Microsoft Excel on both Mac and Windows as well as mobile and the web, this makes it a more widely available application than Numbers. To make things simpler for your collaborators or viewers, we’ll show you how to convert Apple Numbers to Excel.

Read more