根据特定的行值选择所有列

发布于 2025-02-12 14:08:31 字数 538 浏览 1 评论 0原文

大家好,我正在尝试查询已经格式化的Google表格,我能够过滤其中一些数据(我使用了= query(x,select * where * where ...))。我得到的输出如下:

56月6月7月7计划月7月
名称1011231现在

,我想参考5月(或6月或7月)下的所有数字,以进行一些操作。我可以选择我想要的值,因为我需要自动化它。

如何获得包含特定标记的所有列(就我的情况而言)?如果不可能,您可以建议我另一种做到这一点吗? (我对Google表或Excel的经验不太经验)

Hi everybody I am trying to query an already formatted google sheets, I am able to filter some of those data (I used =query(x,select * where ... )). The output I get is the following:

maymayjunejunejulyjulyjuly
plannedname1011231

Now I want to refer to all the numbers under may (or june or july) in order to do some operation. I can' t just select the value I want because I need to automate it.

How can I get all the columns containing a specific marker(in my case the name of the month)? If it is not possible can you suggest me a different way to do that ? (I am not very experienced with google sheets or excel)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

病女 2025-02-19 14:08:31

由于查询不能选择行,因此transpose首先,然后选择您想要的列和然后重新transpose返回,如果需要:

输入:

5六月六月七月七月计划输出
0名称111231公式

(选择列> 0):

=QUERY(TRANSPOSE(A27:I28),"Select * where Col2>0")

计划中的名字
61
1
日6月2
日7月
7月3
日7月3日

Since query can't select rows, you'd transpose it first and then select the columns you want and then retranspose it back, if needed:

Input:

maymayjunejunejulyjulyjuly
plannedname1011231

Formula(select columns >0):

=QUERY(TRANSPOSE(A27:I28),"Select * where Col2>0")

Output:

planned name
may1
june1
june1
july2
july3
july1
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文