查找索引(匹配)数组中的最小值[EXCEL]

min*_*ues 6 arrays lookup indexing excel match

这是我简单的表格

A                           B               C
tasmania                   hobart            21
queensland                 brisbane          22
new south wales            sydney            23
northern territory         darwin            24
south australia            adelaide          25
western australia          perth             26
tasmania                   hobart            17
queensland                 brisbane          18
new south wales            sydney            19
northern territory        darwin             11
south australia           adelaide           12
western australia         perth              13
Run Code Online (Sandbox Code Playgroud)

索引匹配数组公式:

=INDEX(A2:C9,MATCH(1,(H4=$A:$A)*(I4=$B:$B),0),3)
Run Code Online (Sandbox Code Playgroud)

基本上A和B是我的查找标准,而C是我想要得到的值.我希望C是匹配的C值中的最小值.

防爆.如果我有塔斯马尼亚和霍巴特作为我的标准,我希望得到17因为它是最小值而不是21.

我尝试MIN在索引匹配数组中嵌套,(H4=$A:$A)*(I4=$B:$B)*(MIN($C:$C))但它只会导致错误

Axe*_*ter 4

这与其说是 a,不如MIN(IF...说是 a INDEX。之前SUMIFor甚至COUNTIF在 or 中实现时也必须以这种方式使用。ExcelSUM(IF...COUNT(IF...

由于到目前为止还没有MINIFS,为此我们必须进一步使用:

{=MIN(IF($A$1:$A$1000=H4,IF($B$1:$B$1000=I4,$C$1:$C$1000,NA())))}
Run Code Online (Sandbox Code Playgroud)

这是一个数组公式。将其输入到不带大括号的单元格中,然后按[Ctrl]+[Shift]+[Enter]确认。然后大括号应该会自动出现。