fbpx

Find Duplicate Values

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!

Find Duplicate value in Excel using Conditional Formatting!

  1. Select the range of cells you wish to test
    find duplicates in excel

    click on Conditional Formatting from Styles group

  2. Click on Home Tab
  3. Click on Conditional Formatting
    select the Duplicate Values... Option
  4. Select the Highlight Cells Rules option
  5. Then select the Duplicate Values
    Duplicate Values dialog box will pop up
  6. Selected Column will Highlight Duplicate Values.
    select Duplicate from the drop-down list
  7. Duplicate Column list will now get identified

Note: 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.

how to find duplicate values using Conditional Formatting

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

Find duplicate using COUNTIF Function

Using COUNTIF function helps us:

  1. Find only the duplicate values, and
  2. 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.

formula is telling to count the repeated number of the value

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 let input the same formula into other cells

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.

Using Fill handle of the selected cell

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.

So now we have successfully learned those two ways to find duplicate values in excel sheet.

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..!!

1 Response