Excel – 如果单元格的范围
我正在尝试查看B列中显示的技能评分:G并将下面列出的相关值返回到A列。
我不得不覆盖的不同排列如下:
All 3's RETURN 3 All 2's RETURN 2 All 1's RETURN 1 Mix of 3's and 2's RETURN 2 Mix of 2's and 1's RETURN 1 Mix of 3's and 1's RETURN 2 Mix of 3's, 2's and 1's return 2
我使用下面的公式来尽可能接近最终目标,但是我很快意识到数据在某些点上是不准确的。
=IF(SUM(B2:G2)=18,3,IF(SUM(B2:G2)=12,2,IF(SUM(B2:G2)=6,1,IF(SUM(B2:G2)<12,1,IF(SUM(B2:G2)<18,2)))))
预先感谢您提供的任何帮助!
这个怎么样
=FLOOR(MEDIAN(MIN(B2:G2),MAX(B2:G2)),1)
这应该满足所有规则:
=IF(AND(AVERAGE(B2:G2)<=2,COUNTIF(B2:G2,3)>0),2,INT(AVERAGE(B2:G2)))