How to Use VLOOKUP From Another Workbook in Google Sheets

Using VLOOKUP from another workbook in Google Sheets requires the use of the IMPORTRANGE function. The IMPORTRANGE function allows you to access data from another workbook in Google Sheets. Here's how you can use VLOOKUP with IMPORTRANGE:

  1. Open Google Sheets and make sure you have access to both workbooks – the one with the data you want to look up and the one where you want to display the result.
  2. In the workbook where you want to display the result, click on the cell where you want the VLOOKUP result to appear.
  3. Type the following formula:
=VLOOKUP(search_key, IMPORTRANGE("spreadsheet_key", "sheet_name!range"), index, [is_sorted])

Here's a breakdown of the formula components:

Example

Let's assume you have two workbooks:

  1. Workbook A: Contains a list of products and their prices in Sheet1 with the range A1:B10.
  2. Workbook B: Where you want to display the price of a specific product.

Here's how you can use VLOOKUP with IMPORTRANGE in Workbook B to look up the price of a product in Workbook A:

  1. Get the spreadsheet_key of Workbook A from its URL.
  2. In Workbook B, click on the cell where you want to display the product price.
  3. Type the following formula:
=VLOOKUP("Product Name", IMPORTRANGE("1aBcDeFgHiJkLmNoPqRsTuVwXyZ", "Sheet1!A1:B10"), 2, FALSE)

Replace "Product Name" with the name of the product you want to look up, and "1aBcDeFgHiJkLmNoPqRsTuVwXyZ" with the actual spreadsheet_key of Workbook A.

  1. Press Enter. If this is the first time you're using IMPORTRANGE with Workbook A, you'll see a #REF! error with an "Allow access" button. Click on the "Allow access" button to grant permission to access the data in Workbook A.
  2. The VLOOKUP result should now appear in the selected cell in Workbook B.
Did you find this useful?