VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (2024)

by Hady ElHady | Mar 13, 2024

The VLOOKUP function is very useful if you’re looking up specific values within a single Google Sheet file, but can you use it to look up values in a different file? Fortunately, IMPORTRANGE can be combined with VLOOKUP to look up values from a different spreadsheet. You can also combine the functionality of ARRAYFORMULA to look up a range of values.

In this article, you will learn how to use VLOOKUP with IMPORTRANGE to look up specific values in your source sheet and import the return value to your destination sheet. Additionally, you will learn two different methods you can use to look up multiple values. You have step-by-step instructions, as well as different examples using a single search key and multiple search keys. Finally, you will also learn about the limitations of using IMPORTRANGE and how they can be avoided by using Sheetgo.

If you want to learn more about the IMPORTRANGE function or how to use it with the QUERY function to search based on conditions instead of specific values, check out the following guides:

  • How To Use IMPORTRANGE Function In Google Sheets
  • QUERY with IMPORTRANGE in Google Sheets

VLOOKUP and IMPORTRANGE Syntax

Before combining the two, it’s a good idea to review the syntax and arguments for each function.

  • spreadsheet_url: the link to the spreadsheet containing the data you want to import. It should be enclosed in quotation marks or be a reference to a cell containing the URL.
  • range_string: the format is “[sheet_name!]range”, where sheet name is optional. The function will import from the first sheet if no sheet name is provided.

[is_sorted _i=”7″ _address=”0.0.0.7″ theme_builder_area=”post_content” /]

  • search_key: the value you want to search for in the first column of the range.
  • range: the reference to the cell range that should be considered for the search. This is where you can insert IMPORTRANGE to search data contained in another spreadsheet.
  • index: the index of the column containing the return value. The first column’s index is 1, not 0.
  • is_sorted*: this argument is optional. For an exact match, use “FALSE” or leave it blank. If you want an approximate match, type “TRUE”, but remember that the values in that column must be sorted.

If you want to use multiple search keys, you can wrap the ARRAYFORMULA function around VLOOKUP. This makes it possible to select an array of values as the search_key argument and get an array of values in return.

How To Use IMPORTRANGE Function In Google Sheets?

Google Sheets allows you to import and link a specific range of cells from another spreadsheet. Here’s how to use the IMPORTRANGE function in Google Sheets

READ MORE →

How to VLOOKUP with IMPORTRANGE in Google Sheets?

Now that you know the syntax for these functions, it’s time to learn how to use them together. Below, you have step-by-step instructions on how to get values from a different spreadsheet using VLOOKUP and IMPORTRANGE.

Copy Source URL and Cell Range Reference

The source file used in the examples contains customer information, including their ‘customer_id’. The destination file contains information on transactions identified by ‘customer_id’. This allows me to import data from the source file using ‘customer_id’ as the search key.

1. Open both the source and destination files in Sheets.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (2)

VLOOKUP with IMPORTRANGE in Google Sheets – Source File

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (3)

VLOOKUP with IMPORTRANGE in Google Sheets – Destination File

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (4)

VLOOKUP with IMPORTRANGE in Google Sheets – Copy Source File URL

3. Paste the URL into the destination file.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (5)

VLOOKUP with IMPORTRANGE in Google Sheets – Paste Source URL to Destination File

4. Go back to the source file and select the cell range. You can copy the cell range reference from the top-left corner, as shown below.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (6)

VLOOKUP with IMPORTRANGE in Google Sheets – Select and Copy Source Cell Range

5. Paste the cell range reference into the destination file. I won’t specify the sheet in this case because I’m only using “Sheet1″.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (7)

VLOOKUP with IMPORTRANGE in Google Sheets – Paste Cell Range Reference to Destination File

Add VLOOKUP function

1. In the cell where you want the return value, start typing the VLOOKUP formula.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (8)

VLOOKUP with IMPORTRANGE in Google Sheets – Add VLOOKUP Formula

2. For the 1st argument, select the search key.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (9)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 1st Argument

3. For the 2nd argument, add the IMPORTRANGE formula, referring to the cells where you copied the URL and cell range.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (10)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 2nd Argument

4. Add column index and close the parenthesis. Leave the last argument blank to get an exact match.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (11)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 3rd Argument

5. Press enter to see the result.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (12)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP Result

Approve Access Between Sheets

If you’re working with files that have never been connected before, you’ll see an error message instead of the value when you press ‘Enter’. To see the actual value, you will have to approve access between sheets.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (13)

VLOOKUP with IMPORTRANGE in Google Sheets – Approve Access Between Sheets

Now let’s take a look at some examples of how to use the functions to import multiple values.

How To Use IMPORTRANGE Function In Google Sheets?

Google Sheets allows you to import and link a specific range of cells from another spreadsheet. Here’s how to use the IMPORTRANGE function in Google Sheets

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (14)

Ready to streamline your spreadsheet tasks in Google Sheets?

Connect, merge, filter, split your spreadsheet files and schedule automatic updates with Sheetgo

GO TO SHEETGO →

VLOOKUP with IMPORTRANGE and Autofill for Mulitple Search Values

Now that you know how to import a single value, let’s see how to import multiple values. The examples below show how you can do this using two different methods: using autofill to copy the formula and using the ARRAYFORMULA function.

For the sake of simplicity, I’ll build on the example used in the previous section.

1. Add the VLOOKUP formula and select the search key as the 1st argument, using absolute referencing for the column.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (15)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 1st Argument

2. Use IMPORTRANGE as the 2nd argument, with the source URL and cell range reference as the arguments. Use absolute referencing for both columns and rows.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (16)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 2nd Argument

3. Specify the index for the column with the result you want, and leave the 4th argument blank for an exact match.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (17)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 3rd Argument 2

4. Press enter to see the result.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (18)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP Result

5. Double-click on the fill handle circled in red below.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (19)

VLOOKUP with IMPORTRANGE in Google Sheets – Use Auto-fill

6. To import values from the column to the right, grab the fill handle shown in the screenshot above and drag right.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (20)

VLOOKUP with IMPORTRANGE in Google Sheets – Drag Formula Right

7. Double-click to modify the formula to import from the 3rd column instead of the 2nd.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (21)

VLOOKUP with IMPORTRANGE in Google Sheets – Modify Index

8. Press “Enter” to see the result. Google Sheets will automatically suggest Autofill, but if not, you can double-click on the fill handle again.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (22)

VLOOKUP with IMPORTRANGE in Google Sheets – Multiple Results from Multiple Columns

VLOOKUP with IMPORTRANGE and ARRAYFORMULA for Multiple Search Values

Using data from the previous example, I will now use VLOOKUP and IMPORTRANGE to look up multiple values. However, instead of Autofill, I will use the ARRAYFORMULA function so VLOOKUP can process the arrays.

1. In the cell where you want the result, start with the ARRAYFORMULA function.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (23)

VLOOKUP with IMPORTRANGE in Google Sheets – Add ARRAYFORMULA

2. Add the VLOOKUP formula and select the range of values you want to look up.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (24)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 1st Argument

3. Add IMPORTRANGE, using absolute referencing for the cells.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (25)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 2nd Argument

4. Specify the index for the column with the result you want, and skip the last argument to get an exact match.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (26)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP 3rd Argument

5. Press enter to see the result. If you see an error, remember to approve access between the two Sheets files.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (27)

VLOOKUP with IMPORTRANGE in Google Sheets – VLOOKUP Array Results

6. To import the values from the next column, grab the fill handle and drag the formula right. Double-click to edit the column index.

VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (28)

VLOOKUP with IMPORTRANGE in Google Sheets – Drag Formula Right and Modify Index

A no-hassle alternative to IMPORTRANGE

Now that you know how to use IMPORTRANGE with VLOOKUP in Google Sheets, you may be wondering how scalable this method is. If you’re dealing with more than a couple of files, it can get messy very quickly.

With Sheetgo, you can say goodbye to complex formulas and time-consuming errors and import your data with just a few clicks. Additionally, you can transfer the formatting from the source file, so you won’t have to waste any time fixing it in the destination file. Finally, you will also be able to keep the source file private, allowing you full control over who has access to what data.

Conclusion

As you have seen, you can look up values in a different sheet by combining VLOOKUP and IMPORTRANGE. If you need to search for multiple values, you can use the ARRAYFORMULA function to look up multiple values simultaneously. VLOOKUP is a very useful function if you need to import specific values based on simple criteria. By combining it with other formulas, you can expand its functionality. However, if you have complex criteria and need to manipulate or summarize the data, the QUERY function is the better choice.

You now know how to look up and import values from different spreadsheets using VLOOKUP and IMPORTRANGE in Google Sheets. You know how to look up single and multiple search values to return a value or an array of values. You also know that Sheetgo is a great alternative to IMPORTRANGE, overcoming its limitations and offering additional advanced features. Sign up for Sheetgo and start saving time today.

To learn more about the VLOOKUP function in Microsoft Excel and Google Sheets or the IMPORTRANGE function in Google Sheets, have a look at the articles below.

  • How to VLOOKUP in Excel with Two Spreadsheets
  • How to VLOOKUP From Another Google Sheet or Workbook (+ Examples)
  • How To Use IMPORTRANGE Function In Google Sheets
  • QUERY with IMPORTRANGE in Google Sheets
VLOOKUP with IMPORTRANGE in Google Sheets | Layer Blog (2024)
Top Articles
What We Can Learn About Nutrition From the People of Okinawa
How often may I clear DNS cache with running ipconfig /flushdns command? - Microsoft Q&A
Njdep Org Chart
Carmel.clay Schools Calendar
Infatuation Washington Dc
Lesson 1 Homework 5.5 Answer Key
When His Eyes Opened 3001
Osu Hematology
Find A Red Cross Blood Drive
Nudify Review: Is It the Best AI Clothes Remover?
Dutch Sheets Give Him 15 Today's Message Today
Just Busted Lewisburg Tennessee
Play It Again Sports Knoxville Photos
Mail Healthcare Uiowa
Das E-Mail Center im Web - für E-Mail @t-online.de der Telekom
Cinemas of Stockholm 🎥 — Stockholmist.
Puff Hall Road
Magicseaweed Capitola
80 For Brady Showtimes Near Cinemark At Harlingen
Costco Fuel Price
Tighe Hamilton Hudson Ma Obituary
Caldwell Idaho Craigslist
Motorcycle For Sale In Deep East Texas By Owner
Wedding Dr Amy Hutcheson Married
Elsenpeter Auctions Monticello Mn
Misou Nail Spa
The Bear Spaghetti | Culinary Cartel
Lol Shot Io Unblocked
The Year The Internet Stopped Laughing
Bowfa Ge
Find A Red Cross Blood Drive
Emily Alexander Leaked
Small Party Hall Near Me
Melvor Volcanic Cave
'All good here' was 1 of the final texts sent from the doomed Titan submersible
Devotion Showtimes Near O'neil Cinemas - Brickyard Square 12
Pennywise The Clown Wiki
Tacoholic St Joseph
Awesome-Typescript-Loader
Stranded Alien Dawn Cave Dweller
Los Angeles Craigs List
Completed Data, Data, Everywhere course on Coursera | Pryanshu Gupta posted on the topic | LinkedIn
Master of Science in Data Science | Merrimack Online Programs
Appsanywhere Mst
Rpg Champions Trello
Play Coolmathgames.com
Ticket To Paradise Showtimes Near Cinemark 14 Chico
8 1944 1945 Jerome Weidman Playwright Skippy Adelman Old Photo Negative Lot 393A for Sale
Weilers Gentle Giants
Google Jobs Denver
Jades Lafayette Parish
2425 Nimmo Pkwy Virginia Beach Virginia 23456 Tty 711
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 6718

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.