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 convert a PDF to JPG on Mac, Windows, and web
Person using their laptop on the floor.

When it comes to cross-platform files, two of the most widely used image formats you’ll see are PDFs and JPGs. The Portable Document Format (PDF) was launched by Adobe back in 1992, while the Joint Photographic Experts Group (JPG) was unveiled the same year, and was developed by its titular organization, in collaboration with IBM, Mitsubishi, AT&T, and Canon.

Read more
How to download YouTube videos for offline viewing
A smartphone displaying YouTube on its screen as it lays on top of a laptop's keyboard.

YouTube might be a streaming-first video platform, but you can download YouTube videos, too. You can even download them for free with the right software, although simply being a YouTube Premium member is the most straightforward method. Having a YouTube video saved offline makes it easy to view it later, watch it when you're offline and away from a stable Wi-Fi connection, or just watch it multiple times without having to re-stream it.

Whatever reason you have for wanting to download a YouTube video, though, there are a range of ways to do it. Here's how.

Read more
How to cancel Spotify Premium on any device
Event listing for Chappel Roan on Spotify, seen on an iPhone.

Your Spotify Premium account has served you well for many years, but you’ve recently gotten the bug for hi-res listening, so it’s off to Tidal for all things tunes! Or maybe you’re just trying to lighten the load when it comes time to pay for your monthly streaming subscriptions. Whatever the case may be, canceling Spotify Premium isn’t too difficult, and we’ve put together this step-by-step guide to get you pressing that red goodbye button on your PC, smartphone, or tablet.

Read more