VBA或Excel最大值列表
首先,不好意思,如果以前有过这个问题,但是我没有find任何能解决我的问题的东西。
我有以下数据:
System | Priority ------------------ System1 | 3 ------------------ System2 | 4 ------------------ System3 | 5 ------------------ System1 | 6 ------------------ System2 | 2 ------------------ System3 | 9 ------------------
我想创build这个新的列:
System | Priority | MaximumPriority ------------------------------------ System1 | 3 | 6 ------------------------------------ System2 | 4 | 4 ------------------------------------ System3 | 5 | 9 ------------------------------------ System1 | 6 | 6 ------------------------------------ System2 | 2 | 4 ------------------------------------ System3 | 9 | 9 ------------------------------------
实质上,在我的新列中,我需要获得每个特定系统(列A)的最大优先级(列B)。
有任何想法吗??
非常感谢 :)
更新:
注意excel公式是西class牙语,所以MAX(SI = MAX(IF
有几种方法可以做到这一点:
在数组公式中(使用Ctrl + Shift + Enterinput):
{=MAX(IF($A$2:$A$7=$A2,$B$2:$B$7))}
(大括号在正确input时自动出现)。
如果你有Excel 2016(我没有它,但我认为语法是正确的):
=MAXIFS($B$2:$B$7,$A$2:$A$7,$A2)
注意:此function仅在您拥有Office 365订阅时才可用。
此外,请确保计算设置为Automatic
否则所有单元格将显示您input公式的第一个单元格中的值。