我们说我有下表:
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
答案 0 :(得分:1)
这将解决(使用数组):
=MAX(IF($A$2:$A$5>3.1,IF($A$2:$A$5<3.5,$B$2:$B$5,""),""))