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 sheets Arrayformula不使用索引和匹配google sheets公式_Google Sheets_Array Formulas - Fatal编程技术网

Google sheets Arrayformula不使用索引和匹配google sheets公式

Google sheets Arrayformula不使用索引和匹配google sheets公式,google-sheets,array-formulas,Google Sheets,Array Formulas,我有三列数据。列A包含水果列表。第二列是排名(1,2,3…),第三列是列表,但这次是按优先顺序排列的 我想返回第四列中的排名。我已经尝试过这个公式,它可以正常工作,但它只返回一个值,这是一个数组公式。可能遗漏了什么 =数组公式(索引(B2:B11,匹配(A2:A,C2:C11,0)) 链接到我的电子表格。 索引不适用于数组公式,因此您必须使用Vlookup: =ArrayFormula(if(C2:C="","",vlookup(C2:C,A2:B,2,false)))

我有三列数据。列A包含水果列表。第二列是排名(1,2,3…),第三列是列表,但这次是按优先顺序排列的

我想返回第四列中的排名。我已经尝试过这个公式,它可以正常工作,但它只返回一个值,这是一个数组公式。可能遗漏了什么

=数组公式(索引(B2:B11,匹配(A2:A,C2:C11,0))

链接到我的电子表格。

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

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