Another ease(?) spread sheet problem

Posted on 2013-05-13
Medium Priority
Last Modified: 2013-05-13
I want to do an import from =ImportRange in a Google sheet from another Google sheet. The objectId from where I want the data to come from  (the id of the sheet) is located in a local cell in the same sheet. So how do I do that?

I should look something like this:
=ImportRange(B5; "Sheet2!A2")

B5 is where I have the objectId ... 0AsgQUOY9mqdG5H.........
Question by:mdoland
  • 2
  • 2

Accepted Solution

worm-getter earned 2000 total points
ID: 39161406
comma vs. semi-colon, check it, you are probably correct, but it is a common error that is often over-looked.

read this link:


good luck.

Author Comment

ID: 39161430
Thanks for the try. However, ";" is consistent with my local since "," is used instead of "." in english.

Expert Comment

ID: 39161561
To employ ImportRange function one should be able to access the spreadheet to be used with ImportRange as an Editor, Owner  or Viewer.  The spreadsheet doesn't need to be published, as only the sharing options determine access rights.
E.g. take the following URL of a spreadsheet:
The key value to be used in ImportRange is the code part pPbcejygf5gah0jNsqV-lVQ
To access this spreadsheet using ImportRange you would use a formula like this:
=ImportRange( "pPbcejygf5gah0jNsqV-lVQ" ; "A2" )
Note the second parameter can contain a cell or range on the first sheet (for which no sheet name needs to be specified), a range name, or a sheet name + cell or cell range.
E.g. using a range name defined for the source spreadsheet:
=ImportRange( "pPbcejygf5gah0jNsqV-lVQ" ; "MyRange" )
or sheet name + cell or cell range:
=ImportRange( "pPbcejygf5gah0jNsqV-lVQ" ; "Read This 1st!A2:A2" )
Note that sheet names in ImportRange should be specified without single quotes around the sheet name! This unlike how sheet references can be used within the same spreadsheet (i.e. ='Read This 1st'!A2:A2 ).

Author Closing Comment

ID: 39161706
Well, it already worked but I didn't see it since the referenced cell was empty... :)

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
I tried to use the SharePoint app to Import a Spreadsheet and import an Excel sheet into a Team site made in SharePoint 2016. But that just resulted in getting an error message 'Unknown Error'...
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question