google-sheets - 谷歌表格 - 查询导入范围选择今天的日期
问题描述
我有一个要向其中导入数据的工作表。源工作表的第 4 列包含日期。我只想导入来自 today() 日期的行。
我的出发点是:
={unique(QUERY(IMPORTRANGE("URL","Sheet1!A3:L1000"), "select Col9,Col1,Col4,Col3,Col5 where Col1 is not null order by Col4"));}
解决方案
尝试调整 where 子句:
where Col1 is not null and Col4 = date '"&text(today(),"yyyy-mm-dd")&"'
所以查询变为:
={unique(QUERY(IMPORTRANGE("URL","Sheet1!A3:L1000"), "select Col9,Col1,Col4,Col3,Col5 where Col1 is not null and Col4 = date '"&text(today(),"yyyy-mm-dd")&"' "));}
推荐阅读
- mongodb - MongoDB Shell 聚合管道未按我希望的方式分组
- javascript - 如何测量导入执行时间
- asp.net - 在 ASP.NET Core Web App 中处理未经授权的访问
- machine-learning - pipeops 使参数不可用于调整 mlr3proba
- html - 使用braintree,Django时错误类型对象'配置'没有属性'环境'
- java - org.openqa.selenium.WebDriver 类型不可访问
- java - JavaFX Borderpane 与 Splitpane 相结合
- bash - 在 Bash 脚本重复循环中仅应用一次命令
- r - 错误:在 r 包开发中未加载 DLL 'mypackage.dll'
- common-lisp - 如何禁用 Hunchentoot 提供的页面上的缓存?