Mastering Rank in Excel: A Comprehensive Guide
Mastering the RANK function in Excel is crucial if you want to organise and analyse data by position. It shows how high or low each value stands compared to the rest of the list. This guide explains how RANK works and how to use it effectively in your spreadsheets.
Understanding Rank Function
The RANK function in Excel shows the position of a value within a data set. It compares one number to all other numbers in the range.
Excel offers two main ranking functions:
- RANK.EQ (similar to the older RANK function)
- RANK.AVG
Both use the same syntax:
=RANK.EQ(number, ref, [order])
=RANK.AVG(number, ref, [order])
- number is the value you want to rank.
- ref is the range you compare it against.
- [order] is optional. Use 0 (or leave it blank) for descending order, or 1 for ascending order.
The key difference is how they handle ties. RANK.EQ gives tied values the same rank and skips the next position. In contrast, RANK.AVG gives tied values the average of the ranks they would have received.
Using Rank Function
To use the RANK function, enter your data in a column. In an adjacent column, enter the RANK.EQ or RANK.AVG formula, referencing the cell containing the value you want to rank as the number argument and the entire data range as the ref argument.
For descending order (highest value ranked 1), either omit the [order] argument or set it to 0. For ascending order (lowest value ranked 1), set the [order] argument to 1. Then, drag the formula down to apply it to all values in your dataset.
Applications of Rank:
- Rank sales performance, efficiency metrics, or other business KPIs to identify leaders and laggards.
- Determine class standing or percentile ranks for students based on scores.
- Rank companies or investments based on profitability, growth, risk, or other financial metrics.
The RANK function is commonly used for ranking sales figures, exam scores, or other numerical data where relative position is important. However, be aware that if the ref range contains non-numeric values or blank cells, RANK may return errors.
Ensure your data is clean and consistent before using the function.



