How to easily check for Duplicates in Excel

Finding duplicates in Excel is straightforward and crucial for maintaining clean data. Here’s how you can do it:

Why Look for Duplicates?

Duplicates can occur during data import, merging datasets, or manual entry. They can cause errors and inconsistencies in your data.

Methods to Find Duplicates

  1. Conditional Formatting
  2. COUNTIF Function
  3. UNIQUE Function

Using Conditional Formatting

  1. Select your data.
  2. Go to the “Home” tab, click “Conditional Formatting.”
  3. Choose “Highlight Cell Rules” > “Duplicate Values.”
  4. Select the color to highlight duplicates and click “OK.”

Excluding First Occurrences

  1. Clear existing conditional formatting: “Conditional Formatting” > “Clear Rules” > “Clear Rules from Selected Cells.”
  2. Select your data.
  3. Go to “Conditional Formatting” > “New Rule.”
  4. Choose “Use a formula to determine which cells to format.”
  5. Enter the formula =COUNTIF($C$1:C1,C1)>1 (adjust cell references as needed).
  6. Click “Format,” choose your options, and click “OK.”

Using COUNTIF Function

  1. In a new column, enter:
   =IF(COUNTIF($B$2:$B13, $B2)>1, "Duplicate", "")

Adjust the range as necessary.

Ignoring First Instances

  1. Use:
   =IF(COUNTIF($B$2:$B2, $B2)>1, "Duplicate", "")

Using UNIQUE Function

  1. Select your data range.
  2. In an empty column, enter:
   =UNIQUE(A1:A13)

Adjust the range as needed.

Finding Triplicates

  1. Use the COUNTIF function with a slight tweak:
   =IF(COUNTIF($B$2:$B13, $B2)>2, "Triplicate", "")

For exact triplicates, use:

   =IF(COUNTIF($B$2:$B13, $B2)=3, "Triplicate", "")

Filtering Duplicates

  1. Use the COUNTIF function to mark duplicates.
  2. Select your data range and go to the “Data” tab.
  3. Click the “Filter” button.
  4. Filter the column to show “Duplicate” values.

Finding Duplicate Rows

  1. Clear existing rules: “Conditional Formatting” > “Clear Rules” > “Clear Rules from Selected Cells.”
  2. Select your data range.
  3. Go to “Conditional Formatting” > “New Rule.”
  4. Choose “Use a formula to determine which cells to format.”
  5. Enter:
   =COUNTIFS($A$1:$A$13,$A1,$B$1:$B$13,$B1,$C$1:$C$13,$C1)>1

Adjust cell references as needed.

  1. Click “Format,” choose your options, and click “OK.”

Counting Duplicates

  1. In a new column, enter:
   =COUNTIF($B$2:$B$13,B2)

Adjust the range as necessary. This shows how many times each value appears in the data.

By using these methods, you can efficiently find and manage duplicates in your Excel worksheets.

You May Also Like