In Excel 2010, the PERCENTRANK function has been renamed the PERCENTRANK.INC function.
The Excel Percentrank function calculates the relative position of a specified value, within a set of values, as a percentage.
The syntax of the function is:
Where the function arguments are listed in the table below:
|array||-||The array of values within which you want to find the relative position of a specific value.|
|x||-||x must be within the range of the values in the supplied array, but it does not need to be exactly equal to one of the values. If x is not found in the array, the array values are interpolated to calculate the percentage rank).(|
|[significance]||-||(By default the returned percentage value is accurate to 3 significant digits).|
In cells B1-B4 of the spreadsheet below, the Excel Percentrank Function is used to calculate the relative position of various values within the array of values in cells A1-A9.
Note that, in cell B2 of the spreadsheet above, when calculating the percentrank for the value 7, the function interpolates one third of the way between the percentrank for 6.5 (=37.5%) and the percentrank for 8 (=50.0%).
The resulting value, 41.6666666666667% is rounded down to 5 significant figures, as specified by the supplied [significance] argument.
Further examples of the Excel Percentrank function are provided on the Microsoft Office website
If you get an error from the Excel Percentrank function this is likely to be one of the following:
|#N/A||-||Occurs if the supplied value of x is smaller than the minimum, or greater than the maximum value in the supplied array.|
Also, the following formatting problem is encountered by some users:
If the result of your Percentrank function is presented as a decimal, or shows 0%, this is likely to be due to the formatting of the cell containing the function.
This can therefore be fixed by formatting the cell as a percentage, with decimal places. This can be done using one of the following methods:
The easiest way to change cell formatting is to select the cell(s) to be formatted and then select the percentage button from the 'Number' group on the Home tab of the Excel ribbon (see below):
If you have an older version of Excel, that does not have the ribbon, you can change the formatting of an Excel cell via the following steps: