How to use IMPORTRANGE in Google Sheets
In Google Sheets (verified 2026-10-24), enter =IMPORTRANGE("https://docs.google.com/spreadsheets/d/FILE_ID","Sheet1!A1:D100") in the destination file. The first time, click Allow access when Sheets prompts you.
Wrap with QUERY to filter the import: =QUERY(IMPORTRANGE(...),"select Col1, Col3 where Col3 > 0",1).
Applies to Google Sheets in the browser. Both files must be reachable with your Google account. Owners can revoke access later in the source sharing settings.
Import a range from another spreadsheet
Copy the source URL and range
- Open the source spreadsheet and copy its URL.
- Note the tab name and range (e.g.
Sales!A1:G500). - In the destination sheet, pick an empty anchor cell.
Allow access
- Enter
=IMPORTRANGE("PASTE_URL","Sales!A1:G500"). - Wait for #REF! with Allow access — click it and confirm.
- Data should spill into neighbouring cells.
Filter the import
- Wrap:
=QUERY(IMPORTRANGE("URL","Sales!A1:G500"),"select Col1, Col2, Col7 where Col7 > 100",1). - Use Col numbers inside QUERY when the input is IMPORTRANGE.
- Avoid circular imports (A imports B which imports A).
Our take: import summaries, not whole workbooks
Pull the columns you need, not entire archives. Document who owns the source. For one-off copies, File > Make a copy is simpler than a live link.
If it fails
- #REF! permission: click Allow access while signed into an account that can view the source.
- Loading forever: huge ranges — narrow columns/rows; avoid volatile whole-column refs.
- #N/A or blank: tab name typo or range moved — update the string.
- Stale values: Sheets caches briefly; edit a cell or wait for refresh.
Frequently asked questions
What is IMPORTRANGE?
A function that pulls a cell range from another Google Spreadsheet you can access.
Why do I see Allow access?
Sheets needs a one-time permission link between the two files.
Can I import from Excel files?
Upload/convert to Sheets first, or use connected Excel workflows separately.
IMPORTRANGE vs sharing the tab?
Import keeps a live formula copy; sharing lets people open the source directly.
Does IMPORTRANGE count against quotas?
Heavy use can hit Sheets limits — keep ranges modest.