获取过去 24 小时内某个范围内的所有时间戳值

Get all the timestamp values from a range, within the past 24 hours

我有一个 Google 表单数据,我只想在其中执行过去 24 小时的输入。我使用的公式是:

=ARRAYFORMULA(QUERY('Production Log'!A:A,"Select A where hour(timevalue(now())-timevalue(toDate(A))) <=24"))

但是我收到这个错误:

Error Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " "hour" "hour "" at line 1, column 16. Was expecting one of: "(" ... "(" ...

Filter可能更简单:

=filter('Production Log'!A:A,(now() - ('Production Log'!A:A)) < 1)

尝试:

=QUERY('Production Log'!A:A,
 "select A 
  where A = date '"&TEXT(TODAY()-1, "yyyy-mm-dd")&"'", 0)