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 apps script 过滤单元';s如何用公式或脚本按时间排序?_Google Apps Script_Google Sheets_Google Sheets Formula - Fatal编程技术网

Google apps script 过滤单元';s如何用公式或脚本按时间排序?

Google apps script 过滤单元';s如何用公式或脚本按时间排序?,google-apps-script,google-sheets,google-sheets-formula,Google Apps Script,Google Sheets,Google Sheets Formula,我尝试通过查询按时间“加入”单元格进行排序 如果我已经使用了IFERROR、FILTER和TEXT,我该怎么做呢 我尝试在查询之前和之后添加查询{ 但我无法让它工作 这是我想要查询的公式,以便能够在B29:E29中按时间排序 ={IFERROR(过滤器(A1&&&B2&&text(A3:A27;“hh:mm”)&“-&B3:B27;B3:B27”);V1:V2);IFERROR(过滤器(过滤器(A1&&D2&&text(A3:A27;“hh:mm”)&“-&D3:D27;D3:D27”);V1:

我尝试通过查询按时间“加入”单元格进行排序 如果我已经使用了IFERROR、FILTER和TEXT,我该怎么做呢 我尝试在查询之前和之后添加查询{ 但我无法让它工作

这是我想要查询的公式,以便能够在B29:E29中按时间排序

={IFERROR(过滤器(A1&&&B2&&text(A3:A27;“hh:mm”)&“-&B3:B27;B3:B27”);V1:V2);IFERROR(过滤器(过滤器(A1&&D2&&text(A3:A27;“hh:mm”)&“-&D3:D27;D3:D27”);V1:V2)}

我做了一张纸,上面显示的比我拍照时更多

如果不可能用公式来解决,我想知道是否可以用脚本来解决


提前谢谢!

稍微更改KG及以上的位置

=sort({IFERROR(filter(A1&" "&TEXT(A3:A27;"hh:mm")&" "&B2&" - "&B3:B27;B3:B27<>"");V1:V2);IFERROR(filter(A1&" "&TEXT(A3:A27;"hh:mm")&" "&D2&" - "&D3:D27;D3:D27<>"");V1:V2)})
=sort({IFERROR(过滤器(A1&&&TEXT(A3:A27;“hh:mm”)&&B2&&B3:B27;B3:B27”);V1:V2);IFERROR(过滤器(过滤器(A1&&TEXT(A3:A27;“hh:mm”)&&D2&&D3:D27;D3:D27”);V1:V2)
见B42