4/25/2025

how to import range in google sheets

IN SUMMARY

The IMPORTRANGE function in Google Sheets allows you to import data from one spreadsheet into another. It requires the URL of the source spreadsheet and the range of cells you want to import.

Basic Syntax

The spreadsheet_url is the URL of the source spreadsheet, and the range_string specifies the range of cells you want to import. Both arguments must be enclosed in double quotes.

=IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123/edit#gid=0", "Sheet1!A1:C10") imports cells A1 to C10 from Sheet1 of the specified spreadsheet.

The source spreadsheet must be shared with you, and you must have at least read access to import data from it. If you don't have access, the function will return an error.

Advanced Usage

You can use IMPORTRANGE in combination with the QUERY function to filter and manipulate the imported data. For example: =QUERY(IMPORTRANGE("url", "range"), "select Col1, Col2 where Col3 = 'Value'")

To import data from multiple sheets or ranges, separate them with a semicolon (;) within the IMPORTRANGE function. For example: =IMPORTRANGE("url", "Sheet1!A1:B10;Sheet2!C1:D20")

The imported data is static and won't update automatically when the source data changes. To update, you can either re-enter the formula or use a script to refresh the imported data periodically.

Limitations and Considerations

The IMPORTRANGE function can import up to 2 million cells of data. If the range you're trying to import exceeds this limit, you'll need to split it into multiple ranges.

Importing large amounts of data can slow down your spreadsheet's performance. It's recommended to import only the data you need and avoid unnecessary imports.

When you import data from another spreadsheet, you're essentially creating a link to that data. Be cautious when importing sensitive or confidential data, and ensure that the source spreadsheet is properly secured.

Want to automate your busy work in Google Sheets with AI?

Videos