我需要得到查询搜索上方 1 的答案

发布于 2025-01-16 03:42:55 字数 255 浏览 2 评论 0原文

我有一个方程,它进入一列并搜索第一个 0,该列跟踪 1 和 0 中事物的进度,问题是设置它来查找 1 仅返回最高的值,我要么需要它来查找并返回上方最上面的 0 +1 单元格或自下而上搜索。 我需要它返回相应单元格中的字符串。

=QUERY(A3:D,"Select A where D = 0 limit 1",0)

这对我来说不起作用,我无法找到一种方法来将搜索反转为自下而上或简单地抓取列表中第一个 0 上方的单元格中的字符串。

I have an equation that goes into a column and searches for the first 0, the column tracks the progress of things in 1s and 0s, problem is that setting it to find 1 only returns the top most value, I would either need this to find the and return the top most 0 +1 cell above or to search bottom up.
I need it to return the string in the corresponding cell.

=QUERY(A3:D,"Select A where D = 0 limit 1",0)

This hasn't worked for me, I have not been able to find a way to either invert the search to bottom up or to simply grab the string in the cell above the first 0 found in the list.

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

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

发布评论

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

评论(1

指尖上的星空 2025-01-23 03:42:55

如果您只想获取列 A,您可以尝试类似的操作:-

=QUERY(A3:D,"Select A where D = 0 offset "&COUNTA(A3:A) ,0)

参考:-

偏移量

You can try something like this, if you're only trying to get Column A:-

=QUERY(A3:D,"Select A where D = 0 offset "&COUNTA(A3:A) ,0)

Reference:-

Offset

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