Excel: Find most frequent occurring value in a range?

ぐ巨炮叔叔 提交于 2019-11-29 16:36:24

If we use a helper column we can completely eliminate the need for array formulas. In E1 enter 1 and in E2 enter:

=IF(COUNTIF($D$1:D1,D2)>0,"",1+MAX($E$1:E1))

and copy down as far as column D. (as items are added to column D, pull the column E formula down as well)

Finally in F1 enter:

=IFERROR(INDEX(D:D,MATCH(ROWS($1:1),E:E,0)),"")

and copy down. In G1 enter:

=COUNTIF(D:D,F1)

and copy down:

NOTE:

The little frequency table in columns F and G is "sort-able".

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