Rank Numbers without Repetitive Ranks in google sheets

This article will guide you how to rank numbers in a range with unique ranking in google sheets. How to use the Rank function in google sheets to get a unique ranking for ranges with duplicate values.

Ranking without Repetitive Ranks

Suppose you try to use the RANK function to rank values in a range of cells that have two or more duplicate values. And the RANK function will return the same ranking for duplicate values in the cell range.

For example, if you have a list of data containing values in column A (10, 12, 12, 14, 16), the RANK function will return a list of ranked values in another column as 5, 4, 4, 2, 1. The returned result may not be the one that you expect. Because you maybe expect the result as 5, 4, 3, 2, 1. At this time you can use the RANK function and in combination with COUNTIF function to build a new complex google sheet formula to return a unique ranking value.

The formula is as follows:

=RANK(A2,$A$2:$A$6,0)+COUNTIF($A$2:A2,A2)-1

You can enter the above google sheets formula in cell B2, and then press the Enter key to make the formula take effect;

Rank Numbers without Repetitive Ranks in google sheets1

Fill Handle can be dragged down until the cell B6, so that other cells can also apply the formula.

Rank Numbers without Repetitive Ranks in google sheets1

From the above screenshot you can see that the unique ranking results are sorted in descending order.

If you wish the unique ranking results for the given cell range is sorted in ascending order, you can change the order type of the RANK function to 1, the formula is changed as follows:

=RANK(A2,$A$2:$A$6,1)+COUNTIF($A$2:A2,A2)-1

You can enter the above google sheets formula in cell C2, and then press the Enter key to make the formula take effect;

Then you can be dragged Fill Handle can be dragged down until the cell C6, so that other cells can also apply the formula.

Rank Numbers without Repetitive Ranks in google sheets1

Related Functions


  • Google Sheets RANK Function
    The Google Sheets Rank function is used to return the ranking of a given number from a list. If there are duplicate numbers in the list, then the numbers will be in the same rank.The syntax of the Google Sheets Rank function is explained as follows:The syntax of the Google Sheets Rank function is explained as follows:= RANK (number,reference ,[order])…
  • Google Sheets COUNTIF function
    The google sheets COUNTIF function is used to count the number of cells in a cell range that meet a given condition.The syntax of the Google Sheets COUNTIF function is explained as follows: = COUNTIF (range, criteria)…
Related Posts

Coefficient Of Variation in Excel/Google Sheet

This article will talk about how to calculate the coefficient of variation by formula in a Microsoft Excel spreadsheet or Google Sheets.  What is the Coefficient of Variation? The coefficient of variation is the ratio of the standard deviation of ...

Phone Number Format in Excel

Sometimes when we import phone numbers from external sources, the formatting of the phone numbers is removed. Even if in some situations the phone numbers are not imported from external resource, sometimes the phone numbers in worksheet are not displayed ...

Check Cell If Contains One of Many with Exclusions

In Microsoft Excel Spreadsheet or google sheets, when cells contain multiple strings, how can we accomplish this task if you want to check whether these cells contain more than one given string and exclude other given strings? In this article, ...

If Cell Contain Specific Text

This article will explain how to check if a cell contains text or a specific text string in Google Sheets or Microsoft Excel spreadsheets. In our daily work, we often look for specific text in worksheets containing large amounts of ...

Cell Contains Number

This article will talk about how to check if a given cell contains any numbers in Microsoft Excel Spreadsheet or Google Sheets. How to quickly check if a cell contains a number? When you have a small number of cells ...

Sidebar