【问题标题】:Arrayformula not working with index and match google sheets formulaArrayformula 不适用于索引和匹配谷歌表格公式
【发布时间】:2020-01-11 09:44:32
【问题描述】:

我有三列数据。 A 列包含水果列表。第二列是排名 (1,2,3...),第三列是列表,但这次按偏好排序。

我想返回第四列的排名。我已经尝试过这个公式,它应该可以工作,但它只返回一个值,但它是一个数组公式。可能缺少什么?

=ARRAYFORMULA(index(B2:B11,match(A2:A,C2:C11,0)))

链接到我的电子表格。 https://docs.google.com/spreadsheets/d/1e7xCcdPa3MywDVs70o2kXAwMnzJRMDuucktWPowS_MY/edit?usp=sharing

【问题讨论】:

    标签: google-sheets array-formulas


    【解决方案1】:

    索引不适用于数组公式,因此您必须改用 Vlookup:

    =ArrayFormula(if(C2:C="","",vlookup(C2:C,A2:B,2,false)))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-21
      • 2017-11-12
      • 2014-12-18
      • 2022-01-24
      • 1970-01-01
      • 1970-01-01
      • 2020-05-19
      • 1970-01-01
      相关资源
      最近更新 更多