【发布时间】:2020-01-21 17:48:15
【问题描述】:
我有以下电子表格:
| | A | B | C | D | E |
| 1| Labels | Item 1 | Item 2 | Item 3 | Item 4 |
| 2| name | yes | no | yes | yes |
| 3| price | yes | no | yes | yes |
| 4| tag | yes | no | yes | yes |
| 5| desc | yes | no | yes | yes |
| 6| loc | yes | no | yes | yes |
| 7| ref | yes | no | yes | yes |
| 8| obj | yes | no | yes | yes |
| 9| rand | yes | no | yes | yes |
|10| rand2 | yes | no | yes | yes |
|11| rand3 | yes | no | yes | yes |
|12| rand4 | yes | no | yes | yes |
注意:1 到 12 和 A 到 E 不在工作表内
如何从A、C、E 列中选择第 1 行和第 5 到 10 行的范围以获得以下结果? :
| | A | C | E |
| 1| Labels | Item 2 | Item 4 |
| 5| desc | no | yes |
| 6| loc | no | yes |
| 7| ref | no | yes |
| 8| obj | no | yes |
| 9| rand | no | yes |
|10| rand2 | no | yes |
注意:我留下了 1, 5, 6, ..., 10 和 A,C,E 只是为了更好地理解输出。我不希望它们出现在我的数据中,我只希望工作表中的数据
我得到这样的东西适用于一系列行:SELECT A,C,E LIMIT 6 OFFSET 4,但我错过了第 1 行,无法找到如何在同一个查询中添加它。
【问题讨论】:
标签: google-sheets google-sheets-formula google-sheets-query google-query-language