For working professionals
For fresh graduates
More
27. Columns in Excel
33. Count In Excel
49. Slicers in Excel
54. Solver in Excel
56. Macros In Excel
The Excel RANK function is a perfect tool for ranking values and is particularly useful for handling voluminous datasets. While analyzing a huge amount of data, you might have faced certain issues ranking particular values.
As a data analyst myself, I use numerous Excel functions daily and can swear by the resourcefulness of the Excel RANK function.
While learning about this function, you’ll come across new terms like RANK.EQ and RANK.AVG, and yes, they can be overwhelming. So, I have designed this beginner-friendly tutorial covering all aspects, including these.
Before delving straight into the facts, here’s some advice. This tutorial may confuse you if you have no Excel experience or knowledge. Go through a tutorial on MS Excel in that case.
On with the topic; Excel RANK function.
Let’s say you are tasked with publishing the rank list based on the results of more than 150 students in a school. Overwhelming task, isn’t it? This is where the RANK function comes in handy. Its ability to compare a huge amount of data and find out the highest among them all makes it a handy tool.
It ranks from top to bottom and vice versa. Here’s where you’ll find it:
Building a proper formula for the function is the fundamental step, as the foundation matters the most. Just like other functions, the Excel RANK function has a formula, which is described below as the RANK formula :
=RANK( number,ref,[order])
The arguments used above suggest the following things:
Here’s an example of how to set the formula:
= RANK(A5,A5:A15,0)
If you want the ranks in ascending order, type 1 in the order section and 0 for descending order.
Excel RANK function is of two types: RANK.AVG and RANK.EQ. Both functions have their own traits, which make them different from each other, but the only trait that unites them is the power to rank data.
RANK.AVG looks at the identical data and assigns an average rank to both the values. For example, say student A and B scored 85 marks and 85 is the 2 nd highest marks scored, hence they will be given a rank of 2.5.
RANK.EQ gives the same rank for both the values and omits the next rank. Taking the above example, it will give both students 2nd rank and skip 3 to give 4 rank.
The formulas for the functions are identical. You can spot the difference between the two only when there are identical values in the provided data. Both the functions have their own unique way to rank duplicate values.
Dealing with the Rank function is easy and direct. Let’s go through a detailed yet simple visual on how to use it.
Here, I have highlighted some examples where I have used both the RANK functions
Here’s an example to help you understand better. Let’s say, you have rank student scores in your class in descending order (highest to lowest).
Step 4: Click on ‘OK’ and you will get the rank of B2 ie., Tina. Click on the ‘Fill Handle” (the small square visible at the bottom right) and drag it down to B10 to have the rank of all the students.
For Identical Values
Students achieving identical marks is common in school, but, it can be difficult for teachers to rank them. RANK.AVG is used in these cases.
Let’s say, Tina and Deepa scored 85 and you are tasked with ranking them. Follow the same steps as mentioned above and apply the same RANK formula.
Now when you drag the fill handle you will be able to see the average rank given.
For Identical Values
When using the RANK.EQ function in Excel, if the data points are distinct, you'll receive the same ranking as shown in the example, following the conventional ranking method.
However, when dealing with identical values, this Excel RANK function handles them differently. Let's see how with an example.
Let’s say, Tina and Deepa got the same score again. Follow the steps below:
Common Mistakes
I’ve made my fair share of mistakes when I first learned how to use the Excel RANK function. I’ve listed most of the common ones so, you can avoid them:
The Excel RANK function is one of the nifty functions used for quickly rank values. Both RANK Excel functions are valuable for their own set of use cases and I can attest that they are used widely in data analysis.
Speaking of data analysis, if you have half the mind to pursue it as a full-fledged career, don’t think twice. Go for it. It is a highly lucrative field with endless opportunities. If you are looking for a reliable course to start, head over to upGrad. As one of the best education platforms online, it offers top-tier programs affiliated to world-class institutions.
The RANK function can be used by clicking on the ‘RANK’ function option from the data tab and feeding the necessary info. A detailed method with step-by-step analysis is given above.
You can easily rank 1st, 2nd and 3rd with the help of the Excel RANK function.
After applying the rank function, right-click on the column and select Sort. You are then given a variety of methods to sort the ranks.
The major difference between RANK.EQ and Rank.AVG appears when identical values are present. RANK.EQ gives the same rank for identical values and skips the next one, whereas the latter one provides an average of the rank.
RANK can be calculated using the rank formula under the RANK Excel function. By providing arguments such as number,ref, and order, you can calculate the rank of any data.
Many examples of RANK and its usage are explained in detail in this tutorial.
Author
Talk to our experts. We are available 7 days a week, 9 AM to 12 AM (midnight)
Indian Nationals
1800 210 2020
Foreign Nationals
+918045604032
1.The above statistics depend on various factors and individual results may vary. Past performance is no guarantee of future results.
2.The student assumes full responsibility for all expenses associated with visas, travel, & related costs. upGrad does not provide any a.