Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import multiple ranges from one Google Sheet into another

I am trying to import multiple sheets in one Google Sheet into another Google workbook. I can get ImportRange to work for one sheet but how do I use it for multiple sheets, or alternatively, how do I combine multiple ImportSheets in one column?

=unique(
importrange("https://docs.google.com/spreadsheets/d/...",
    "'Kramerville KH'!d5:o1000"))

I want to be able to add another range to that, e.g. 'Emalahleni KH'!d5: o1000.

like image 279
Marc L Avatar asked Mar 12 '23 04:03

Marc L


1 Answers

Use formula:

={unique(importrange("link...","'Sheet1'!d5:o1000"));
unique(importrange("link...","'Sheet2'!d5:o1000"))}

The result is two imports one behind another, see more info here.

There's no better way to do this. Alternative is to combine formula as text and then convert string into furmula using script. See how in this question.

like image 102
Max Makhrov Avatar answered Apr 07 '23 13:04

Max Makhrov