【问题标题】:Custom order (not alpha or numeric) of query results查询结果的自定义顺序(不是字母或数字)
【发布时间】:2019-06-02 22:47:20
【问题描述】:

是否可以在谷歌表格QUERY 中创建自定义ORDER BY 函数?

在这种情况下,我不希望结果是字母或数字,而是基于预定义类别列表的自定义顺序,该列表实际上位于 QUERY 范围和公式的单独选项卡中自己。

我不确定从哪里开始:这甚至可能吗?类别列表是否应该移动到其他工作表之一?类别列表是否需要写入公式?

目前只是在寻找指导。

My Sheet

【问题讨论】:

    标签: if-statement google-sheets array-formulas google-sheets-query gs-vlookup


    【解决方案1】:
    =ARRAYFORMULA(ARRAY_CONSTRAIN(QUERY({QUERY({Estimate!A2:H}, 
     "where Col1 is not null"), IFERROR(VLOOKUP(QUERY({Estimate!A2:A}, 
     "where Col1 is not null", 0), 
     IF(LEN(A5:A), {A5:A, ROW(A5:A)}, ), 2, 0))}, 
     "where Col1 is not null 
      order by Col9", 0), 999^99, 8))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-09-08
      • 1970-01-01
      • 1970-01-01
      • 2018-11-11
      • 2019-01-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多