Google表格–查询日期返回没有值

发布于 2025-02-01 04:54:26 字数 404 浏览 2 评论 0原文

我正在尝试通过条目的日期从另一张纸上过滤列表,而根本不起作用:

=QUERY(Import!A:Z;"select A,T where T >= date '2021-08-27'";0)

当我删除date零件时,它可以正常工作,如用于通过文本过滤的费用。我需要能够按确切日期进行排序,因为我想添加一些更复杂的过滤器。当我将功能的最后一部分设置为0而不是1时,它仅显示第一个条目。

源列设置为正确的日期格式。使用IngorTrange()函数从另一个文档中获取数据(我看不出这应该如何有所作为)。

我觉得我在这里想念一些简单的东西,如果有人可以将我指向正确的方向,我会很高兴!

​​I'm trying to filter a list from another sheet by the dates of the entries and simply doesn't work:

=QUERY(Import!A:Z;"select A,T where T >= date '2021-08-27'";0)

​When I remove the date part it works fine, as expexted for filtering by text. I need the ability to sort by exact dates though, because I would like to add some more complex filters. When I set the last part of the function to a 0 instead of a 1 it shows only the first entry.

The source column is set to the correct date format. The data is pulled from another document using the IMPORTRANGE()​ function (I don't seee how this should make any difference though).

I feel like I'm misssing something simple here and would be glad if someone can point me in the right direction!

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

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

发布评论

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

评论(2

凶凌 2025-02-08 04:54:26

查看您的日期列是否为所有单元格式为日期。我缺少值为“ ='---”,并且按日期返回的查询过滤。将丢失的值更改为“ = na()”。

Check your date column if all cells are formatted as date. I had missing values as "='---" and the query filtering by date returned nothing. Changing the missing values to "=NA()" did the job.

流绪微梦 2025-02-08 04:54:26

尝试以下操作:

=QUERY(Import!A:Z;"select A,T where T >= date '"&TEXT("2021-08-27";"yyyy-mm-dd")&"'")

Try this:

=QUERY(Import!A:Z;"select A,T where T >= date '"&TEXT("2021-08-27";"yyyy-mm-dd")&"'")
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文