Vlookup to Compare Two Columns: Best 5 Tips and Tricks

Compare Two Columns In Excel Using Vlookup

At some point in your work with Excel, you might find yourself needing to compare two columns of data. Here, vlookup to compare two columns can identify differences. In this guide, we look at process of using VLOOKUP to compare two Excel data columns.



Setting up your worksheet to Compare Two Columns in Excel Using VLOOKUP

Before we start with VLOOKUP, you should set up your sheet correctly. First, you should make sure that both columns of data are in the same worksheet or workbook. Then, columns must have unique headers to clearly identify the data they have.

Next, you should select the range of cells that contain your data. Such as including the headers. You can do this by clicking and dragging your mouse over the range. Or you can do it by using the keyboard shortcut “Ctrl+A” to select the entire worksheet.

comparing two columns in excel to find differences

Once everything is good to go, it is time to use VLOOKUP to compare the data. The VLOOKUP function searches for a value in the first column and returns a value in the same row from another column. These are all in the same table.

In case you want to use VLOOKUP for comparing two columns in excel to find differences, you need to specify the value  you are searching for. Also, the range of cells you are searching through. Then, you should enter column number of the data you want to return. And whether you want an exact match or an approximate match.

Vlookup To Compare Two Columns

vlookup for matching 2 columns

Here’s an example of how to use VLOOKUP to compare two columns of data.

  1. In a new column, you need to enter the VLOOKUP formula. The formula should start with “=VLOOKUP(“.
  2. Then, you should Specify the value searching for. In this case, we can use the first cell in the column we want to compare. For example, “=VLOOKUP(A2,”.
  3. Here you will specify the range of cells having data you want to be looked for. This should be the range of cells in the other column you want to compare to. Formula is like “=VLOOKUP(A2,B:C,”.
  4. So, one thing left to do is writing column number of the data you want to return. In this case, we want to return the value in the second column. So we will use “2”. Our formula now looks like this. “=VLOOKUP(A2,B:C,2,”.
  5. Finally, you need to specify whether you want an exact match or an approximate match. In our example, we want an exact match by typing FALSE. Ultimate formula is this. “=VLOOKUP(A2,B:C,2,FALSE)”.

After entering the formula, you can drag it down to compare all the cells. The result will show you whether there is a match or not.

how to use vlookup to compare 2 columns: Tips and Tricks

Conclusion

As a general step guide, if you wanna compare two columns in Excel using VLOOKUP, follow below these steps and adjust to your case.

  1. First thing is opening your Excel worksheet and select the cell for results.
  2. Then you can click on Formulas tab at top.
  3. For our formula, you can click on Lookup & Reference section.
  4. Then you select VLOOKUP from dropdown menu.
  5. In Lookup_value field, you will select the first cell of the column for comparison (e.g., A2).
  6. For Table_array field, you should select the range of cells belonging second column to compare (e.g., B2:B10).
  7. Next one is about Col_index_num field. Here we should enter “1” since you want to return a value from the first column.
  8. For Range_lookup, you can enter FALSE to have exact match and press enter.



The results in the result column will show “N/A” for any values in the first column that do not match. And it will show the matching value from the second column for any values in the first column that do have a match.

Related posts


Leave a Comment