How to use IMPORTRANGE in Google Sheets

Updated · DeskHowTo

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).

Jump to

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

  1. Open the source spreadsheet and copy its URL.
  2. Note the tab name and range (e.g. Sales!A1:G500).
  3. In the destination sheet, pick an empty anchor cell.

Allow access

  1. Enter =IMPORTRANGE("PASTE_URL","Sales!A1:G500").
  2. Wait for #REF! with Allow access — click it and confirm.
  3. Data should spill into neighbouring cells.

Filter the import

  1. Wrap: =QUERY(IMPORTRANGE("URL","Sales!A1:G500"),"select Col1, Col2, Col7 where Col7 > 100",1).
  2. Use Col numbers inside QUERY when the input is IMPORTRANGE.
  3. 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.

Sources checked: Google Help: IMPORTRANGE. Verified October 2026.