google-sheetsgoogle-sheets-formulaarray-formulasimportrange

Combining multiple spreadsheets in one using IMPORTRANGE


I would like to aggregate the data of multiple spreadsheets into one spreadsheet.

Duplicates shall not be handled differently. I would like them to appear as often as they appear in the different sheets.

Is it possible to do this without writing a script or using jQuery, e.g. by using IMPORTRANGE?

What does not work: I have tried using IMPORTRANGE as follows:

ARRAY{IMPORTRANGE("key-of-spreadsheet1","list!A2:A500"), IMPORTRANGE("key-of-spreadsheet2", "list!A2:A500")}

This causes an error.


Solution

  • You should be able to use a vertical array in the Spreadsheet 3:

    ={IMPORTRANGE("Sheet1Key","SheetName!A2:A500");IMPORTRANGE("Sheet2Key","SheetName!A2:A500")}