0% found this document useful (0 votes)
196 views6 pages

Vlookup, Importrange Formulas

This document provides instructions on how to use the IMPORTRANGE and VLOOKUP functions in Google Sheets. It explains that IMPORTRANGE allows you to import data from other spreadsheets, including those owned by other users, and gives examples of its uses. VLOOKUP allows you to search for values in a table and return data from other cells; the document demonstrates how to perform VLOOKUPs within and between different spreadsheets. Step-by-step instructions are provided for using these functions to merge and reference data across Google Sheets.

Uploaded by

Ibrahim Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views6 pages

Vlookup, Importrange Formulas

This document provides instructions on how to use the IMPORTRANGE and VLOOKUP functions in Google Sheets. It explains that IMPORTRANGE allows you to import data from other spreadsheets, including those owned by other users, and gives examples of its uses. VLOOKUP allows you to search for values in a table and return data from other cells; the document demonstrates how to perform VLOOKUPs within and between different spreadsheets. Step-by-step instructions are provided for using these functions to merge and reference data across Google Sheets.

Uploaded by

Ibrahim Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

7/3/2020 TeamLease Services Limited Mail - Learn Google Sheets - Vlookup, IMPORTRANGE

Pathan Ibraheem Khan <[email protected]>

Learn Google Sheets - Vlookup, IMPORTRANGE


google champions <[email protected]> 7 April 2019 at 09:09
To: [email protected]

Import data from other spreadsheets using

IMPORTRANGE
IMPORTRANGE allows you to import data from any other Google Sheet.

It doesn’t have to be on your Google Drive, either; it could belong to someone else (note: you
will need permission to access the sheet if this is the case!)

Syntax: =IMPORTRANGE(spreadsheet_ID, range_to_import)

Here are a few use cases:

Create client‐facing sheets that piggyback off your “master” spreadsheet;


Search and cross reference data across multiple Google Sheets (i.e. using
IMPORTRANGE combined with VLOOKUPs);
Pull in data from another sheet for use in a data validation;
Pull in contact data from a “master” spreadsheet using VLOOKUPs

Let’s take a look at an example of IMPORTRANGE in action.

https://mail.google.com/mail/u/0?ik=68215f2b9b&view=pt&search=all&permmsgid=msg-a%3Ar-7865453928465051192&simpl=msg-a%3Ar-7865… 1/6
7/3/2020 TeamLease Services Limited Mail - Learn Google Sheets - Vlookup, IMPORTRANGE

Let’s assume that I wanted to use this client list in another Google Sheet — I can import this
entire data range using the following formula:

=IMPORTRANGE("SPREADSHEET_KEY","'SheetName'!A2:A")

Merge multiple data sets using VLOOKUP


VLOOKUP allows you to search a range using a search key—you can then return matching
values from a specific cell in said range.

Here are just a handful of potential use cases for this:

Merging data from multiple sources (e.g. merging a list of domains with
corresponding Ahrefs DR ratings from a separate sheet);
Checking if a value exists in another data set (e.g. checking for duplicates
across two or more lists of outreach prospects);
Pulling in email addresses (from a master database of contacts) alongside a list
of prospects.

How to Vlookup within a sheet


https://mail.google.com/mail/u/0?ik=68215f2b9b&view=pt&search=all&permmsgid=msg-a%3Ar-7865453928465051192&simpl=msg-a%3Ar-7865… 2/6
7/3/2020 TeamLease Services Limited Mail - Learn Google Sheets - Vlookup, IMPORTRANGE

= VLOOKUP( search_term, table_to_search, column_number,


FALSE )

Formula:
= VLOOKUP( C4, $I$3:$J$7, 2, FALSE )

I search for the name (1) in the search table (2) and return the data from
column 2 of the search table (3).

(The FALSE argument, the final piece of information in the VLOOKUP formula
means you want to do an exact match. 99.9% of the time you use a
VLOOKUP, you’ll want to use FALSE.)

How to Vlookup from a different sheet


In real-life spreadsheets, the main table and Lookup table often reside on
different sheets. To refer your Vlookup formula to another sheet within the
same spreadsheet, put the worksheet name followed by an exclamation
mark (!) before the range reference. For example:

=VLOOKUP(A2,Sheet4!$A$2:$B$7,2,false)

The formula will search for the value in A2 in the range A2:A7 on Sheet4,
and return a matching value from column B (2nd column in range).

https://mail.google.com/mail/u/0?ik=68215f2b9b&view=pt&search=all&permmsgid=msg-a%3Ar-7865453928465051192&simpl=msg-a%3Ar-7865… 3/6
7/3/2020 TeamLease Services Limited Mail - Learn Google Sheets - Vlookup, IMPORTRANGE

If the sheet name includes spaces or non-alphabetical characters, be sure


to enclose it in single quotation marks. For example:

=VLOOKUP(A2,'Lookup table'!$A$2:$B$7,2,false)

Vlookup Between Two Separate


Google Sheets
using two of the Google Sheets functions for this. No doubt one is the Vlookup and the

other is the Importrange. The function Importrange acts as the range in

Vlookup.

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

Suppose you have two Google Sheets files named as Test1 and Test2. Let’s see how to

do a vertical lookup in Test1 from Test2.

1st Apply Importrange formula between sheets

=IMPORTRANGE("<URL other sheet>";"Sheet1!A2:C")

Steps to Follow:

First copy the URL of the sheet Test1.

https://mail.google.com/mail/u/0?ik=68215f2b9b&view=pt&search=all&permmsgid=msg-a%3Ar-7865453928465051192&simpl=msg-a%3Ar-7865… 4/6
7/3/2020 TeamLease Services Limited Mail - Learn Google Sheets - Vlookup, IMPORTRANGE

Then enter this formula in Sheet2, in any cell.

=importrange("https://docs.google.com/spreadsheets/d/1QWnXBCOF9YKq5GoroET9kCCTy9_

wnhKysY5c6R5AJ6g/edit#gid=0","Sheet1!A1:K")

Please replace the URL with your copied URL. I have this formula in Cell C2. It returns

#REF! error.

You need to “Allow access”. Just point your mouse on Cell C2 and click “Allow access”

button.

Now to the formulas to Vlookup between two separate Google Sheets workbooks/files.

Apply Vlookup Formula

Double click on the Cell where our Importrange formula resides, and modify it as

follows.

=vlookup(2015,importrange("https://docs.google.com/spreadsheets/d/

1QWnXBCOF9YKq5GoroET9kCCTy9_wnhKysY5c6R5AJ6g/edit#gid=0","
Sheet1!A1:K"),2,false)

https://mail.google.com/mail/u/0?ik=68215f2b9b&view=pt&search=all&permmsgid=msg-a%3Ar-7865453928465051192&simpl=msg-a%3Ar-7865… 5/6
7/3/2020 TeamLease Services Limited Mail - Learn Google Sheets - Vlookup, IMPORTRANGE

Regards,
IT Services Team

https://mail.google.com/mail/u/0?ik=68215f2b9b&view=pt&search=all&permmsgid=msg-a%3Ar-7865453928465051192&simpl=msg-a%3Ar-7865… 6/6

You might also like