How to find duplicates in multiple columns
Tutor 5 (97 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To find duplicates in multiple columns in Excel, use conditional formatting, helper formulas, or advanced filtering, depending on whether the duplicate must match across all selected columns or within any individual column.
Method 1: Find Duplicates Across Multiple Columns Using Conditional Formatting
This method identifies rows where the combined values across multiple columns appear more than once.
Steps
Select the full data range that contains all relevant columns.
Go to Home → Conditional Formatting → New Rule.
Select Use a formula to determine which cells to format.
Enter the formula below, adjusting column letters and row numbers to match the dataset:
=COUNTIFS($A:$A,$A1,$B:$B,$B1,$C:$C,$C1)>1
Click Format, choose a highlight style, then select OK.
Explanation
COUNTIFSevaluates duplicates using all specified columns as a single combined key.A result greater than 1 confirms duplication.
Entire rows that share identical values across the selected columns are highlighted.
Windows vs Mac
No functional difference.
Menu names and formula behavior remain identical.
Method 2: Find Duplicates in Any of Multiple Columns
This method highlights duplicate values that repeat within any column independently.
Steps
Select all relevant columns.
Go to Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values.
Choose Duplicate.
Select a format style.
Click OK.
Explanation
Excel evaluates each column separately.
A value repeating in one column triggers highlighting.
Cross-column comparison does not occur.
Method 3: Use a Helper Column for Exact Row Duplication
This method flags duplicate rows using a visible indicator.
Steps
Insert a new column to the right of the dataset.
Enter the formula below in the first row of the helper column:
=COUNTIFS(A:A,A1,B:B,B1,C:C,C1)
Fill the formula down.
Filter the helper column for values greater than 1.
Explanation
The helper column displays frequency counts.
Values greater than 1 confirm duplication across all specified columns.
Filtering isolates duplicate rows instantly.
Method 4: Use Advanced Filter to Extract Duplicates
This method extracts duplicates into a separate area.
Steps
Select the full dataset including headers.
Go to Data → Advanced.
Select Copy to another location.
Check Unique records only to isolate non-duplicates.
Compare extracted results against the original dataset.
Explanation
Advanced Filter processes entire rows.
Comparison across columns occurs row by row.
This method suits audit and review tasks.
Windows vs Mac
Windows: Data → Advanced appears directly.
Mac: Data → Advanced Filter appears under the Sort & Filter group.
Method 5: Use Power Query for Large Datasets
This method handles large datasets with higher accuracy and repeatability.
Steps
Select the dataset.
Go to Data → From Table/Range.
Load the data into Power Query.
Select the relevant columns.
Choose Remove Rows → Remove Duplicates or Keep Duplicates.
Load results back into Excel.
Explanation
Power Query compares rows across selected columns.
Processing occurs outside the worksheet.
Refresh capability maintains accuracy as data changes.
Windows vs Mac
Windows supports full Power Query features.
Mac supports Power Query with limited interface controls.
Key Accuracy Rules for Duplicate Detection
Blank cells count as valid values during duplicate evaluation.
Leading and trailing spaces create false uniqueness.
Text case does not affect duplicate detection.
Numeric formatting does not affect duplicate evaluation.
Formula results are evaluated, not the formulas themselves.
Best Method Selection
Conditional Formatting suits visual review.
Helper columns suit validation and reporting.
Advanced Filter suits extraction.
Power Query suits large or recurring datasets.
Each method produces deterministic results when column ranges remain consistent.
. 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
What is the formula to highlight duplicate values
Answers · 1
What is the formula to remove duplicates
Answers · 1
How to delete duplicate values in excel
Answers · 1
How to delete duplicate rows based on one column
Answers · 1