具有双重条件的子表格的最大值

时间:2015-09-04 14:49:48

标签: excel max

我们说我有下表:

A |乙
3.1 | 13个
3.2 | 5
3.3 | 11个
3.4 | 3
3.5 | 14

当A的值在2个数字之间时,我想获得B列的最大值。我试过了:

{=MAX(IF($A$2:$A$5>3.1,$B$2:$B$5))} = 14

{=MAX(IF($A$2:$A$5<3.5,$B$2:$B$5))} = 13

{=MAX(IF(AND($A$2:$A$5>3.1,$A$2:$A$5<3.5),$B$2:$B$5))} = 0

1 个答案:

答案 0 :(得分:1)

这将解决(使用数组):

=MAX(IF($A$2:$A$5>3.1,IF($A$2:$A$5<3.5,$B$2:$B$5,""),""))