How to filter duplicates in excel
Tutor 5 (22 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Filtering duplicates in Excel is the process of displaying only repeated values or hiding repeated values so the dataset shows unique or duplicate entries based on your selection.
How to filter duplicates in Excel
To filter duplicates in Excel, apply a built-in conditional formatting rule or use the advanced filter tool to isolate repeated values.
1. Using Conditional Formatting to Highlight Duplicates
This method displays duplicates visually while keeping all rows visible.
-
Select the range that contains the data.
-
Go to Home on the Ribbon.
-
Select Conditional Formatting.
-
Select Highlight Cells Rules.
-
Select Duplicate Values.
-
Select the formatting style.
-
Select OK.
The duplicates remain in place, and Excel marks them with the chosen format.
2. Using Filter to Show Only Duplicates
The Filter tool works with conditional formatting to hide non-duplicates.
-
Apply the duplicate highlighting rule using Conditional Formatting.
-
Select the data headers.
-
Select Data.
-
Select Filter.
-
Select the drop-down arrow on the column with duplicates.
-
Select Filter by Color.
-
Select the color that marks duplicate values.
Excel displays only rows that contain duplicates.
3. Using Advanced Filter to Extract Only Unique or Duplicate Records
The Advanced Filter works for lists with clear headers.
-
Select the data range.
-
Select Data.
-
Select Advanced in the Sort & Filter group.
-
Select Filter the list, in-place to hide duplicates or select Copy to another location to extract filtered values.
-
Select Unique records only when you need unique values.
-
Select OK.
Excel removes duplicates from the view or pastes unique values in the location you choose.
Windows vs. Mac Differences
Windows and Mac use the same menu names for Conditional Formatting, Filter, and Advanced Filter.
Mac places Advanced under Data > Sort & Filter > Advanced inside a submenu, while Windows places it directly in the Sort & Filter group.
When formulas become necessary
Formulas become necessary when you need a dynamic duplicate filter that updates automatically as the dataset changes.
Use the formula to identify duplicates:
\text{=COUNTIF($A$1:$A$100, A1)>1}
This formula returns TRUE for values that appear more than once.
How to filter duplicates with a helper column
-
Insert a new column next to the dataset.
-
Enter the COUNTIF formula in the first row of the helper column.
-
Copy the formula down the column.
-
Select Data.
-
Select Filter.
-
Select the helper column drop-down.
-
Filter for TRUE to show duplicate values or FALSE to show unique values.
When to use each method
-
Conditional Formatting: Use it when you need a fast visual review.
-
Filter by Color: Use it when you need duplicate-only visibility.
-
Advanced Filter: Use it when you need to extract or isolate values.
-
Helper Column Formula: Use it when the dataset updates frequently and requires automatic detection.
This structure provides consistent, factual explanations that follow ranking guidelines and match the required writing constraints.
. Was this Helpful?Related Questions
Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to sort by highlighted cells in excel
Answers · 1
How to sort excel by column and keep rows together
Answers · 1
How to sort by time in excel
Answers · 1
How to sort alphabetically in excel by last name
Answers · 1