How to find duplicates in Excel
Microsoft Excel is perhaps the most powerful spreadsheet application you can buy. But it also has some simple functions, like finding duplicates in data.
By Mark Coppock Updated September 13, 2024 12:42AM
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 of using Microsoft Excel for identifying and removing duplicate data.
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 if you are using pivot tables in Microsoft Excel.
Mark Coppock/Digital TrendsStep 2: Select Conditional Formatting from the Home menu, then choose Highlight Cell Rules > Duplicate Values...
Mark Coppock/Digital TrendsStep 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.
Mark Coppock/Digital TrendsStep 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.
Mark Coppock/Digital TrendsUsing 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.
Mark Coppock/Digital TrendsStep 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.
Mark Coppock/Digital TrendsStep 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.
Mark Coppock/Digital TrendsNote that it is also possible to use VLOOKUP in Excel to find duplicate data.
Getting to grips with these advanced features turns what appears to be a plain grid of numbers into a powerful tool. Want more tricks? Here's how to use the concatenate function in Excel.
Mark has been a geek since MS-DOS gave way to Windows and the PalmPilot was a thing. He’s translated his love for…
Microsoft Excel keyboard shortcuts everyone should know
If you use Microsoft Excel, you know that this robust spreadsheet application offers tons of features and functions. By using keyboard shortcuts for the most common actions, you have more time to focus on the formulas, calculations, and other data you’re working with.
These lists give you shortcuts for everyday actions you’d perform. Plus, they use simple key combinations that are easy to remember.
Common Excel keyboard shortcuts
For the most common actions you may perform in an Excel workbook, these keyboard shortcuts are good ones to keep in mind. And they work in other Microsoft Office applications on Windows like Word and PowerPoint.
How to create a drop-down list in Excel on Windows and Mac
Implementing a drop-down list in Excel is a quick and efficient way to choose predefined data. In the process, you’re able to save time compared to manually entering such data into a given spreadsheet. Drop-down lists are perfect for several purposes, such as inputting information into a form.
Here's how to create a drop-down list using Microsoft Excel on Windows and Mac.
How to password-protect an Excel file on Windows and Mac
If you use a computer, you probably have some Microsoft Excel documents on your Mac or PC that you wouldn’t want other people to find and read.
After all, Excel serves not only the average person, but also businesses, government institutions, and millions of other folks worldwide. Whatever you’re using Microsoft Excel for, the best way to keep that information safe is to learn how to password-protect an Excel file.