在 Google 个工作表中过滤过去 10 天来自不同电子表格的日期

Filter dates from different spreadsheets for the last 10 days in Google Sheets

我有一个 sheet,有 4 个标签,其中包含多个数据,其中报告注册的日期和时间在 A 列中。我创建了一个新标签,它将收集所有其他 sheets 数据。所以我正在使用 QUERY:

=QUERY({
Sheet2!A1:D;
Sheet3!A1:D;
Sheet4!A1:D;
Sheet5!A1:D
},
"select * where Col2 is not null order by Col1",0)

但是,我需要将最近 10 天排序的所有数据放在 Sheet1 中:

https://docs.google.com/spreadsheets/d/1mzFEEZwDma0MAUUBnlmXvwWjCBpeDiaBDDXB584fu7A/edit#gid=0

注意:查询已按日期排序

尝试升序:

=SORT(QUERY(SORT({
 Sheet2!A1:D;
 Sheet3!A1:D;
 Sheet4!A1:D;
 Sheet5!A1:D}, 1, 0),
 "where Col2 is not null limit 10", 0))

或降序:

=QUERY(SORT({
 Sheet2!A1:D;
 Sheet3!A1:D;
 Sheet4!A1:D;
 Sheet5!A1:D}, 1, 0),
 "where Col2 is not null limit 10", 0)