HomeGoogle DocsSpreadsheetHow to Use the RANK.AVG Function in Google Sheets

How to Use the RANK.AVG Function in Google Sheets

Published on

RANK.AVG is a statistical function. One hurdle in ranking is the repeated numbers. The RANK.AVG function in Google Sheets is useful in such situations.

Similar to the RANK function, the RANK.AVG can also return the rank of a specified value or values in a range. But there is one difference. The RANK function returns the same rank for repeated numbers but the RANK.AVG finds the average of the repeated ranks and returns it.

There is no function in Google Sheets that you can use as a tiebreaker in Ranking. If you want continues ranks for repeated numbers, I have a custom formula.

Similar: Ranking without duplicates in Google Sheets.

Now let me explain to you how to use the RANK.AVG function in Google Sheets.

Syntax and Examples to the Use of the RANK.AVG Function in Google Sheets

Syntax:

RANK.AVG(value, data, [is_ascending])

Here value is the value whose rank that you want to find in a set of data.

Don’t forget to specify, by using TRUE or FALSE, whether you want to rank the value in ascending order or descending order.

If you skip, the RANK.AVG formula in Google Sheets would return the rank in descending order as it’s the default setting. I will detail this in the examples below.

You should note one more thing. The value can also be an array. You can use the function ArrayFormula with RANK.AVG for this.

Examples to the Use of RANK.AVG Function in Google Sheets

In the below two examples, I have used the RANK formula. Not the RANK.AVG formula. This’s because there is no duplicate value in Column A.

Example 1: Basic Formula.

RANK.AVG Function Example - 1

Here you can use the RANK.AVG formula too and that also would return the same result.

=RANK.AVG(25,A1:A5)

Example 2: Array Formula.

RANK.AVG Function Example - 2

Here again the RANK.AVG formula can return the same result.

=ArrayFormula(RANK.AVG(A1:A5,A1:A5))

When you go through the ranks, you can see that the max value in Column A, which is 25, got the 1st rank.

You can reverse that by specifying TRUE at the end of the formula as below.

=ArrayFormula(RANK.AVG(A1:A5,A1:A5,TRUE))

There are 5 numbers in column A. This time the rank of the value 25 would be 5th.

Now let me show you one example with duplicate numbers in Column A. So that you can understand the real use of the RANK.AVG Function in Google Sheets.

repeated numbers in data column in rank average

In the above example, the number 10 and 25 repeats twice. See their ranks. If you want, you can get the rank of the value 25 using the non-array formula as below.

=RANK.AVG(25,A1:A5)

The normal RANK formula would return the rank 1 for both the values in cell A3 and A4. The RANK.AVG formula returns 1.5 for both.

Prepare a sample sheet as above and repeat a number more than 2 times in Column A. Then you can understand the pattern of the Rank average.

If the highest number repeats twice, there is an addition of 0.5 with the actual rank. If it’s thrice, the addition with the original rank would be 1. This pattern continues.

If the lowest number repeats there is a subtraction of 0.5 for each repetition as above. That’s all about the RANK.AVG function in Google Sheets. Enjoy!

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Running Total By Month in Excel

This tutorial demonstrates how to calculate the running total by month in a range...

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

More like this

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.