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
Google sheets 向查询结果中的一列添加值_Google Sheets_Array Formulas_Google Sheets Formula_Google Sheets Query - Fatal编程技术网

Google sheets 向查询结果中的一列添加值

Google sheets 向查询结果中的一列添加值,google-sheets,array-formulas,google-sheets-formula,google-sheets-query,Google Sheets,Array Formulas,Google Sheets Formula,Google Sheets Query,我在电子表格中有一个查询: =IFERROR(QUERY(swgohEventsCal!$A$2:$D,"SELECT A,B,C where A contains 'TB' and C >= date '"&TEXT(TODAY(),"yyyy-MM-dd")&"' order by B limit 4", 0),"Nothing Scheduled!") 列B显示日期和时间,但时间默认为上午12点。我想做的是在这段时间里增加24小时,或者说一天 因此,当结果为5/26

我在电子表格中有一个查询:

=IFERROR(QUERY(swgohEventsCal!$A$2:$D,"SELECT A,B,C where A contains 'TB' and C >= date '"&TEXT(TODAY(),"yyyy-MM-dd")&"' order by B limit 4", 0),"Nothing Scheduled!")
列B显示日期和时间,但时间默认为上午12点。我想做的是在这段时间里增加24小时,或者说一天

因此,当结果为
5/26/2019 0:00:00
时,我希望它显示
5/27/2019 0:00:00

=ARRAYFORMULA(IFERROR(QUERY(
 {swgohEventsCal!$A$2:$A,swgohEventsCal!$B$2:$B+1,swgohEventsCal!$C$2:$D},
 "select Col1,Col2,Col3 
  where Col1 contains 'TB' 
    and Col3 >= date '"&TEXT(TODAY(), "yyyy-MM-dd")&"' 
  order by Col2 
  limit 4", 0), "Nothing Scheduled!"))