Excel rank formula issue

本秂侑毒 提交于 2021-01-29 07:20:21

问题


Formula

RANK(F2,$F$2:$F$5)

Output:

           
**sr  rank  name     sub1  sub2   sum      percentage**     
1     1     jaydeep  60    65     326      163
2     1     manish   70    63     326      163
3     3     jay 60   65    325.5  162.75    

Want:

In rank column I get 3rd rank but actually it is 2nd rank.

Any way to get 2nd rank using formula because of sheet contain many data.

Thanks.


回答1:


What I think you want is called a Dense Rank

Try this formula:

=SUMPRODUCT( (FREQUENCY($F$2:$F$4,$F$2:$F$4) > 0) * (F2 <= $F$2:$F$5) )

Note that range within the FREQUENCY function is the same as the range to be ranked; and the range at the end has one additional row.



来源:https://stackoverflow.com/questions/38671093/excel-rank-formula-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!