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

Editors' Recommendations

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…
How to double space in Microsoft Word
Overhead view of someone typing on a Surface laptop.

Double-spacing is a great way to organize your word processing, and an excellent optimization that is built into most word processing tools. And whenever we hear “word processing,” one of the first programs that comes to mind is Microsoft Word. This handy software has been around for a minute, and we’re going to teach you how to implement double spaces throughout your next Word doc.

Read more
How to do a hanging indent in Microsoft Word
A person typing on a keyboard, connected to a Pixel Tablet.

Microsoft Word is one of the most feature-rich word processing tools gifted to us human beings. In fact, the very word “Word” has invaded nomenclature to the point where any discussion of this type of software, regardless of what the product is actually called, typically results in at least one person calling the software “Word.”

Read more
The most common Microsoft Teams problems and how to fix them
A close-up of someone using Microsoft Teams on a laptop for a videoconference.

Microsoft Teams was introduced in 2017 as a unified communication and collaboration platform aimed at helping businesses and organizations get things done. Microsoft leveraged the company's existing Office software experience and created a unified experience between Teams, Office 365, and Skype for Business. However, as with all software, things don't always go according to plan. Sometimes you can run into Teams problems.

We're big Teams users here at Digital Trends -- it's our go-to communication and meeting tool -- and we've come across a few issues ourselves over the years. In the event you're having Microsoft Teams issues, here's how to fix some of the most common problems.

Read more