使用Query过滤Google工作表仅返回一行 [英] Filtering on google sheets using Query returns just one row

查看:52
本文介绍了使用Query过滤Google工作表仅返回一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上下文

我正在尝试使用查询按日期范围过滤数据.我想要从2019年12月31日起的数据.这是我使用的公式:

I am trying to filter data by date range using Query. I want data from 31/12/2019 onwards. This is the formula I used:

= Query(Query(ImportRange("ID","RotorkPrice"),"offset 2",1),"select * where Col1> ='2019-12-31''';)

这仅返回第一行(尽管我确实要求Query删除前两行).数据如下所示:

This only returns the top row (though I did ask Query to remove the first 2 rows). The data looks like so:

我从此处指南.

I took examples from here and here, and have been following this guide.

问题

是否有一种方法只能使用查询从该日期开始绘制数据?

Is there a way to only draw data from this date onwards using Query?

电子表格位于此处.

推荐答案

您缺少日期.尝试:

=QUERT(QUERY(IMPORTRANGE("ID", "RotorkPrice"), 
 "offset 1", 0), 
 "where Col1 >= date '2019-12-31'", 0)

这篇关于使用Query过滤Google工作表仅返回一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆