随时间查询公式Google表格

时间:2020-07-06 18:48:17

标签: google-sheets google-sheets-formula

有人知道我如何添加到下面的查询中,以查找两个时间段之间的结果,并从最早到最早排序。

查询中的

'“&B5&”'=星期一。 TempCSV中的P是从D列中的日期和时间拆分起的时间,其中O = iferror(split(D2,“”))列中的此公式,并且该列在所有其他行中继续向下移动。 我不能使用D的日期和时间,因为相对于我要达到的目标,日期是创建日期,而不是当前日期。

=query(TempCSV,"Select A,D where A contains 'Something' and A contains 'Anotherthing' and C contains '"&B5&"' **where P >=05:00:00 and P <=12:00:00**")

我成功地将以下内容用于其他范围,但这是由于日期和时间正确记录在同一单元格中。

=query(TPM,"SELECT A,B,C where A contains 'Something' and A contains 'Anotherthing' and C >=  datetime '"&text($C$5,"yyyy-mm-dd 05:00:00")&"' and C < datetime '"&text($C$5,"yyyy-mm-dd 12:00:00") & "'")

0 个答案:

没有答案