I have a monthly spreadsheet that relies on figures from the previous month. I'd like to import these values dynamically rather than cutting and pasting them. Is this possible? How do I do it?
|
|
From http://docs.google.com/support/bin/answer.py?hl=en&answer=98757
"key" is of course the string in the URL for the spreadsheet that matches to the I just tested it by creating two spreadsheets. In cell A1 of the first I put a string. In cell A1 of the second I put (The format of the function may depend on your locale. In France the formula is not valid with a comma, so you'll need to be replace it with a semi-colon: |
|||||
|
|
FYI if you want to reference another sheet within that other spreadsheet, the sheet name should NOT be re-quoted: use
instead of
|
||||
|
|
|
In the new interface, you should simply be able to type |
|||||||||||||
|
|
I found this syntax using Insert -> Define new range RANGE FOR REFERENCING OTHER SPREADSHEET:
etc. Then you can use it as:
|
|||||||
|
|
here is how i did it (reimplemented 'importrange()'):
function REMOTEDATA(inKey, inRange) {
var outData;
var ss = SpreadsheetApp.openById(inKey);
if (ss) {
outData = ss.getRange(inRange).getValues();
}
return outData;
}
=SUM(REMOTEDATA("key", "SheetName!A1:A10"))
"key" is the key of the document, you find it in the "key=xyz" parameter of the document url. the documentation for 'spreadsheet services' provides more information on the topic. |
|||||||
|
|
I did it very easy way by using Query for example I have 2 sheets ABC and XYZ and I want to import range from A1 to C30 from Abc into XYZ, click the cell where you want the range to be appear and write this:
Note: If your sheet name have spaces then of course you write this:
|
|||||
|
protected by Community♦ Dec 30 '12 at 23:11
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.