Google Sheets IMPORTRANGE: How It Works, Where It Breaks and a Central Data Portal
IMPORTRANGE pulls a range from another Google Sheets file: =IMPORTRANGE("source URL", "Sales!A2:H"). The first time, the cell shows #REF! and someone must click Allow access. The data is not live: Google’s calculation settings page says 30 minutes, its IMPORTRANGE page an hourly check while the file is open. Access lasts until the person who granted it is removed from the source. With a few files this works. As branches multiply, it breaks in three places: a column inserted at a branch shifts the data at head office, a branch silently drops out when the person who granted access leaves, and nobody can say who sees what. Ways out: a Summary tab in each branch file, an Apps Script nightly copy, Google Forms, and a central portal when row-level permissions are needed.
Below: correct use, a fictional 12-branch month losing or shifting 831 of 5,812 rows, the in-sheet options and where a portal begins.
How do you use IMPORTRANGE?
IMPORTRANGE takes two arguments: the source spreadsheet URL and a text string such as "sheet name!range". According to Google’s IMPORTRANGE page (read on 2026-10-31), both can be typed in quotes or taken from a cell; without a sheet name, the first sheet is read. Table references and named ranges also work. In comma-separator locales:
=IMPORTRANGE(B2, "Sales!A2:H")
With the URL in B2, the formula copies down a twelve-branch list.
Allow access. The first time a destination pulls from a source, Google asks for permission. If you own the source, hover over #REF! and click the button in the “You need to connect these sheets” message; if not, request access from the owner. The same page adds:
- Access stays active until the user who granted it is removed from the source.
- It counts towards the source’s 600-user sharing limit.
- If downloading, printing and copying are disabled on the source, new IMPORTRANGE formulas cannot pull data; existing ones keep working.
How often does the data refresh?
Google gives two intervals. The calculation settings page (2026-10-31) lists “ImportRange: 30 minutes”. The IMPORTRANGE page says updates are checked hourly while the document is open, a change in the source reloads open destination files, and data reloads when a file is first opened or was opened in the past five minutes. Simply reopening the file does not trigger a reload; deleting the cell and rewriting the same formula does.
My recommendation: plan with one hour and never call the head-office figure “live”. Each chain link adds delay; Google advises limiting IMPORTRANGE chains.
Limits and error messages
From Google’s IMPORTRANGE page and its Drive file limits page (2026-10-31):
| What you see | What it means | What to do |
|---|---|---|
#REF! with “Allow access” | Connection not approved yet | The source owner grants access |
| “Loading…” | Import quota exceeded; counted against the document creator across all import functions in open files, collaborators’ edits included | Reduce frequently changing arguments |
#ERROR! | The formula refers, directly or not, to a cell with NOW, RAND or RANDBETWEEN (TODAY excepted) | Paste the result as values only |
| Slow data | The whole range downloads; 10 MB cap per request | Shrink the range, total it in the source |
A spreadsheet holds up to 20 million cells or 100 MB. Google’s performance page (2026-10-31) says IMPORTRANGE goes over the internet even when both files share an owner and Drive folder, and shows with SUM(A:A) versus SUM(A1:A10) that an open range reads more rows. Applying that to an IMPORTRANGE range is my inference, and it hides a trap: close the range for speed, and rows past its end never arrive. The 38 missing rows below come from this.
Example: 12 branch files, 27 IMPORTRANGE formulas, 831 problem rows at month end
The example is fictional. A spare-parts distributor has 12 branches, each with its own Google Sheets file and three tabs: Sales, Stock and the sales team’s Bonus. Sales has eight columns: Date, Document no, Customer code, Part code, Quantity, Unit price, Amount, Status (A:H).
The head-office file has one tab per branch with two IMPORTRANGE formulas (Sales and Stock): 24 in all, wrapped in IFERROR(..., "") so no error shows. A summary tab adds up the branch tabs. A management summary file pulls from head office with 3 more: 27 formulas and a two-link chain (branch → head office → management summary). Head office has seven editors. Written at different times, 8 branch formulas use the open range Sales!A:H and 4 the closed Sales!A2:H1500, chosen to “speed things up”.
At month end the branches have entered 5,812 sales rows. What reached head office:
| Event | Branch | Rows | Cause |
|---|---|---|---|
| Closed range overflowed | Branch 03 | 38 missing | 1,537 rows; A2:H1500 takes 1,499 |
| Column inserted | Branch 07 | 431 shifted | “Discount” added between Unit price and Amount |
| Access granter left | Branch 11 | 362 missing | Regional accountant removed from the file |
| After the summary copy | Branches 02, 12 | 23 not in summary | Entered 17:40–18:00, summary copied at 18:05 |
The first three rows make 831 (38 + 431 + 362); the fourth is at head office, missing only from the summary copy.
Head office received 5,412 rows, 4,981 of them correct: 85.7% of the month. 831 rows (14.3%) never arrived or arrived in the wrong column. Nobody noticed, because:
- Branch 11 returned an error,
IFERRORturned it into a blank, and the summary ran on eleven branches. - Branch 07’s rows arrived, but “Amount” held discounts and “Status” held amounts. The summary only added rows with Status “Delivered”, so Branch 07 showed zero.
- Branch 03’s loss was its last 38 rows, easy to miss.
The management summary’s 5,389 rows were also 23 short of head office: two branches’ last-minute entries had reached head office but not the second link before the copy. On month-end day, head office showed “Loading…” on opening; Google ties that message to the import quota, but that day’s cause is uncertain.
When does IMPORTRANGE break?
IMPORTRANGE stays reliable while source files are few, columns are fixed and access sits with one person; it breaks when any of these fails.
Column shift after an insert at a branch
The IMPORTRANGE range is a quoted text string; when a column is inserted in the source, it does not update itself like a normal cell reference (my inference, listed in the box below). After Branch 07’s insert, A:H still read eight columns, Date to Amount: Discount took G, Amount moved to H and Status (I) fell outside. Because the formula rereads the whole range on each refresh, every row of the month shifted, not only those entered after the insert.
The cheapest safeguard is a written rule: no column inserts in branch files; new fields go on the far right, where A:H never sees them.
When the person who granted access leaves
Google says access lasts until the granting user is removed from the source, so the connection ends when that person leaves the file. Google does not say which error appears; I expect #REF!. I recommend granting access from the company account that owns the files and is unlikely to close. Do not hide the error with IFERROR(..., ""); use IFERROR(..., "NO ACCESS") so the missing branch shows in the summary.
Every editor of the destination can read the whole source
Once access is granted, any editor of the destination can pull any part of the source (Google). Here, the seven head-office editors can read the eleven connected branches’ Bonus tabs with a new formula. I explain the safe direction, with what protection does not prevent, in the Google Sheets cell protection guide. In short: move Bonus to a separate file only finance can open.
What options do you have inside the spreadsheet?
There are five in-sheet routes; each closes one failure point and adds a different limit, and none solves row-level visibility.
| Route | When | Limit |
|---|---|---|
| Simplify IMPORTRANGE | Few branches, fixed columns, one editor | Access tied to a person; editors read all |
| Filter with QUERY | Head office needs only some columns and rows | Columns chosen by position; shifts persist |
| One main file + Forms | Branches only add new records | Branch match needs checking; past entries hidden by default |
| Apps Script nightly copy | Data may lag a day | Quotas, upkeep, tied to its creator |
| Connected Sheets / BigQuery | Data already in BigQuery, analysis needed | Not data entry; needs a Google Cloud project |
Simplify IMPORTRANGE
Google advises totalling in the source and importing the result. Give each branch file a Summary tab and import that, not raw rows. Break the chain: make the management summary a tab inside the head-office file, at the cost of management seeing all branch data there. Google advises limiting receiving files, as each reads the source. A second-link file assumes the first is current, with nothing showing whether it is (my inference). Add the three rules above.
Filter with QUERY
QUERY filters imported data at head office:
=QUERY(IMPORTRANGE(B2, "Sales!A2:H"), "select Col1, Col4, Col7 where Col8 = 'Delivered'", 0)
Google’s QUERY page (2026-10-31) says it accepts Col1 and A, B notation; in a mixed-type column the majority type wins and others count as empty. Two limits: IMPORTRANGE still downloads the whole range, filtering comes after; and Col7 means the seventh column, so an insert like Branch 07’s makes QUERY read the wrong one too. Putting the QUERY in the branch file’s Summary tab shrinks the download and head office sees only the needed columns; column order still sits inside the query text, so shifts persist.
One main file with Google Forms
Branches fill in one Google Form and responses land in one spreadsheet at head office. IMPORTRANGE and the chain disappear; keep the response file closed to branches and none can add a column. The limits lie elsewhere. The form does not tie the chosen branch to the respondent’s account: Forms can collect verified emails, but you check which account belongs to which branch. By default a branch cannot see its past entries; with “Allow response editing” on, it can edit its own. Sources: Google’s response collection and publishing pages (2026-11-01). Forms collect new records; they do not carry a continuously updated table such as stock.
Nightly copy with Apps Script
A time-driven trigger opens the twelve files each night, reads rows by header name, writes them to head office as values and logs a row count and error note per branch. Header names stop Branch 07 shifting; reading to the end stops Branch 03 overflowing; if Branch 11 cannot be opened, the script writes “0 rows, no access” rather than staying silent. Here, that closes 469 of the 831 problem rows (431 shifted + 38 overflow); Branch 11’s 362 rows wait behind a visible error.
Limits, from Google’s Apps Script quotas page (last updated 2026-09-03, read on 2026-10-31): one execution runs up to 6 minutes; triggers get 90 minutes a day on a personal account, 6 hours on Google Workspace. Per the installable triggers page, timing is slightly randomised (a 9 a.m. trigger runs between 9 and 10 a.m.) and a trigger always runs under its creator’s account. Dependence on one person moves to whoever set up the script. Data lags a day, and script upkeep is yours.
Connected Sheets and BigQuery
Connected Sheets lets a spreadsheet query large data held in BigQuery. Google’s getting started page (2026-10-31) lists Google Cloud access, permission on the BigQuery table and a BigQuery project with billing (without a billed project, a trial environment is offered); BigQuery data cannot be changed from the spreadsheet. The Drive limits page gives 200,000 rows for pivot tables and 500,000 rows or 5 million cells for extracts. It is an analysis route, not a way for branches to write data; consider it only if your data already lives in a warehouse.
Where does a central data portal begin?
A central data portal begins when the problem stops being about moving data and becomes a rule about who sees and changes which row; moving data can be solved inside the spreadsheet.
Decide from counts. Apply the in-sheet fixes first (Summary tab or nightly copy, column rule, company-account access, visible errors), then over at least two month-end closes, since one month can be chance (the example’s 831 is one month), count rows silently missing or shifted and rows corrected by hand after closing. Monthly manual corrections mean you need an audit log and closed-day lock. Separately, note “this branch must not see that” requests; that is a need, not a count, and one means you need row-level visibility.
Stay in the spreadsheet if silent errors are at zero, manual corrections do not recur monthly and it is fine for every head-office editor to see every branch, and for branches to see each other’s figures. A portal would then add a system and upkeep for a problem you do not have. If branches already enter data in an ERP branch module, use its reporting instead.
Consider a portal if any of these is on the table: a regional manager should see only the branches in that region; a branch should not change a closed day’s rows, or a reason should be kept when it does; bonus or cost should never reach the sales screen; who changed what, and when, should be answerable without trawling file history.
In the example, the nightly copy closes 469 rows and makes Branch 11 visible. Two things remain: seven editors can read connected branches’ Bonus tabs, and regional managers want only their own branches. If the company moves Bonus to a separate file and accepts that everyone sees every branch, it stays in the spreadsheet. If it insists on regional visibility, it needs a portal: in Google Sheets, viewing permission works at file level, so rows by region means one file per region and, again, IMPORTRANGE.
What can a portal include?
In the portal to be built, all twelve branches could write to one database; head office defines the fields, branches cannot insert columns, and IMPORTRANGE and the chain go away. Row permissions by branch, region and head office, a who-changed-what log, a closed-day lock and a reporting screen showing each branch’s latest data time can also be scoped; the branch-based data entry system page details the roles and locks.
These can be built to fit your needs, with the scope set out in writing at the first step. The overall service is on the turn your Excel into a web app page. The virtual server (VPS) can be opened in your company’s name; the data stays yours and exports to Excel or CSV at any time; small and medium-sized teams pay no per-user licence, as the cost is server plus maintenance; the source code sits in a repository you can access, with run instructions, a dependency list and known limitations.
The first consultation is paid. For a written scope, write through the contact page with: how many source files and IMPORTRANGE formulas there are, how many people edit the head-office file, and who must not see which branch.
Points I have not verified
Not stated clearly by Google, not tested in a real file:
- That the IMPORTRANGE range string never updates after a column insert in the source (my inference, as it is a text argument).
- Which error appears when the granting user is removed, and whether an
IFERROR-wrapped formula then shows a blank. - Whether a twelve-file nightly copy fits the 6-minute limit; it depends on file size, unmeasured.
- Whether an .xlsx file in Office editing mode works as an IMPORTRANGE source.
- Whether typing into the imported area breaks the formula (FAQ below).
Frequently Asked Questions
Can I write data back to the source file with IMPORTRANGE?
No. IMPORTRANGE only reads; a correction at head office does not travel back to the branch file, and typing into the imported area can break the formula. Correct the source; two-way writing can be set up with Apps Script or an application.
How does data from dealers who use Excel get into this setup?
Google’s page describes a spreadsheet URL as the source, so I recommend converting the dealer’s Excel file to Google Sheets format first. If a new Excel file arrives every month, so does the conversion; a portal with an upload step, or a nightly copy, then needs less manual work.
Do branches have to stop using Google Sheets when a portal arrives?
No, the move can be staged. At first branches can keep writing to their files, and the portal can be set up to read them and show each branch’s last successful import time. Which account the portal reads with, and who owns it, is agreed at the first step; read access on a personal account carries the same leaving-employee risk, so I recommend a company account. Which branch moves when is also set in the written scope.
How do I work?
Work-hour packages
Tell me about your business and what you need on WhatsApp or by phone; we agree on a work block of somewhere between 5 and 40 hours and I start doing what is needed. What you get is not a calendar window — it is net working hours spent directly on your business. I can use 40 hours working three days straight, or deliberately spread it out and finish it over a year — whatever the work calls for. I do not spend my time estimating how long something will take, I spend it doing the work; every hour I spend leaves a lasting result in your business. We keep going for as long as you find it useful.
Why not monthly?
Is 40 hours a week?
On a fixed monthly fee both sides are watching the wrong thing: you watch a fixed cost, the other side watches how many more contracts like this they can line up. Working by the hour puts us both in front of the same thing — the real value of the work that got done. I know not having an upfront answer to "how much will this cost in total?" is the natural cost of this model. But instead of paying a fixed fee for months to a setup that is not producing results, you only pay for the qualified time spent on your work — and you see exactly where that time went, start to finish. That is why my clients keep coming back.
