How to VLOOKUP Multiple Columns in Google Sheets (3 Ways)

VLOOKUP is a vertical lookup that we use when we need to find a value row-wise within columns in a table. For example, we can use VLOOKUP to find a Brand Name from a dataset with the brand’s corresponding products, product ID, price, etc. The VLOOKUP function allows us to find the required data from single and multiple columns. This article will teach us how to VLOOKUP multiple columns in Google Sheets.


A Sample of Practice Spreadsheet


Introduction to VLOOKUP Function in Google Sheets

The VLOOKUP function looks at a particular value to return corresponding values. For example, if you VLOOKUP a brand name in a dataset, you can find the corresponding product name, ID, price, etc.

Syntax:

VLOOKUP(search_key, range, index, [is_sorted])

google sheets vlookup multiple columns

Inputs:

  • search_key: This is the value to look up for. For example, if we consider cell B2 as search_key then VLOOKUP will start from cell B2.
  • range: This criterion indicates the range to look up in. If we want to pull data from column C then the range will be column C.
  • index: This parameter represents the column number from the range according to search_key. For example, if the range is columns C:F and you need data from column E, then index will be 3. As C=1, D=2, and E=3.
  • [is_sorted]: You must sort the range to the exact match. Here, FALSE or 0 means Exact Match, and TRUE or 1 means Approximate Match.

Return Value:

  • Returns the first matching value from the lookup range.

Read More: Google Sheets Vlookup Dynamic Range


3 Suitable Ways to VLOOKUP Multiple Columns in Google Sheets

Here we will show 3 different ways to VLOOKUP multiple columns in Google Sheets using different datasets. So let’s start!


1. Applying Combined Search Criteria

The dataset below contains Brand and Product, Product ID, and Price. Here, we will apply combined search criteria to search for Gucci Hand Bag and get the corresponding price.

Applying Combined Search Criteria in to vlookup multiple columns

  • First select cell G6 to insert the following formula into the cell. Then you will get the desired result as follows.
=VLOOKUP (G4&" "&G5,B5:D10,3)

  • Here G4&” “&G5 in the formula concatenates cell G4 and G5 separated by a space and returns Gucci Hand Bag. The VLOOKUP function uses this output as the search_key.

Read More: Combine VLOOKUP and HLOOKUP Functions in Google Sheets


2. Using Helper Column

The dataset below contains Brand Name, Product Type, Product ID, and Price. Here, we will VLOOKUP multiple columns using a helper column. The steps are mentioned below.

Using Helper Column in google sheets

📌 Steps:

  • First, insert a new column before the Product ID column in the actual dataset as below.

  • Then, insert the following formula into cell D5 to get the output as follows.
=B5&" "&C5

  • Next drag down the fill handle icon to copy the formula below.

  • You can hide the helper column if you want. After that, select cell C13 to insert a VLOOKUP formula lookup for the value in cell B13.

Using Helper Column in google sheets

  • Now, enter the following formula in that cell to get the output below.
=VLOOKUP(B13,B5:F10,5)

Read More: Highlight Duplicates for Multiple Columns in Google Sheets


Similar readings


3. Utilizing ARRAYFORMULA

The ArrayFormula function in Google Sheets enables non-array formulas to return values in multiple rows and columns. Here we will use this function with the VLOOKUP function to avoid inserting a helper column as in the earlier method to get the desired output.

Utilizing ARRAYFORMULA in google sheets

  • First, select cell D13 and apply the formula given below.
=ArrayFormula(VLOOKUP(B13&C13,{B5:B10&C5:C10,D5:E10},3))

  • Here B13&C13 in the formula concatenates the cells to return Gucci Hand Bag as the Then the array {B5:B10&C5:C10,D5:E10} returns an array of 3 columns containing Brand and Product, Product ID, and Price.

Read More: How to Use ARRAYFORMULA with VLOOKUP in Google Sheets


How to VLOOKUP to Return Multiple Columns in Google Sheets

Here will show how you can use the VLOOKUP function to return multiple columns at once in Google Sheets.

Suppose you want to insert the VLOOKUP formula in cell C13 to return the Product ID and Price at the same time for the corresponding search_key in cell B13.

google sheets vlookup multiple columns

  • First, select cell C13 and enter the following formula to get the output below.
=ArrayFormula(VLOOKUP(B13,B5:D10,{2,3}))

google sheets vlookup multiple columns

  • Here the array {2,3} replaces the single index argument in the earlier methods to return multiple columns at the same time.

Read More: How to VLOOKUP with Multiple Criteria in Google Sheets


Things to Remember

  • Always remember to select the correct data range as VLOOKUP does not allow you to have any blank data while selecting the range.
  • You can press CTRL + SHIFT + ENTER to convert a non-array formula to an ArrayFormula in Google Sheets.

Conclusion

In this article, we explained the anatomy of the VLOOKUP function. We also explained how to VLOOKUP multiple columns in Google Sheets in different ways. Hopefully, the methods will help you to apply the function to your own dataset. Please let us know in the comment section if you have any further queries or suggestions. You may also visit our OfficeWheel blog to explore more Google Sheets-related articles.


Related Articles

Afrina

Afrina

This is Afrina Nafisa. Currently working as a Technical Writer at OFFICEWHEEL.COM. I have done my graduation from Ahsanullah University of Science and Technology. As I am eager to learn more and more currently my motive is to make myself better every day with my work so that I can make better content for all the readers.

We will be happy to hear your thoughts

Leave a reply

OfficeWheel
Logo