All answers I have reviewed say use IMPORTRANGE by referencing the "KEY=" in the URL of the source cell. I find no "KEY=" in the source URL. So I always receive a "parse error."
Google-sheets – How to import cell data from one workbook to a different workbook
google sheetsimportrange
Related Topic
- Google-sheets – Reverse lookup from Google Spreadsheets key
- Google-sheets – How to use IMPORTRANGE with a variable range-string pulled from a cell
- Google-sheets – Problem with IMPORTRANGE function in Google Sheets
- Google-sheets – What spreadsheets import from the spreadsheet
- Google-sheets – Using a single cell serving as an ID source for formulas to import data from
- Google-sheets – I am having trouble using indirect to access a cell in a different Google Spreadsheet
- Google-sheets – Problem with results of filter function from tabs that have no data yet
Best Answer
You can use the entire url:
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1QDCf2MDkN7eopuTT-EieQI39Bpc_Y6D-3EWefimpk/edit#gid=0", "A:A")
But just the spreadsheet id should also work:
=IMPORTRANGE("1QDCf2MDkN7eopuTT-EieQI39Bpc_Y6D-3EWefimpk", "A:A")
More generally the google sheets url is structured like this:
https://docs.google.com/spreadsheets/d/spreadsheetId/edit#gid=sheetId
The spreadsheet id's used in this answer don't exist and are only included as examples.
Documentation Spreadsheet id
Documentation importrange.