Excel - PERCENTRANK Function



PERCENTRANK Function

The PERCENTRANK function in Microsoft Excel is utilized to calculate the dataset's rank value. The resultant value is usually expressed in the percentage. In some cases, the obtained number will not be changed to the percentage; you may change the cell formatting from the general number to the percentage to the resultant value in percentage. For example, this function can identify the IIT/JEE entrance test's percentile rank.

Compatibility

This advanced excel function is compatible with the following versions of MS-Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2019 for Mac
  • Excel 2016

The PERCENTRANK function interchanges the PERCENTRANK.EXC function from Excel 2010.

Syntax

The syntax of PERCENTRANK function is as follows −

PERCENTRANK(array, x, [significance])

Arguments

You can use the following arguments with the PERCENTRANK function −

Argument Description Required / Optional
Array It specifies the number for which the rank should be calculated. Required
X It can be defined as the value to rank. Required
Significance It represents the significant number of digits. Optional

Points to Remember

  • The PERCENTRANK function will calculate the rank value of a given number from the provided dataset.
  • The PERCENTRANK function retrieves the #Num! Error if the significance is less than 1.
  • The PERCENTRANK function will generate the #N/A! error if the x value is smaller than the minimum or greater than the maximum value in the supplied array.

Examples of PERCENTRANK Function

Practice the following examples to learn the use of the PERCENTRANK function in Excel.

Example 1

The PERCENTRANK function will calculate the rank value of a given number from the provided dataset.

Solution

Step 1 − Enter the sample dataset containing two B and C columns in this example. The various block colors are defined in the range B2:C7, and their corresponding block number values are defined in the cell range C3:C7.

Excel PERCENTRANK Function 1

Step 2 − Now, you can quickly calculate the PERCENTRANK for 5 numbers. Go to the D10 cell, and type formula =PERCENTRANK(C3:C7, C6, 5).

Excel PERCENTRANK Function 2

Step 3 − After that press the Enter key. This will display the number as 0.75, which means 75%.

Excel PERCENTRANK Function 3

As you can observe in the screenshot, the resultant value is not shown in percentage.

Step 4 − To change the formatting, move to the Home tab and then expand the number section, and click on the % button.

Excel PERCENTRANK Function 4

Step 5 − After that press the Enter key.

Excel PERCENTRANK Function 5

Example 2

The PERCENTRANK function, retrieves the #Num! error if the significance is less than 1.

Solution

Step 1 − First, you can type the formula =PERCENTRANK(C3:C7, F3, -1).

In this example, the PERCENTAGE RANK's first argument specifies that the array elements range from C3 to C7, the value of x equals 10, and the significant value should be -1.

Excel PERCENTRANK Function 6

Step 2 − After that, press the Enter key. This function will generate the #NUM! error as the significant value is -1, which is less than 0.

Excel PERCENTRANK Function 7

Example 3

The PERCENTRANK function will generate the #N/A! error if the given value of x is smaller than the minimum or greater than the maximum value in the supplied array.

Solution

Step 1 − First, we will inspect if the value of x is less than the minimum array element, then the PERCENTRANK function will produce which error.

Excel PERCENTRANK Function 8

Step 2 − Go to the D10 cell, and type =PERCENTRANK(C3:C7, F3, 5). This example will take array elements from C3 to C7, and the value of x is equal to 0, which is less than the minimum elements, as the minimum element value is 1.

Excel PERCENTRANK Function 9

Step 3 − After that, press the Enter key.

Excel PERCENTRANK Function 10

Therefore, the PERCENTRANK() function will generate the #N/A error.

Advertisements