How to find the first and second maximum number?

∥☆過路亽.° 提交于 2019-11-30 11:06:33

问题


I am trying to find first highest number and second highest number in excel. What shall i do for that. I did not find the right formula.

Note: I have already used the large and max formula.

=LARGE(E4:E9;1) 

edit: guys I know if i write 2 instead of 1 i will get the result but i have to click the mouse to see all result.


回答1:


If you want the second highest number you can use

=LARGE(E4:E9;2)

although that doesn't account for duplicates so you could get the same result as the Max

If you want the largest number that is smaller than the maximum number you can use this version

=LARGE(E4:E9;COUNTIF(E4:E9;MAX(E4:E9))+1)




回答2:


OK I found it.

=LARGE($E$4:$E$9;A12)

=large(array, k)

Array Required. The array or range of data for which you want to determine the k-th largest value.

K Required. The position (from the largest) in the array or cell range of data to return.



来源:https://stackoverflow.com/questions/20011864/how-to-find-the-first-and-second-maximum-number

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