How to find duplicates between two columns in excel
Tutor 5 (82 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To find duplicates between two columns in Excel, use formulas or conditional formatting to highlight or identify matching values.
Method 1: Using a Formula
Assume your data is in Column A and Column B.
In Column C, enter the following formula in C1:
=IF(ISNUMBER(MATCH(A1, B:B, 0)), "Duplicate", "Unique")
Press Enter.
Drag the formula down to apply it to all rows in Column A.
Explanation:
MATCH(A1, B:B, 0)searches for the value ofA1in Column B.ISNUMBER()checks ifMATCHfound a number (position).IF()returns "Duplicate" if a match exists and "Unique" if it does not.
Method 2: Using Conditional Formatting
Select the first column (e.g., A1:A100).
Go to Home → Conditional Formatting → New Rule → Use a formula to determine which cells to format.
Enter the formula:
=COUNTIF(B:B, A1)>0
Click Format, choose a highlight color, and click OK.
Click OK again to apply.
Explanation:
COUNTIF(B:B, A1)counts how many times the value in A1 appears in Column B.A value greater than 0 indicates a duplicate.
Highlighting makes duplicates visually easy to spot.
Method 3: Using the VLOOKUP Function
In Column C, enter the formula:
=IFERROR(VLOOKUP(A1, B:B, 1, FALSE), "Unique")
Press Enter and drag down.
Explanation:
VLOOKUPsearches forA1in Column B.IFERRORreturns "Unique" when no match is found.
Method 4: Using Excel's Remove Duplicates Tool (For Lists)
Copy Column A and Column B into a single column if needed.
Go to Data → Remove Duplicates.
Select the column and click OK.
Explanation:
This removes duplicates but is irreversible unless data is backed up.
Best for cleaning combined lists rather than highlighting matches.
Notes
For Mac Excel, the steps are identical, but menu names might appear slightly different (e.g., “Home → Conditional Formatting” is the same).
These methods work for text, numbers, and dates.
Case sensitivity: Excel formulas are not case-sensitive.
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 show duplicates in red
Answers · 1
How to apply duplicate conditional formatting rule
Answers · 1
How to duplicate conditional formatting excel
Answers · 1
What is excel conditional formatting duplicates
Answers · 1