How to extract duplicates in excel
Tutor 5 (112 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To extract duplicates in Excel, multiple methods depend on whether you want to highlight, filter, or separate duplicates into a new location.
Method 1: Using Conditional Formatting to Highlight Duplicates
Select the range of cells where you want to find duplicates.
Go to the Home tab.
Click Conditional Formatting → Highlight Cells Rules → Duplicate Values.
Choose a formatting style (e.g., light red fill with dark red text).
Click OK.
This will highlight all duplicate values in the selected range.
Note: Only the duplicate entries are highlighted. The first occurrence is also highlighted unless you adjust the rules.
Method 2: Using the Remove Duplicates Tool to Extract Unique Values
Select the range of data.
Go to the Data tab.
Click Remove Duplicates.
In the dialog box, check the columns to analyze.
Click OK.
Excel will show a message with the number of duplicates removed and the number of unique values remaining.
Note: This method removes duplicates permanently from the original data, so copy the original data to a new sheet if you want to preserve it.
Method 3: Using the COUNTIF Function to Identify Duplicates
Suppose your data is in column A starting from A2.
In cell B2, enter the formula:
=IF(COUNTIF(A:A, A2)>1, "Duplicate", "Unique")
Drag the formula down for all rows.
This formula labels each value as Duplicate or Unique.
Method 4: Extracting Duplicates to a New Sheet Using Advanced Filter
Select the range of data.
Go to the Data tab.
Click Advanced in the Sort & Filter group.
Choose Copy to another location.
Set List range to your data range.
Check Unique records only.
Choose a destination cell for the extracted list.
Click OK.
This creates a new list containing only unique values. To get duplicates, combine with the COUNTIF method and filter only the "Duplicate" rows.
Method 5: Using Excel’s Power Query to Extract Duplicates
Select the data range.
Go to the Data tab and click From Table/Range.
In the Power Query editor, go to Home → Remove Rows → Remove Duplicates for unique values.
To see duplicates instead, group data by the column, add a count column, and filter rows where count > 1.
Click Close & Load to bring results back to Excel.
Power Query allows handling large datasets efficiently and is useful for recurring duplicate detection.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
Why is drop down list not showing in excel
Answers · 0
Why is the drop down list not showing all options
Answers · 1
Why can't I delete drop down list excel
Answers · 1
How to create an Excel drop-down list from a lookup table
Answers · 1