Sample Data
This is the source spreadsheet data with product names and their prices.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Price |
| A2 | Apple |
| B2 | 1.20 |
| A3 | Banana |
| B3 | 0.80 |
| A4 | Cherry |
| B4 | 2.50 |
This is the source spreadsheet data with product names and their prices.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Price |
| A2 | Apple |
| B2 | 1.20 |
| A3 | Banana |
| B3 | 0.80 |
| A4 | Cherry |
| B4 | 2.50 |
=IMPORTRANGE("1a2b3c4d5e6f7g8h9i0jklmnopqrstuv", "Sheet1!A2:B4")Target Sheet: +----+-------+-------+ | | A | B | +----+-------+-------+ | 1 | | | +----+-------+-------+ | 2 | Apple | 1.20 | +----+-------+-------+ | 3 | Banana| 0.80 | +----+-------+-------+ | 4 | Cherry| 2.50 | +----+-------+-------+ Source Sheet (in another spreadsheet): +----+---------+-------+ | | A | B | +----+---------+-------+ | 1 | Product | Price | +----+---------+-------+ | 2 | Apple | 1.20 | +----+---------+-------+ | 3 | Banana | 0.80 | +----+---------+-------+ | 4 | Cherry | 2.50 | +----+---------+-------+
+----+-------+-------+ | | A | B | +----+-------+-------+ | 1 | | | +----+-------+-------+ | 2 | Apple | 1.20 | +----+-------+-------+ | 3 | Banana| 0.80 | +----+-------+-------+ | 4 | Cherry| 2.50 | +----+-------+-------+
IMPORTRANGE function do in Google Sheets?IMPORTRANGE function?=IMPORTRANGE(spreadsheet_url, range_string).=IMPORTRANGE(spreadsheet_url, range_string) matches the correct syntax. =IMPORTRANGE(range_string, spreadsheet_url) reverses the parameters, and options A and C miss the required second argument.=IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123", "Sheet1!A1:B2"), what will be imported?=IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123", "Sheet1!A1:B2") but see a #REF! error. What is the most likely fix?=ARRAYFORMULA({IMPORTRANGE("url", "Sheet1!A1:B5"); IMPORTRANGE("url", "Sheet2!A1:B5")}) correctly uses {range1; range2} inside ARRAYFORMULA to combine vertically. =IMPORTRANGE("url", "Sheet1!A1:B5") + IMPORTRANGE("url", "Sheet2!A1:B5") tries to add ranges (invalid). =IMPORTRANGE("url", "Sheet1!A1:B5") & IMPORTRANGE("url", "Sheet2!A1:B5") uses & which concatenates text, not ranges. =IMPORTRANGE("url", "Sheet1!A1:B5, Sheet2!A1:B5") tries to specify two ranges in one IMPORTRANGE call, which is invalid.Pass the test and this pattern moves unknown