Advanced Excel : the RANK function

Consider we have the following data :-

And we want to identify the people with the top 3 marks. Note for this example, we will assume that there are no two people with exactly the same score.

The function RANK allows us to do this. It needs 2 arguments – the cell that we are comparing and the range over which we are comparing :-

RANK(A7, A2:A20)

Will give us the ranking of Cell A7 in the range A2:A20. So if we apply to this to our formulae and copy :-

We see that the highest marks are Anthony, Mark and then Jordan – receiving 35, 30 and 28 marks respectively.

 Note so far we have only determined the ranking of the names – not the actual names of the people. To do that we need to find the position of the ranking – i.e the fact that the 2nd largest value is on the 4th row of our data, and that the 4th largest is on the 6th row. This is achieved by doing the MATCH function :-

MATCH(A2, A2:A10,0)

Will give us the position of contents of the cell A2 In the range A2:A10. So we add another column to determine the position of the nth largest item :-

And then we can set space on the workbook to display the three largest values :-

And we state the position of the 3 largest items – using the MATCH function that we have just defined :-

This will return the position in the list of the largest 3 items. We can then use in the argument of an INDEX function to return the name of the students with the 3 highest marks :-

要查看或添加评论,请登录

Kapil Kapur的更多文章

  • 5 Reasons why Excel shouldn't be used in the healthcare sector

    5 Reasons why Excel shouldn't be used in the healthcare sector

    My name is Kapil Kapur. I have been building systems for the healthcare sector for the last 13 years.

    3 条评论
  • Using a database to track medical trial outcomes

    Using a database to track medical trial outcomes

    A few years ago, I was approached by a company that undertook medical trials in the area of cognitive conditions such…

  • 5 top tips for effective database design

    5 top tips for effective database design

    Introduction For many companies a database is a necessary investment - but many organisations struggle to implement…

  • How to stop having hell with excel

    How to stop having hell with excel

    One of the most common questions that I am asked is why should I replace my excel spreadsheets with a database ..

  • What is Management Reporting

    What is Management Reporting

    Most people I know are keen sports fans of some kind or another. They regularly track the performance of their…

  • Creating a Dynamic Chart in Excel

    Creating a Dynamic Chart in Excel

    Most excel users know how to create Excel charts by selecting a group of cells and clicking on one of the chart designs…

    2 条评论
  • Excel Dashboards - Design tips

    Excel Dashboards - Design tips

    One of the main reasons people use Excel so much is its ability to create Dashboards easily. A dashboard is a visual…

    6 条评论
  • Why process automation can improve your sex life

    Why process automation can improve your sex life

    Yes in this blog I'm going to prove that how having automating processes in your business can improve your sex life…

    25 条评论
  • 10 top tips for effective networking

    10 top tips for effective networking

    In these turbulent times, networking is an increasingly important way for companies (especially smaller ones) to find…

    2 条评论
  • Why you should ditch your spreadsheet and replace it with a Database

    Why you should ditch your spreadsheet and replace it with a Database

    One of the most common questions I am asked is why exactly should I replace my spreadsheets with a central database…

社区洞察

其他会员也浏览了