Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.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/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
Date Google Sheet查询日期范围内的分钟数_Date_Google Sheets_Sum_Google Sheets Formula_Google Sheets Query - Fatal编程技术网

Date Google Sheet查询日期范围内的分钟数

Date Google Sheet查询日期范围内的分钟数,date,google-sheets,sum,google-sheets-formula,google-sheets-query,Date,Google Sheets,Sum,Google Sheets Formula,Google Sheets Query,我正在尝试从一个单独的选项卡查询谷歌工作表。我想用一个特定的用户ID计算特定日期范围内的总分钟数。我希望用户输入日期和用户ID 我的查询当前为: select SUM(Col28) where Col1 is not null and Col1 <> 'Timestamp' and Col1 >= '"&$A4&"' AND Col1 <= '"&$B4&"' and Col3 = 'ROS756' 选择SUM(Col28),其中Col1

我正在尝试从一个单独的选项卡查询谷歌工作表。我想用一个特定的用户ID计算特定日期范围内的总分钟数。我希望用户输入日期和用户ID

我的查询当前为:

select SUM(Col28) where Col1 is not null and Col1 <> 'Timestamp' and Col1 >= '"&$A4&"' AND Col1 <= '"&$B4&"' and Col3 = 'ROS756'
选择SUM(Col28),其中Col1不为null,Col1'Timestamp'和Col1>=“&$A4&”和Col1尝试:

“选择总和(第28列)
其中Col1>=日期“&”文本(A4;“yyyy-mm-dd”)和“&”

Col1单元格A4是开始日期,单元格B4是结束日期,Col3是用户让我更进一步。几乎相同的公式,但我想得到总里程数。Col29是该记录的里程表开始,Col30是里程表结束。我需要找到每行的里程数和总里程数,就像我们对分钟数所做的那样。=查询(输入(“1f-XOO3PQVMBEWQLTZ3SDVXQWSQLDUN2CI7Q_Dbgqzk”,“表1!$A$2:$AW$10000”),“选择总和(Col30-Col29),其中Col1>=日期'”&文本(F5,“yyyy-mm dd”)&“和Col1
"select sum(Col28) 
 where Col1 >= date '"&TEXT(A4; "yyyy-mm-dd")&"' 
   and Col1 <= date '"&TEXT(B4; "yyyy-mm-dd")&"' 
   and Col3 = 'ROS756'"