gpt4 book ai didi

google-sheets - 使用查询从特定列中选择特定行和行范围

转载 作者:行者123 更新时间:2023-12-02 03:01:40 25 4
gpt4 key购买 nike

我有以下电子表格:

|  |   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 不在工作表内

如何从 ACE 列中选择第 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 行,并且找不到如何将其添加到同一查询中.

最佳答案

尝试:

=QUERY(A1:E; "select A,C,E limit 6 offset 3"; 1)

0

关于google-sheets - 使用查询从特定列中选择特定行和行范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59846605/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com