如何在Excel中从没有重复项的列表中获取前10个结果?

时间:2019-02-20 07:56:56

标签: excel rank

我在Excel中有一个四列的列表,我希望以有序的方式获得前十个结果(请参见下面的屏幕快照的右侧)。

我正在使用

=IF(11 - RANK(B120; B$120:B$140) <= 0; ""; 11 - RANK(B120; B$120:B$140))

通常效果很好。但是,然后,当出现重复项时(因为值相同,它是3倍的1级-请参见屏幕快照中的RANK列),那么它并不将其计为3,而仅计为一项:

enter image description here

也许一种方法是使用数组?很久以前才这样做,我不确定这将如何工作。

这些是数据:

1998,0.63,0.618461538,0.548241758,0.597318681
1999,0.44,0.398461538,0.328241758,0.364318681
2000,0.42,0.398461538,0.328241758,0.352318681
2001,0.55,0.528461538,0.448241758,0.499318681
2002,0.6,0.618461538,0.488241758,0.554318681
2003,0.61,0.608461538,0.488241758,0.563318681
2004,0.58,0.528461538,0.448241758,0.505318681
2005,0.66,0.668461538,0.498241758,0.603318681
2006,0.61,0.608461538,0.488241758,0.564318681
2007,0.61,0.638461538,0.448241758,0.549318681
2008,0.54,0.508461538,0.378241758,0.453318681
2009,0.63,0.628461538,0.488241758,0.564318681
2010,0.7,0.698461538,0.528241758,0.618318681
2011,0.58,0.578461538,0.408241758,0.483318681
2012,0.62,0.608461538,0.478241758,0.528318681
2013,0.67,0.638461538,0.528241758,0.572318681
2014,0.74,0.728461538,0.598241758,0.637318681
2015,0.9,0.858461538,0.748241758,0.821318681
2016,0.95,0.978461538,0.778241758,0.855318681
2017,0.85,0.898461538,0.708241758,0.735318681
2018,0.79,0.818461538,0.638241758,0.653318681

感谢任何提示。

1 个答案:

答案 0 :(得分:0)

您为什么要使用数学将这些倒排? Rank具有一个可选参数,该参数将使 0.95 的数字为1,而不是10。