Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets Google Sheets-查询日期是否早于今天_Google Sheets_Google Sheets Query - Fatal编程技术网

Google sheets Google Sheets-查询日期是否早于今天

Google sheets Google Sheets-查询日期是否早于今天,google-sheets,google-sheets-query,Google Sheets,Google Sheets Query,我有一个谷歌表,其中包括一个日期列表,文件需要在我们的网站上,日期文件需要离开我们的网站 我想做的是创建第二个选项卡,根据输入的日期,只包含当天需要离开站点的文档。因此,它需要查询日期是在今天还是在今天之前 以下是我从其他问题/答案中拼凑出来的东西——但它不起作用。它只拉取第一行和第二行,并将它们都放在新选项卡的第一行: =QUERY(Sheet!A:M,"WHERE G < date """&text(today(),"yyyy-mm-dd")&""" ") =QUER

我有一个谷歌表,其中包括一个日期列表,文件需要在我们的网站上,日期文件需要离开我们的网站

我想做的是创建第二个选项卡,根据输入的日期,只包含当天需要离开站点的文档。因此,它需要查询日期是在今天还是在今天之前

以下是我从其他问题/答案中拼凑出来的东西——但它不起作用。它只拉取第一行和第二行,并将它们都放在新选项卡的第一行:

=QUERY(Sheet!A:M,"WHERE G < date """&text(today(),"yyyy-mm-dd")&""" ")
=QUERY(Sheet!A:M,“其中G

我的工作表在此处可用:

查询在处理G列中的混合数据类型时遇到问题。在查询之前,需要过滤掉非数字数据。您需要复制标题行并格式化日期列。在A2中输入:

=iferror(QUERY(filter(Sheet!A2:M,isnumber(Sheet!G2:G)),"select * where toDate(Col7) <= date '"&TEXT(Now(),"yyyy-MM-dd")&"'"),"No Data Returned")
=iferror(查询(filter(Sheet!A2:M,isnumber(Sheet!G2:G)),“选择*toDate的位置(Col7)