How To Get Data From Another Sheet In Google Sheets

Google Sheets is a versatile platform that allows users to do more than just basic data entry. It is packed with features and formulas that can make your life a lot easier. One such feature is the ability to pull data from one sheet to another. This can be quite useful when you are dealing with multiple datasets. Today, we’re going to learn how to do just that.

Using the IMPORTRANGE Formula

The IMPORTRANGE formula is the simplest and most common method of pulling data from one sheet to another in Google Sheets.

The syntax for the IMPORTRANGE formula is as follows:

=IMPORTRANGE(“spreadsheet_url”, “range_string”)

Where:

  • “spreadsheet_url” is the URL of the spreadsheet you want to pull data from.
  • “range_string” is the cell range in A1 notation.

Here’s an example of how to use the IMPORTRANGE formula:

    =IMPORTRANGE("https://docs.google.com/spreadsheets/d/abcd123abcd123", "Sheet1!A1:C10")
    

This formula will import cells A1 to C10 from Sheet1 of the specified Google Sheets document.

Using Query with IMPORTRANGE

If you want to pull specific data that meets a certain criteria, you can use the QUERY function together with the IMPORTRANGE function.

The syntax for using QUERY with IMPORTRANGE is as follows:

=QUERY(IMPORTRANGE(“spreadsheet_url”, “range_string”), “query_string”)

Where:

  • “spreadsheet_url” and “range_string” are the same as above.
  • “query_string” is the SQL-like query to filter the imported data.

Here’s an example:

    =QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/abcd123abcd123", "Sheet1!A1:C10"), 
    "select Col1, Col2 where Col3 > 5")
    

This formula will import cells A1 to C10 from Sheet1 of the specified Google Sheets document, but will only display rows where the value in column C (Col3) is greater than 5.

Note:

Before you can pull data from another sheet, you must first give Google Sheets permission to connect to that sheet. The first time you use the IMPORTRANGE formula, you’ll see a #REF! error. Hover over the cell, click on “Allow access”, and the data will be pulled in.

I hope this tutorial has been helpful in teaching you how to get data from another sheet in Google Sheets. Happy data crunching!