Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
When IMPORTRANGE is used for the first time between two Google Sheets files, Sheets requires explicit permission before it will read data from the source spreadsheet. Until that permission is granted, every cell using that IMPORTRANGE returns #REF! with the message 'You need to connect these sheets'. This is a one-time authorization step per source spreadsheet URL.
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/WRONG_ID","Sheet1!A1:D100")=IMPORTRANGE("https://docs.google.com/spreadsheets/d/CORRECT_ID","Sheet1!A1:D100")Replaced the incorrect spreadsheet ID in the URL. After fixing the URL, click the cell and click 'Allow access' to complete authorization.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Stop hunting errors by hand.
Upload your spreadsheet and the Auditor flags every #REF! and broken formula at once — or paste this one formula and get the fix explained.
Re-authorization is required when the source file's sharing settings tighten, when the destination file is copied, or when the source URL changes. Click Allow access again in those situations.
No. IMPORTRANGE requires at least viewer access to the source spreadsheet. Ask the owner to share the file with your Google account.
No. IMPORTRANGE is a Google Sheets-only function. In Excel, use Power Query or a direct workbook link to pull data from an external file.
Imports a cell range from another Google Sheets spreadsheet using its URL and range string.
How-toPull live data from a different Google Sheets file using IMPORTRANGE, or replicate the pattern in Excel with Power Query.
Error fixIMPORTRANGE not working in Google Sheets? Fix wrong URLs, sheet name typos, range errors, and access issues step by step.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: