← All postsHow Do You Use IMPORTRANGE in Google Sheets?

How Do You Use IMPORTRANGE in Google Sheets?

Carlos GarciaCarlos GarciaPublished

How Do You Use IMPORTRANGE in Google Sheets?

Sooner or later a spreadsheet needs a number that lives in a different spreadsheet. The sales figures are in one file, the summary your manager opens is in another, and copying between them by hand lasts exactly until the first week nobody remembers to do it.

Google Sheets has one native function for that job, and it is IMPORTRANGE. It takes two arguments, pulls a range from another spreadsheet, and keeps it current without anyone touching it again.

It is also the function most likely to make you think you typed it wrong. The first thing a correct IMPORTRANGE formula does is return an error. That error is not a mistake in your syntax, and understanding why is most of what there is to learn here.

How Do You Use IMPORTRANGE in Google Sheets? The Short Answer

The formula is =IMPORTRANGE(spreadsheet_url, range_string). You give it the web address of the source spreadsheet and the range you want from it, both as text in quotation marks.

Google's own documentation gives this example verbatim: IMPORTRANGE("https://docs.google.com/spreadsheets/d/abcd123abcd123", "sheet1!A1:C10"). The first argument is the source file. The second is the tab name, an exclamation mark, and the range.

Type that into an empty cell and wait. After a few seconds you will see #REF! and a prompt reading "You need to connect these sheets. Allow Access." Click it once and the data appears.

That prompt is the whole security model of the function, and it only ever appears once per pair of files. From then on the import is live: Google states that IMPORTRANGE "automatically checks for updates every hour while the document is open."

What you end up with is a one-way mirror. Changes made in the source flow into the destination. Changes typed over the imported range in the destination do nothing at all, because those cells are the output of a formula and not data you own.

Want to know which of your pages are actually working? Claim your free SEO audit.

Free audit

Where do you stand in AI search?

A manual SEO + AI search audit of your site: how ChatGPT, Gemini, Perplexity and Claude read and cite it today, and what to fix first. Report within 48 hours, no credit card.

Get my free audit

Or have it all done: AI SEO services, $999 once

What Each IMPORTRANGE Argument Actually Does

Google describes the first argument, spreadsheet_url, as "The URL of the spreadsheet from where data will be imported." It has to sit inside quotation marks, or be a reference to a cell that holds the URL as text.

The second argument, range_string, is documented as "A string, of the format "[sheet_name!]range" (e.g. "Sheet1!A2:B6" or "A2:B6") specifying the range to import." The square brackets in that notation mean the sheet name is optional.

Leave the sheet name out and the formula imports from the first sheet in the source file. That is convenient and quietly fragile: if somebody reorders the tabs in the source, your import silently starts pointing at different data.

Both arguments accept cell references instead of literal text, which is why Google's second example is as short as IMPORTRANGE(A2,"B2"). Putting the URL in a labeled cell and referring to it is worth the extra row, because when the source file moves you change one cell rather than hunting every formula in the workbook.

Two Reference Styles Most People Never Try

The range string does not have to be a cell range. Google documents a table reference, IMPORTRANGE("https://docs.google.com/spreadsheets/d/abcd123abcd123", "DeptSales[Sales Amount]"), and a named range, IMPORTRANGE("https://docs.google.com/spreadsheets/d/abcd123abcd123", "Sales_total").

Both are more durable than A1:C10. A named range in the source moves when its rows move, so an import pointed at a name survives the kind of tidying that breaks an import pointed at coordinates. If you control the source file, naming the range you intend to share is the single cheapest piece of future-proofing available.

How Do You Write an IMPORTRANGE Formula, Step by Step

Step 1: Open the destination file and choose the top-left cell. IMPORTRANGE returns a block of cells, not one value, and it writes down and to the right from wherever you put it. Anything already sitting in that block will stop the formula with a message about overwriting existing data.

Step 2: Copy the source spreadsheet's URL. The full address from the browser bar is fine. Google's examples keep only the part up to the file ID, and both forms work.

Step 3: Type the formula. For example, =IMPORTRANGE("https://docs.google.com/spreadsheets/d/your-file-id", "Sheet1!A1:D200"). Both arguments are text, so both need quotation marks unless you are pointing at a cell.

Step 4: Allow access when the error appears. You will get #REF! and the "Allow Access" prompt. This is the expected result of a correct formula, not a failure. Click it.

Step 5: Check what actually arrived. Confirm the column order matches what you expected and that the last row of the source is present. A range typed as A1:D200 against a source that has grown to 400 rows will import cleanly and be wrong by half.

A detail worth knowing before you build anything on top of this: the imported block is read-only. You cannot sort it, you cannot filter it in place, and you cannot type a correction into it. If the destination needs to do more than display the data, wrap the import in another function or pull it into a helper tab and work from there.

Not sure which fixes will move the needle? Get your free SEO audit.

Why Does the First Formula Return #REF!?

Because permission is granted per pair of files, and Google is explicit about it: "Spreadsheets must be explicitly granted permission to pull data from other spreadsheets using IMPORTRANGE."

If you have access to the source yourself, the #REF! clears in one click. The prompt appears in the cell, you choose Allow Access, and the connection is made.

If you do not have access to the source, the outcome is different. Google's page shows a "You don't have permissions to access that sheet" message, and the steps it gives are to open the source URL in your browser, request access there, and wait for the owner to grant it. The owner is the only person who can.

Here is a gap worth planning around: Google does not say what the formula displays while that request is pending. You will be looking at an error with no way to tell from the cell whether your request was declined, is still in somebody's inbox, or was never delivered.

Which means the honest troubleshooting order for a stubborn #REF! is not about the formula at all. Check that you can open the source URL in a browser first. If you cannot, no amount of rewriting the range string will help.

What Granting Access Actually Grants

More than the range you typed. Google states that once access is granted, any editor on the destination file can use IMPORTRANGE to pull from any part of the source. The permission is file-to-file, not range-to-range.

That is a meaningful decision rather than a formatting step. If you share the destination with a contractor so they can see three summary columns, you have handed anyone who can edit that file the ability to import the source's other tabs as well.

The grant also outlives the formula. Access lasts until the user who granted it is removed from the source file, so deleting the IMPORTRANGE formula does not close the connection.

Google also notes that the access counts against the source sheet's 600-user share limit, which is the sort of thing nobody discovers until a large organization's files stop connecting for no visible reason.

One trap is worth stating on its own. If the source has "Disable options to download, print, and copy" turned on, new IMPORTRANGE formulas cannot be used to export its data — but Google is clear that formulas set up before that setting was enabled keep working. Turning the setting on locks the front door and leaves the existing pipes running.

And a documented absence: neither of Google's pages tells you how to revoke an IMPORTRANGE grant once it has been given. The Import functions page does describe a revoke workaround, but it is written for the other import functions, not this one.

Ready to see where you stand? Claim your free SEO audit.

When Does IMPORTRANGE Refresh?

On a schedule you do not control, which is usually fine and occasionally maddening. Google states the function "automatically checks for updates every hour while the document is open."

It also reloads when a document is first opened, or when it was opened within the past five minutes. And an update in the source causes every open receiving document to refresh, so a change made once propagates to everyone currently looking.

There is a less obvious behavior underneath that. Google states IMPORTRANGE waits for calculations on the source spreadsheet to finish before returning results — even when the range you asked for contains no calculation at all. A slow source file makes a trivial import slow, and nothing in the destination explains why.

Imports also chain. Data can flow from file A to file B to file C, and an update at A reaches C. Google advises against building cycles, and says only that "There's a delay between the change in the source sheet and the affected sheet" without putting a number on it.

The practical consequence: IMPORTRANGE is a near-live link, not a real-time one. If a decision depends on the figure being current to the minute, open the source. If it depends on the figure being current to the hour, the import is doing its job.

What Are the Real Limits?

There is exactly one number on Google's page. IMPORTRANGE "is capped at 10MB of received data per request." That is the only hard ceiling the documentation commits to.

Everything else is an absence rather than a guarantee. Google states no maximum number of IMPORTRANGE formulas per sheet, no row limit and no cell limit on what you can import.

The throttling is described but never quantified. Google says "The limits are enforced on the creator of the document," and that the creator has to account for import usage across all of their open documents — a collaborator's edit can count against that quota too. No figure is given for what the quota is.

One rule does bite in a specific way. A #ERROR! appears if the formula references a volatile function, and Google's text reads: "This function is not allowed to reference a cell with NOW, RAND, or RANDBETWEEN." The ban covers direct and indirect references, so a cell three formulas downstream of a RAND counts. TODAY is the stated exception, because it updates at most once a day.

The workaround Google suggests is to copy the volatile result and use Paste special as Values only, which turns the moving number into a fixed one the import will accept.

Worth listing plainly, because each of these is something you might reasonably expect to find documented and will not:

  • No maximum number of IMPORTRANGE formulas per file or per account.
  • No row or cell limit, only the 10MB-per-request data cap.
  • No stated numeric quota for the import throttle.
  • No refresh delay figure for chained sheets.
  • No #N/A or other named error for a missing tab, a missing range, or a malformed URL.

Where Google's Own Documentation Disagrees With Itself

The two pages that cover this function do not fully match, which is worth knowing before you trust either one as complete.

The volatile-function ban is the clearest case. The IMPORTRANGE page names NOW, RAND and RANDBETWEEN. The Import functions page names NOW(), RAND(), RANDARRAY() and RANDBETWEEN(). RANDARRAY is on one list and absent from the other, and neither page acknowledges the difference. Treat it as banned.

The traffic-error wording is stranger. The error text quoted on the IMPORTRANGE page about data loading taking a while names IMPORTHTML, IMPORTDATA, IMPORTFEED and IMPORTXML — and not IMPORTRANGE, despite appearing on the IMPORTRANGE page.

The pattern repeats on the companion page. Its User Notifications, Usage Limits and Data Freshness sections all enumerate the other four import functions and leave IMPORTRANGE out, so whether those sections apply to it is left for the reader to guess.

And one question the documentation does not touch at all: neither page says whether IMPORTRANGE can read an Excel file or a CSV. Both refer only to a "spreadsheet". CSV and .xlsx appear in the descriptions of IMPORTDATA and IMPORTXML, not this function. If you need a live link out of a file sitting in OneDrive, the documentation offers no answer, which in practice means do not plan on it.

Neither page carries a last-updated date. Neither carries a deprecation notice either, so the function is current — it is simply documented in two places that were evidently maintained separately.

IMPORTRANGE vs the Alternatives

Pick by whether you need a live link or a copy, because that single question eliminates most of the options immediately.

File then Import makes a copy. It is the right tool for a one-off transfer and the wrong one for anything that needs to stay current, because the moment the import finishes the two files start drifting apart.

Copy and paste is fine for a handful of cells and nothing more. It carries no connection, no refresh and no permission trail.

For larger loads, Google's own page points elsewhere: Apps Script and Connected Sheets are both suggested as alternatives. Connected Sheets in particular is the honest answer when the data is big enough that a 10MB-per-request cap is a real constraint rather than a theoretical one.

And the best practices Google lists are about restraint rather than tooling: limit the number of receiving sheets, limit how long your import chains get, and condense the data in the source before importing it. A source tab that has already been summarized to forty rows is a better thing to import than a raw tab of forty thousand.

The verdict is narrow and useful. IMPORTRANGE is the right choice when you need a live, one-way link between Google Sheets files, the volume is modest, and you are comfortable granting file-level access between them. Outside those conditions — Excel sources, two-way sync, real volume, or tight permissions — something else is doing the job better.

See exactly what is holding your site back. Claim your free SEO audit.

Final Thoughts

IMPORTRANGE is a two-argument function with a permission model bolted to the front of it, and almost every problem people have with it is the permission model rather than the syntax. The #REF! is the feature announcing itself.

What the documentation does not say is as worth carrying away as what it does. One cap of 10MB per request, no row limit, no formula count, no quota figure, no revoke procedure, and no word on whether an Excel file can ever be a source. Build accordingly: keep the chains short, name the range in the source, put the URL in a cell, and remember that granting access opens the whole file and keeps it open.

If the data you are trying to reach started life in Excel rather than in Sheets, the sequencing matters, and we covered the conversion routes separately in how to import data from Excel to Google Sheets.

Want this done for you?

SEO Stuff gets businesses cited by ChatGPT, Gemini, Perplexity and Claude, and ranking in Google. Start with the free audit, a call, or the package.

See where you stand

A free, manual SEO + AI search audit of your site, with a report within 48 hours. No credit card, no sales call.

Get my free audit

Talk it through

A free 15-minute call with the founder about whether AI search is a meaningful opportunity for your business.

Free strategy call

Have it done

The Done-For-You Package: audit, 10 pages of content, 3 DR50+ placements, dashboard. $999 once, delivered in 21 business days.

See the package