2.4 C
London
Friday, December 20, 2024
HomeSoftware TutorialsGoogle SheetsGoogle Sheets: Use IMPORTRANGE Within Same Spreadsheet

Google Sheets: Use IMPORTRANGE Within Same Spreadsheet

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the IMPORTRANGE function in Google Sheets to import data from another spreadsheet.

However, if you would like to import data from one sheet to another sheet within the same workbook, there is no need to use the IMPORTRANGE function.

Instead, it’s much easier to use the QUERY function.

For example, you can use the following syntax to import the cells in the range B1:B9 from a sheet called assists into your current sheet:

=QUERY(assists!B1:B9)

This is much more efficient than using the IMPORTRANGE function and typing out the URL where the sheet is located just to import the data.

The following example shows how to use this syntax in practice.

Example: Using QUERY to Import Data from One Sheet into Another Sheet

Suppose we have the following sheet called points that contains information about the points scored by basketball players on various teams:

And suppose we have another sheet within the same workbook called assists that contains information about the assists made by the same basketball players:

We can type the following formula into cell C1 of the points sheet to import the values in the range B1:B9 from the assists sheet:

=QUERY(assists!B1:B9)

The following screenshot shows how to use this syntax in practice:

Notice that we’re able to successfully import the values from B1:B9 in the assists sheet into the points sheet by using the QUERY function.

Since the data that we were interested in importing was located within the same workbook, there was no need to use the IMPORTRANGE function.

Additional Resources

The following tutorials explain how to perform other common tasks in Google Sheets:

Google Sheets: How to Use IMPORTRANGE with Multiple Sheets
Google Sheets: How to Use IMPORTRANGE with Conditions
Google Sheets: How to Filter IMPORTRANGE Data

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories