An Excel sheet is a great way of packing lots of data into a dense area. But, these documents will become unmanageable and unwieldy when they’re in use for a long period of time. This example teaches you how to find duplicates in Excel. Go here to remove duplicates.
In this tutorial, we will figure out How to Find Duplicate values in an Excel sheet using two ways. To begin with, we will figure out how to use Conditional Formatting to highlight the copy cells. Then, we will show how to use the Excel Countif Function to find the duplicates. Now, we are not using a formula to find duplicates in excel. But how conditional formatting and countif function helps.
So, Let’s Go through the following steps to learn the way!
Way 1: Shortcut Way: Conditional Formatting!
1: Select the range A1:A13
2: Click on Conditional Formatting from Styles group.
3: Select the Highlight Cells Rules option and then select the Duplicate Values… Option.
4: Selected Column will Highlight Duplicate Values.
If we select Unique from the list. So, the previous selection is reversed. We are finding Duplicate values and not Unique values. So, select Duplicate from the drop-down list. Then Click OK.
Result. Excel highlights the duplicate names.
So, we have learned how to find duplicate values using Conditional Formatting.
Note: This method will only work if cells contents are less than 256 characters in length. This is because Excel functions cannot handle text strings that are longer than this
Way 2: Find duplicate using COUNTIF Function
Using COUNTIF function helps us:
- Find only the duplicate values, and
- Count how many times the value is repeated in the list.
So let’s find out a duplicate with Countif Function in Excel
Now let see how CountIF calculates the number of repetition.
1: Now in Column B we will count each name repetition. In cell B1 type the name of Column Count as like above picture. Now use below formula in cell B2 for count the number of repetition of the name John in cell A2:
=COUNTIF( A:A, A2 )
2: This formula is telling to count the repeated number of the value of cell A2 in the range of A:A (means the whole column of A).
Now we can see in cell B2, it counts that name John is entered only 1 time. So now let input the same formula into other cells of column B.
3: Using Fill handle of the selected cell. Click, hold and drag it below another cell of column B as like above picture. The formula will be copied automatically for other cells of column B.
4: Now column B is showing the number of entry of each name. We typed Vijay 3 times and it is also calculated by our COUNTIF function.
So now we have successfully learned those two ways to find duplicate values in excel sheet.
Enjoy Excel tricks..!!