5 Powerful Methods to Find Duplicates in Your Data

Learn how to use the COUNTIF formula in Microsoft Excel to easily find duplicates in data sets. Understand how the formula works and how to set up criteria to find both exact and approximate matches. Find and remove duplicate entries quickly and accurately.

Find Duplicate Data in Excel

Tired of nonsense pricing of DocuSign?

Start taking digital signatures with BoloSign and save money.


In the realm of Excel spreadsheets, managing substantial datasets often involves grappling with duplicate values. The presence of duplicates can significantly impact data reliability and precision. Detecting and effectively managing these duplicates becomes a pivotal task to uphold data integrity and accuracy. In this informative blog post, we embark on a journey to uncover diverse strategies for pinpointing and handling duplicates within Excel. By leveraging code blocks featuring formulas, we'll delve into multiple techniques to identify, assess, and manage duplicates, empowering you to maintain the sanctity of your data with confidence and proficiency.

Method 1: Using Conditional Formatting

Conditional Formatting is a powerful feature in Excel that allows you to apply formatting to cells based on specific criteria. By leveraging Conditional Formatting, you can easily highlight duplicate values in your spreadsheet.

To highlight duplicate values, follow these steps:

1.Select the range of cells where you want to detect duplicates.

Note: Excel can’t highlight duplicates in the Values area of a PivotTable report.

2. Go to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.

3. In the box next to values with, pick the formatting you want to apply to the duplicate values, and then click OK.

Excel will now highlight all duplicate values within the selected range, making them easy to spot and manage.

Method 2: Using the COUNTIF Function

The COUNTIF function in Excel allows you to count the number of occurrences of a specific value in a range. By utilizing this function, you can identify duplicates by finding values with a count greater than 1.

To find duplicates using the COUNTIF function, follow these steps:

1.Insert a new column next to the column you want to check for duplicates.

2. In the first cell of the new column, enter the following formula:


Replace A:A with the actual range of cells containing your data, and A1 with the first cell of your data range.

3. Drag the formula down to apply it to all the cells in the new column.

4. Filter the new column to show only the "TRUE" values.

  • Select the entire column, go to the Data tab in the Excel ribbon, and click on the "Filter" button.
  • Use the filter drop-down to select "TRUE" and hide the rows with "FALSE" values.

5. The filtered rows will display the duplicate values in your dataset.

Method 3: Using the COUNTIFS Function

The COUNTIFS function is an extension of the COUNTIF function that allows you to specify multiple criteria. This method is useful when you need to find duplicates based on multiple columns or conditions.

To find duplicates using the COUNTIFS function, follow these steps:

1.Insert a new column next to the column you want to check for duplicates.

2. In the first cell of the new column, enter the following formula:

=COUNTIFS(A:A, A1, B:B, B1)>1

Replace A:A and B:B with the ranges of cells containing your data, and A1 and B1 with the first cells of your data range.

3. Drag the formula down to apply it to all the cells in the new column.

4. Filter the new column so that it shows only the "TRUE" values, as explained in Method-2

5. The filtered rows will display the duplicate values based on the specified criteria.

Method 4: Using Advanced Filter

The Advanced Filter feature in Excel provides a more advanced way to find and manage duplicates in your dataset.

To use the Advanced Filter to find duplicates, follow these steps:

  1. Create a new range with headers for the columns you want to check for duplicates.
  2. In the first row below the headers, enter the criteria you want to use to find duplicates.
    For example, if you want to find duplicates in column A, enter "Column A" in the first row below the "Column A" header.
  3. Select the range containing your data, including the headers.
  4. Go to the Data tab in the Excel ribbon and click on the "Advanced" button in the Sort & Filter group.
  5. In the Advanced Filter dialog box, select the option to "Copy to another location."
  6. Specify the destination range where you want the filtered results to appear.
  7. Check the "Unique records only" checkbox to exclude duplicates.
  8. Click "OK" to apply the Advanced Filter.

Excel will copy the unique values from the selected range to the specified destination, effectively filtering out the duplicates.

Method 5: Using Power Query

Power Query is an advanced Excel tool used for ETL (Extract, Transform, and Load). Using Power Query, you can obtain data from different sources and apply transformations. It provides a data cleansing mechanism to reshape it according to your needs.

Step 1: Create a table by highlighting the rows and selecting Insert → Table. Or, you can press CTRL+T to create a table. Check the option My table has headers.

Step 2: Go to the Data tab, and in the Get & Transform Data, select the option From Table/Range.

Step 3: Power Query Editor opens, where you can perform the necessary transformations.

Step 4: Click on Home → Remove Rows → Remove Duplicates.

Step 5: In the Query Settings tab, you get the message ‘Removed Duplicates.’

Step 6: After this response, Click Home → Close & Load.

Step 7: You get the table with duplicates removed in a new sheet.

The impact of duplicate entries on data accuracy

Duplicate entries in Excel can have a significant impact on the accuracy of your data. When you have multiple entries for the same information, it becomes difficult to determine which one is the correct one. This can lead to errors in analysis, reporting, and decision-making. For example, if you're analyzing sales data and you have duplicate entries for a particular transaction, you may end up counting the same sale twice, resulting in skewed revenue figures.

Not only do duplicate entries distort your data, but they also waste valuable time and resources. Imagine manually going through thousands of rows of data to identify and remove duplicates. It's a tedious and error-prone process that can take hours or even days, depending on the size of your dataset. By proactively finding and removing duplicate entries, you can ensure the integrity of your data and save yourself the headache of dealing with inaccurate information.

Removing duplicate entries is particularly crucial when working with databases or when sharing data with others. Duplicate entries can cause conflicts and inconsistencies when merging data from different sources. By maintaining clean and duplicate-free data, you can avoid these issues and ensure smooth collaboration and data integration.

Why finding and removing duplicate entries is important

Finding and removing duplicate entries in Excel is not just about maintaining data accuracy; it also has several other benefits. First and foremost, it improves the efficiency of your workflow. When you have clean and duplicate-free data, you can perform analysis, generate reports, and make decisions more quickly and confidently. You don't have to spend unnecessary time double-checking and reconciling data, allowing you to focus on more important tasks.

Furthermore, removing duplicate entries can help you gain valuable insights from your data. When your data is free from duplicates, you can get a clear and accurate picture of your business or project. You can identify trends, patterns, and outliers more effectively, leading to better decision-making and improved outcomes. By eliminating duplicate entries, you can unlock the full potential of your data and extract meaningful information that can drive your business forward.

Another advantage of removing duplicate entries is that it reduces the risk of errors and inconsistencies. Duplicate entries can create confusion and discrepancies in your data, making it difficult to trust the information you're working with. By removing duplicates, you can ensure data consistency and reliability, giving you the confidence to make informed decisions. Whether you're preparing financial statements, analyzing customer data, or tracking inventory, having accurate and reliable data is essential for your business's success.

In the following sections, we will explore various methods and techniques for finding and removing duplicate entries in Excel. From simple built-in functions to advanced filtering methods, you'll learn how to tackle duplicate entries efficiently and effectively. So, let's get started!

Removing duplicate entries using Excel's Remove Duplicates feature

Excel provides a built-in feature called "Remove Duplicates" that allows you to quickly and easily remove duplicate entries from your spreadsheets. This feature is simple to use and can save you a significant amount of time and effort. Let's explore how to use Excel's Remove Duplicates feature to remove duplicate entries.

To get started, select the range of cells that you want to remove duplicates from. Then, go to the "Data" tab in the Excel ribbon and click on the "Remove Duplicates" button. In the Remove Duplicates dialog box, you'll see a list of columns in your selected range. By default, Excel selects all the columns, assuming that you want to remove duplicate entries based on all the columns.

If you want to remove duplicates based on specific columns, you can uncheck the columns that you don't want to include in the comparison. For example, if you have a dataset with multiple columns and you only want to remove duplicates based on the values in column A, you can uncheck all the other columns.

Once you've selected the columns, click "OK." Excel will then remove all the duplicate entries from your selected range, keeping only the unique values. You'll see a confirmation message that displays the number of duplicate values removed and the number of unique values remaining.

Excel's Remove Duplicates feature is a powerful tool for cleaning up your data and removing duplicate entries. However, it's important to use this feature with caution, as it permanently deletes duplicate entries. Before using the Remove Duplicates feature, make sure to back up your data or create a copy of your spreadsheet to avoid any unintended data loss.


Detecting and managing duplicates is crucial for maintaining accurate and reliable data in Excel. By using methods such as Conditional Formatting, COUNTIF, COUNTIFS, and Advanced Filter, you can easily identify duplicates in your dataset. Choose the method that best suits your needs and take control of your data integrity in Excel!


Paresh Deshmukh

Co-Founder, BoloForms

18 Feb, 2023

Take a Look at Our Featured Articles

These articles will guide you on how to simplify office work, boost your efficiency, and concentrate on expanding your business.