Back to Blog

Why IMPORTRANGE Is Not Working: Errors and Fixes in 2022

Let’s say you opened your spreadsheet and found out that all your IMPORTRANGE formulas were not working? The previously imported data disappeared and refreshing won’t help get it back. Many Google Sheets users have already suffered from this known IMPORTRANGE drawback. To avoid it, you’d better use an alternative solution, which turns your spreadsheet into a sort of relational database. We’ll show you how to do this a bit later. But for now, let’s troubleshoot your IMPORTRANGE formula and fix the current error.

Common IMPORTRANGE errors

The common IMPORTRANGE errors are #ERROR! and #REF!. You can either read how to fix them or watch the video tutorial on IMPORTRANGE function by Railsware Product Academy, or do both. It’s up to you 🙂

IMPORTRANGE #ERROR! – Formula parse error

It’s kid’s stuff! Formula parse error means that you’ve made a mistake in the IMPORTRANGE formula syntax.

How to fix

Verify the formula syntax. Make sure to also validate the ID of the spreadsheet, as well as the sheet name specified in the range. These are the most common reasons for the formula parse error.

IMPORTRANGE #REF! – Permission error

This error states that “You don't have permissions to access that sheet.” In most cases, this means that you’re trying to import data from an unshared Google Sheets doc that is not stored on your Google Drive. 

How to fix

Share the source spreadsheet with the owner of the target spreadsheet or make the file shareable with “Anyone with the link.

IMPORTRANGE #REF! – Allow access

This is more of a warning than an error. When you import a range from an unshared Google Sheets document stored on your Google Drive, IMPORTRANGE will require you to connect the source and the target sheets.

How to fix

Click the Allow access button to connect the sheets.

IMPORTRANGE #ERROR! – Result too large 

You’ll see this error when you’re importing too many cells. Unfortunately, the exact amount of cells you can import with IMPORTRANGE is undisclosed. In our example, we tried to import 60 columns and 6000 rows (360,000 cells). After we decreased the data range to 4300 rows (258,000 cells), the IMPORTRANGE formula worked. 

How to fix

Split the data range into two or more pieces, either vertically (by rows) or horizontally (by columns). Nest IMPORTRANGE formulas for each piece within the ARRAYFORMULA function as follows:

For horizontally split pieces (use commas between IMPORTRANGE formulas):


For vertically split pieces (use semicolons between IMPORTRANGE formulas):


For example, here is a failed IMPORTRANGE formula:


We split the data range "Data!A:BH" by columns into "Data!A:AM" and "Data!AN:BH" and applied the following formula:

=arrayformula({importrange("1bS7FGBbA7nInZJ2VBMaPxqf5B35RXpn-Z3vEcHlTwQo", "Data!A:AM"),importrange("1bS7FGBbA7nInZJ2VBMaPxqf5B35RXpn-Z3vEcHlTwQo", "Data!AN:BH")})

IMPORTRANGE #REF! and frozen formulas 

This glitch is well known among Google Sheets users. Yesterday, your IMPORTRANGE formulas worked well. Today, they return #REF! and seem to be broken for no reason. 

It happens randomly and sometimes fixes itself. For many years, Google has failed to find a stable solution to get rid of this ongoing issue with IMPORTRANGE. 

How to fix

There are many approaches to fixing this issue:

  • Hard refresh of the sheet and/or browser
  • Re-adding the IMPORTRANGE formula to the same cell (use the Google Sheets shortcuts Ctrl+X and then Ctrl+V or clear the cell and use Ctrl+Z to restore it)

The sheet will reattempt the data import again and again automatically.

  • Use the =now() trick:
    • Insert a NOW formula (=now()) in a random cell of the source and target spreadsheets
    • Insert an IMPORTRANGE formula that references the NOW formula of the other spreadsheet
    • Go to File => Spreadsheet settings => Calculation and select Recalculation “On change and every minute
  • Split large chunks of data into pieces using ARRAYFORMULA + IMPORTRANGE, just like with Error! Result too large

If you know other solutions/approaches to dealing with IMPORTRANGE #REF!, please share them with us to include in the article. 

If you need more information about this function, check out our IMPORTRANGE Tutorial.

How to fix all IMPORTRANGE errors at once: A peace of mind solution

The best way to fix IMPORTRANGE fails is to avoid them. Let’s say you have 100 source sheets from which you import data to 30 sheets using IMPORTRANGE formulas. From the target sheets, you import data to another 10 sheets again with IMPORTRANGE. If all these formulas are stuck, you will face issues with troubleshooting and fixing them! 

IMPORTRANGE is a function, and it takes some time to process calculations, which slows down the general performance of a spreadsheet. Instead, you can use the IMPORTRANGE alternative – Google Sheets importer. It is free of the mentioned IMPORTRANGE performance issues, since no calculations are performed in the spreadsheet. It also pulls the static data and saves it in your spreadsheet, just in case anything goes wrong.

To set up the Google Sheets importer, you need to use, a solution to import data from third-party data sources such as spreadsheets, CSV files, and numerous apps. It is available as a web app and a Google Sheets add-on. For the latter, you’ll need to install the add-on from the Google Workspace Marketplace.

Import data with the Google Sheets importer

Sign up to, click “Add new importer” and give a title to your first importer.

Now, complete the following steps:

Set up your data source

  • Choose Google Sheets as a source app from the list.
  • Connect to your Google account or pick one from the drop-down list if you’ve already connected some.
  • Select a file on your Google Drive to transfer data from.
  • Select one or several sheets to export data.
    • If you want to import and concatenate data from multiple sheets, enter their names each in a new line.. To pull data from multiple sheets into one, make sure that the column headers are identical across all sheets that are going to be merged.
  • Click “Jump to Destination Settings” if you’re okay that the entire data set will be imported from your sheet (s). However, you can choose a range in the spreadsheet you want to export data from, i.e. A1:Z9. To do this, click “Continue” and specify the range in the optional field. 

Set up your data destination

  • Choose Google Sheets as the destination application you want to save data to.
  • Connect to your Google account. 
  • Select a file on your Google Drive to transfer data to. 
  • Select an existing sheet, or enter a name to create a new one. 
  • If you want to change the first cell where to import your data range, specify your value in the Cell address field. The A1 cell is set by default. 
  • Choose the import mode for your data: you can replace your previous information or append new rows under the last imported entries
  • Toggle on the Last updated column feature, if you want to add a column to the spreadsheet with the information about the last date and time refresh.

You can run the import right away if you click “Save and Run“. If you want to automate data import on a schedule, toggle on the Automatic data refresh and customize the schedule.

Set up schedule

  • Select Interval (from 15 minutes to every month)
  • Select Days of the week
  • Select Time preferences
  • Schedule Time zone

In the end, click Save & Run and welcome your data to the spreadsheet. 

IMPORTRANGE or Which is better?

You’d better say NO to IMPORTRANGE and YES to if:

  • You import data recurrently
  • You import huge amounts of data
  • You import data from other sources like CSV, Pipedrive, etc.
  • It’s crucial for you to have access to data no matter what
  • You’re already tired of IMPORTRANGE issues

In all other cases, you can go with IMPORTRANGE easily because it’s a good function, though not reliable at all. Make the right choice and good luck with your data!

Back to Blog

Comments are closed.

Access your data
in a simple format for free!

Start Free