如何检查谷歌表格中多个列的值?

发布于 2025-01-20 09:02:37 字数 220 浏览 3 评论 0原文

我想提取任何其他值包含特定字符串的行的第一列值,我知道硬编码方式看起来像这样

=QUERY(A3:Q24; "select A where B contains 'No' or where C contains 'No' or where D contains 'No'";0)

但是如果我想对很多列执行此操作,这似乎并不作为一个好方法。还有什么我可以使用的吗?

I want to extract the first column value for the rows that any of the other values contain a specific string, I know the hard coded way would look something like this

=QUERY(A3:Q24; "select A where B contains 'No' or where C contains 'No' or where D contains 'No'";0)

However if i want to do this for a lot of columns this doesn't seem as a good way. Is there anything else i can use?

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

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

发布评论

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

评论(1

虚拟世界 2025-01-27 09:02:37

尝试:

=QUERY({A3:Q24\ FLATTEN(QUERY(TRANSPOSE(B3:Q24);;9^9))}; 
 "select Col1 
  where Col18 contains 'No'"; 0)

try:

=QUERY({A3:Q24\ FLATTEN(QUERY(TRANSPOSE(B3:Q24);;9^9))}; 
 "select Col1 
  where Col18 contains 'No'"; 0)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文