In this lesson, you will learn how to find duplicates in Excel. It’s a quick way to find a large amount of data in just a second.
Applying conditional formatting to find duplicates
You have 3 columns of data and you want to highlight duplicates.
First select the whole table.
Go to the Ribbon. Home tab> Styles section. Click here to view Conditional Formatting > Highlight Cell Rules > Duplicate Values
A dialog box will appear. Choose how to highlight duplicates in Excel. I chose dark red text with a light red fill.
Excel highlights duplicates in your table.
Applying the match formula
Another way I know is to use the match function.
Excel includes a match function that allows you to find a value in a given range of cells. It is enough to dress the match function in logical functions and we will get such a formula
As you can see in the picture above, Excel correctly identified the duplicates.
When the value is unique it displays TRUE. If it found a duplicate in column B, it returned FALSE.
Applying the countif formula
You can also use a formula to find duplicates in Excel. One commonly used formula is the COUNTIF function. Here are the steps for using the COUNTIF function:
- Create a new column next to the column you want to check for duplicates.
- In the first cell of the new column, enter the following formula: “=COUNTIF(A:A,A2)”. Replace “A:A” with the column that you want to check for duplicates, and replace “A2” with the first cell in the column.
- Copy the formula down to the last cell in the column.
- The formula will return a count of how many times each value in the column appears.
- To highlight the duplicates, use conditional formatting as described above, but select the new column with the formula results instead of the original column.
- The duplicates will be highlighted in the new column.
Using the “Remove Duplicates” Feature
- Select the range of cells or columns that you want to check for duplicates.
- Click on the “Data” tab in the ribbon menu.
- In the “Data Tools” section, click on “Remove Duplicates”.
- In the “Remove Duplicates” dialog box, select the columns that you want to check for duplicates and click on the “OK” button.
- Excel will remove all duplicate rows and display a message indicating how many duplicates were removed.
It is important to note that the method you choose will depend on your specific needs and the size of your data set. For small data sets, using the “Remove Duplicates” feature or conditional formatting may be the quickest and easiest solution. For larger data sets, using a formula may be more efficient.
Additionally, if you have multiple columns that you want to check for duplicates, you will need to use a different method, such as using a formula or a VBA macro, to compare the values in multiple columns.
It is also important to consider the order of your data when checking for duplicates. If your data is not sorted, duplicates may not be detected accurately. To ensure accurate results, sort your data before checking for duplicates.
I am doing this Excel tutorial to help you solve such problems. I hope that I was successful and that my website will help you in many other matters.