How to find duplicates across sheets
Tutor 5 (112 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To find duplicates across sheets in Excel, use formulas, Conditional Formatting, Power Query, or PivotTables, depending on dataset size, update frequency, and visibility needs.
Method 1: Use a Formula to Identify Duplicates
What does this method do?
This method compares values in one sheet against another sheet, and flags matches directly in cells.
When should this method be used?
This method works best for small to medium datasets where real-time updates matter.
Steps
Select an empty column in Sheet1.
Enter the formula below in the first row of that column.
Replace
A2with the active cell reference.Replace
Sheet2!A:Awith the column to compare against.Press Enter.
Drag the formula down to apply it to all rows.
Formula
=COUNTIF(Sheet2!A:A, A2)>0
How does this work?
The formula counts occurrences of a value from Sheet1 inside Sheet2. A result of TRUE indicates a duplicate across sheets.
Method 2: Highlight Duplicates Using Conditional Formatting
What does this method do?
This method visually highlights duplicate values across sheets.
Steps (Windows)
Select the target range in Sheet1.
Go to Home → Conditional Formatting → New Rule.
Choose Use a formula to determine which cells to format.
Enter the formula below.
Click Format, choose a fill color, then click OK.
Steps (Mac)
Select the target range in Sheet1.
Go to Home → Conditional Formatting → New Rule.
Choose Classic as the rule type.
Select Use a formula to determine which cells to format.
Enter the same formula and apply formatting.
Formula
=COUNTIF(Sheet2!A:A, A1)>0
What changes between Windows and Mac?
The rule selection interface differs. The formula logic stays identical.
Method 3: Find Duplicates Using Power Query
What does this method do?
This method compares entire sheets efficiently and handles large datasets.
When should this method be used?
This method works best for large tables, recurring comparisons, and automated refreshes.
Steps
Convert both datasets into tables using Ctrl + T.
Go to Data → Get Data → From Table/Range for each sheet.
Load both tables into Power Query.
Use Merge Queries.
Select the matching column in both tables.
Choose Inner Join.
Load the result back into Excel.
What does the result show?
The output displays only records that exist in both sheets.
Method 4: Use a PivotTable to Detect Duplicates
What does this method do?
This method aggregates data from multiple sheets and counts repeated values.
Steps
Combine both sheets into one table.
Insert a PivotTable from the combined dataset.
Place the comparison field into Rows.
Place the same field into Values.
Set Values to Count.
How are duplicates identified?
Values with a count greater than 1 exist in more than one sheet.
Which method should be used?
Formula-based methods suit quick checks. Conditional Formatting suits visual audits. Power Query suits large datasets. PivotTables suit summary analysis.
Key Accuracy Notes
Text comparisons are case-insensitive.
Leading and trailing spaces affect results.
Numbers stored as text count as different values.
Blank cells return FALSE unless matched with blanks.
Structured tables improve refresh reliability.
Common Errors and Fixes
Incorrect sheet names cause formula errors.
Merged cells break comparisons.
Inconsistent data types produce false negatives.
Hidden spaces require TRIM before comparison.
Does Excel support duplicate detection across more than two sheets?
Yes. Extend formulas by adding more COUNTIF functions joined with logical operators, or merge multiple tables using Power Query for scalable comparisons.
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