Return to Excel Formulas List

Find Duplicates with VLOOKUP or MATCH in Excel & Google Sheets

Download Example Workbook

Download the example workbook

This tutorial will demonstrate how to find duplicate values using VLOOKUP and Match in Excel and Google Sheets.

Find Duplicate Values – VLOOKUP Function

To identify duplicate values in 2 columns in a range of cells in Excel you can use the VLOOKUP Function:

Find Duplicates VLOOKUP

If the cities are found in both columns B and C, then they will show in column D.

Find Duplicate Values – MATCH Function

Similarly, you can also find duplicate values in 2 columns using the MATCH Function.

Find Duplicates MATCH

The MATCH Function will return the row number if the duplicate exists, and a #N/A if the value is not duplicated.

 

Return Duplicate Value – the IF Function

If you want to return the duplicate value instead of the row number, you can expand the formula created by the MATCH Function to include an IF Function.

Select D4 and type the following formula.

Find Duplicates MATCH and IF

This will give us the exact same result as using the VLOOKUP to return the duplicate value.

Find Duplicate Values – VLOOKUP Function in Google Sheets

Finding duplicate values in 2 columns using VLOOKUP works exactly the same in Google sheets as it does in Excel.

Google 01

Find Duplicate Values in 2 columns – MATCH Function in Google Sheets

The Match function in Google Sheets is also identical to Excel.

Google 02

You can also use the IF Function to return the duplicate value.

Google 03

<<LINK TO ….>> compare-two-columns-duplicates

<<LINK TO ….>> formula-find-duplicate-values

<<LINK TO ….>> check-for-duplicates