无需手动输入每一列即可查询 select 大范围的列 Google 工作表

Query to select a large range of columns without manually entering each column Google Sheets

我正在使用此 post 中提供的解决方案:

https://webapps.stackexchange.com/questions/101926/google-sheets-query-to-select-a-large-range-of-columns-without-manually-entering

但现在我需要从不同的电子表格中查询数据。我知道 importrange 需要使用 'Col' 来指定列。但是,我不知道如何更改此字符串:

=arrayformula(join(",", substitute(address(1, column(C:F), 4), "1", "")))

您可以使用:

=ARRAYFORMULA(JOIN(",", "Col"&COLUMN(C:F)))