How to VLOOKUP Between Two Google Sheets (2 Ideal Examples)

In Google Sheets, the VLOOKUP function is exceptionally dominant when you want to call corresponding data from different spreadsheets and workbooks. With this function, you can easily look up and retrieve information from huge data and flip your effort from hours to seconds. In this article, we will go through the approaches of VLOOKUP between two Google Sheets.


A Sample of Practice Spreadsheet

You can download spreadsheets from here and practice.


2 Ideal Examples to VLOOKUP Between Two Google Sheets

By using the VLOOKUP formula, you can look up values not only from the same spreadsheet but also from different spreadsheets as well.

For applying the VLOOKUP function here, we use two datasets for both methods. The first dataset contains Employee Information. Where we find Employee ID, Employee Name, Department, and Working Hours columns.

dataset for vlookup between two google sheets

The other dataset contains Salary Information. Here, we have Employee ID, Employee Name, Working Hours, and Salary per Day columns.

dataset for vlookup between two google sheets

For both methods, we have to look up for Working Hours column. The Employee ID considers the search key.


1. From the Same Google Spreadsheet

You can easily look up values from the same Google Spreadsheet. Here, we retrieve the Working Hours from the first sheet on the basis of Employee ID and want to place them in the second sheet.

Steps:

  • Here, our first sheet contains the employee information called the sheetSame Spreadsheet (Emp_Info)’.

vlookup from the same google spreadsheets

  • The salary information is in another sheet called ‘Same Spreadsheet(Salary_Info)’.

vlookup from the same google spreadsheets

  • Then enter the VLOOKUP function in the D6.

Insert vlookup formula

  • Enter the search key in the formula. Here, the search key is the Employee ID.

insert search key for vlookup

  • After that, go to the first sheet and select the entire employee information table. Here, we select the data range B6:E13 from the Same Spreadsheet(Emp_Info).

insert data range in vlookup formula

  • Now enter the column number which you want to look up. Here, we want to look up the Working Hours column in another sheet which is in the number 4.

select column for vlookup

  • So, we enter 4 in the formula as the Index.

vlookup between two google sheets

  • Press ENTER and you will find your desired value in the selected cell.
=VLOOKUP(B6,‘Same Spreadsheet(Emp_Info)’!B6:E13,4)

vlookup between two google sheets

  • Here, B6 is the search key with which you look up values. The Same Spreadsheet(Emp_Info) is the name of the sheet representing the entire employee information table. B6:E13 presents the range value of the Employee Information 4 is the column number that you want to look up in another sheet.
  • Finally, you can use the Fill handle to apply the formula to the entire column.

vlookup betwen two google sheets

Read More: How to Check If Value Exists in Range in Google Sheets (4 Ways)


Similar Readings


2. From Different Google Spreadsheets

To look up data from different spreadsheets we have to apply the IMPORTRANGE function along with the VLOOKUP formula. The IMPORTRANGE function will help to import values from another sheet to your current spreadsheet. To apply this method,

Steps:

  • First, create a new spreadsheet and insert your dataset. Here, we create Spreadsheet 2 and select the D6 cell to apply the VLOOKUP formula for this new sheet.

vlookup from different spreadsheets in google sheets

  • Then insert the search key. As we select Employee ID as our search key, we enter cell B6.

vlookup from different spreadsheets in google sheets

  • After that input the IMPORTRANGE function.

insert importrange function to vlookup

  • Now open the spreadsheet that you want to look up and select the sheet tab. Then copy the URL from the location bar.

insert vlookup formula between two different spreadsheets

  • Paste the URL into the formula inside double quotation marks.

insert url in different spreadsheets

  • Add an exclamation mark (!) and insert the range of cells you want to look up from the source spreadsheet. Enclose the whole range with double quotation marks. Here, we insert “Different Spreadsheet(Emp_info)!B6:E13”

insert data range for vlookup from another sheet

  • Complete the IMPORTRANGE function by enclosing it with a bracket and inserting the index. Here, we add 4 as we want to look up the Working Hours from the source spreadsheet which is in the fourth column.

insert vlookup formula for different spreadsheets

  • Press ENTER and you will find the desired value in your selected cell.
=VLOOKUP(B6,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-TG3D9lAKKbZV9TKlDlrD5ZmZYc0nZKGa9l0WHe77EE/edit#gid=994114381","Different Spreadsheet(Emp_info)!B6:E13"),4)

insert vlookup formula for different spreadsheets

Formula Breakdown

  • B6 is the search key.
  • IMPORTRANGE(“…”,”Different Spreadsheet(Emp_info)!B6:E13″): Here,https://docs.google.com/spreadsheets/d/1-TG3D9lAKKbZV9TKlDlrD5ZmZYc0nZKGa9l0WHe77EE/edit#gid=994114381” is the URL of the source spreadsheet,  Different Spreadsheet(Emp_info)!B6:E13 is the sheet range of source spreadsheet.
  • 4 is the column number that you want to look up.
  • Finally, you can use the Fill handle to input the formula into the entire column as well.

use fill handle to insert vlookup formula into entire column

Read More: VLOOKUP with IMPORTRANGE Function in Google Sheets


Things to Remember

  • Ensure Permission while working with different workbooks.
  • Be careful about using the exact data range in your formula.

Conclusion

Hope now you can easily understand and work with VLOOKUP between two Google Sheets, both in the same spreadsheet or from different ones. To explore more about the VLOOKUP formula and other functions in Google Sheets you can visit OfficeWheel.


Related Articles

Annyca Tabassum

Annyca Tabassum

Hello, I'm Annyca Tabassum. I currently work for the SOFTEKO as a technical writer and content developer. I have completed my graduation and post-graduation from SUST.

We will be happy to hear your thoughts

Leave a reply

OfficeWheel
Logo