使用嵌入格式向Google表格查询添加排序

时间:2017-12-22 09:45:49

标签: google-sheets google-sheets-query

=query(Sheet1!$A:$K,"select A,B,C,D,E,F,G,I,J,K where J IS NOT NULL format J'0%'")

以上是我现在在Google表格中的内容,我正在尝试为其添加订购功能。我试过了

  

... J' 0%',按B asc排序,C asc,D,asc

什么也没有。第二步是将所有内容更改为Col结构并再次尝试,但它无法在源代码中找到Cols" Sheet1"数据。该公式工作正常,但我有问题添加订单。

非常感谢任何帮助 - 谢谢!

2 个答案:

答案 0 :(得分:1)

order by必须在format之前出现。见The order of the clauses must be as follows

enter image description here

答案 1 :(得分:1)

ORDER BY之前不应该有逗号。尝试:

=query(Sheet1!$A:$K,"select A,B,C,D,E,F,G,I,J,K where J IS NOT NULL ORDER BY B, C, D ASC FORMAT J'0%'")

相关问题