Open In App

How to Find Duplicates in Excel

Last Updated : 14 Mar, 2024
Like Article

Duplicates are those which appear more than one time. Finding and highlighting duplicates in Excel is a common task that helps in data analysis and management. While working with a large Excel worksheet or converting many small worksheets into bigger ones, you may find many duplicates in it.

In this article, we will look at different ways we can find duplicates in Excel easily and quickly.

How to Find Duplicate Values in Excel

To find duplicate values in Excel, follow the steps below:

Step 1: Enter the Data

Before finding the duplicates, it’s essential to ensure that the data is properly formatted and organized in Excel.

Dataset with duplicate elements

Step 2: Select the data

First, select the data in which we want to find duplicate elements.

how to find duplicates in excel

Step 3: Go to the Home tab and Select Conditional Formatting

Then, click on Home on the Ribbon. In the Styles group, click Conditional Formatting.

Select Conditional Formatting

Step 4: In Conditional Formatting, Select Highlight Cells Rules and Choose Duplicate Values

Select Duplicates values.

Step 5: Select Duplicate from the drop-down and Select Color

In the Duplicate Values box, select the formatting style which we want to apply to the duplicate values, and then click OK.

 Select options from Duplicate Values.

Result: The Duplicate Numbers have been Highlighted.

Highlighted Duplicates

How to Find Triplicates in Excel

By default, Excel highlights duplicates( north) and triplicates (2). Follow the below steps to highlight only triplicates:

Step 1: Firstly clear all your previously applied rules.

Step 2: Now select the range of cells.

Step 3: Select the Conditional Formatting in the Styles group in the Home tab.

Conditional Formatting

Step 4: Click the new rule


Step 5: Select ‘Use a formula to determine which cells to format’.

Step 6: Enter a formula


Step 7: Select a formatting style and click OK.


Result: Excel highlights the Triplicates (integer and string).


How to Find Duplicate Rows in Excel

Use COUNTIFS (with a S at the end) instead of COUNTIF to locate and highlight duplicate rows in Excel.

Step 1: Select the range A1:C16



Step 2: Go to the Home tab and Select Conditional formatting

Click Conditional Formatting under the Styles group on the Home menu.

Step 3: Click on New Rule

New Rule Excel

Excel New Rule

Step 4: Select ‘Use a formula to determine which cells to format’

Step 5: Enter the formula


Step 6: Select a formatting style and click OK

find duplicates excel

New Formatting Rule

Result: Excel highlights the duplicate rows.

Highlighted Duplicates Excel

Highlighted Duplicates

How to Find Duplicates in Excel Using Formulas

To identify duplicates in Excel, you can use the COUNTIF Function. The formula may vary slightly depending on whether you want to include the first occurrence or not. Here are the steps to identify duplicates in Excel:

How to Find Duplicate Records Including 1st Occurrences

Suppose you have a list of items in column A that you want to check for duplicates. To find Duplicates, including the first occurrences, enter the following formula in cell B2(considering A2 is the topmost cell):


Copy the formula from cell B2 and drag the fill handle down to copy it to other cells in column B.

This will apply the formula to each cell and evaluate if it is a duplicate. This formula will return TRUE for duplicate values and False for unique values.

Note: If you want to find duplicates in a specific range of cells rather than the entire column, use a locked range by using the dollar ($) sign. For example, if you want to search for duplicates in cells A2:A10, use the formula:


To make the result more accurate, you can use the IF Function. This allows you to assign labels to duplicate and unique values. For example:

=IF(COUNTIF($A$2:$A$10, $A2)>1,"Duplicate","Unique")

This formula will return “Duplicate” for duplicate records and “Unique” for unique records.

If you only want to identify duplicates and leave unique values blank, modify the formula as follows:


This modified Formula will return “Duplicate ” for duplicate records and leave the unique records blank.

How to Highlight Duplicates in a Range (Multiple Columns)

You can use one of the following ways to find all instances of the same item in all the columns.

a) Highlight duplicates in Multiple columns including 1st occurrences

If the first instance of an item that appears in the data set more than once is known as a duplicate, use Excel’s built-in rule for duplicates.

You can also create a conditional formatting rule with this formula:

COUNTIF(range, top_cell)>1

b) Highlighting Entire Rows based on Duplicate Values in one Column

If you want to highlight whole rows based on duplicated records in a specific column follow the below steps:

First, select the whole rows, and then create a rule with one of the following formulas:

If you are finding duplicates from A2 to A10.

To highlight duplicate rows excluding 1st occurrences:

=COUTNIF($A$2:$A$2, $A2)>1

To highlight duplicate rows including 1st occurrences:


where A2 is the first cell and the A10 is the last cell in the column that you want to check for duplicates. You should know the use of absolute and relative cell references.

c) Highlighting Consecutive Duplicates Cells in Excel

There might occur some situations where the user does not need to highlight all duplicates in a column but show only consecutive duplicate cells. To do this, select the cells with the data( excluding the column header) and create a conditional formatting rule with one of the following formulas:

To highlight consecutive duplicates without 1st occurrence:


To highlight consecutive duplicates with 1st occurrences:

=OR($A1=$A2, $A2=$A3)

Also Read:

How to find Duplicates in Excel – FAQs

Can Excel identify duplicates without deleting them?

Yes, we can highlight the duplicate values by using Conditional Formatting without deleting the duplicates.

Is there a formula to remove duplicates?

The unique values in a column are returned by the function UNIQUE. It is only accessible through Excel Online or Microsoft Office 365.

How you can Highlight duplicates in Excel in a couple of clicks?

  • With any cell in your table selected, click the Dedupe table button, and the clever add-in will pick up the whole table.
  • The Dedupe Table dialog box window will open with all the columns selected automatically, and the color duplicates option chosen by default now click ok.

How can I filter duplicates in Excel?

To filter unique values, follow the below steps:

Step 1: Click data

Step 2: Select Sort and Filter

Step 3: Now choose Advanced.

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads