PERCENTRANK function
Returns the rank of a value as a percentage of the data set (0 to 1, inclusive), truncated to 3 digits by default. Replaced by PERCENTRANK.INC.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)
In every Excel versionWorks in Google Sheets
Syntax
PERCENTRANK(array, x, [significance])| Argument | What it means | |
|---|---|---|
array | Required | The range of numbers. |
x | Required | The value whose rank you want. |
significance | Optional | Number of significant digits for the result. Default 3. The result is truncated, not rounded. |
Returns: A fraction from 0 to 1.
How PERCENTRANK works
PERCENTRANK is the reverse of PERCENTILE: you give a value and it tells you what fraction of the data lies below it. A student whose score has a percent rank of 0.85 did better than 85% of the class (as Excel counts it).
For a value in the data, the result is (number of values smaller than x) ÷ (n − 1). For a value between two data points, Excel interpolates. Two surprises: the result is truncated to significance digits (0.6667 becomes 0.666, not 0.667), and values outside the data range return #N/A.
Compatibility note: PERCENTRANK is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends PERCENTRANK.INC. Results are identical, so rename it. PERCENTRANK.EXC uses an exclusive definition and never returns exactly 0 or 1.
Examples
1Percent rank of a value in the data
| A | B | C | |
|---|---|---|---|
| 1 | Value | ||
| 2 | 13 | 0.666 | |
| 3 | 12 | ||
| 4 | 11 | ||
| 5 | 8 | ||
| 6 | 4 | ||
| 7 | 3 | ||
| 8 | 2 | ||
| 9 | 1 | ||
| 10 | 1 | ||
| 11 | 1 |
Result: 0.666
Six of the ten values are smaller than 8, and n − 1 = 9, so the rank is 6/9 = 0.6667 — truncated to 3 digits: 0.666.
2Interpolated value with 2 digits
| A | B | C | |
|---|---|---|---|
| 1 | Value | ||
| 2 | 13 | 0.58 | |
| 3 | 12 | ||
| 4 | 11 | ||
| 5 | 8 | ||
| 6 | 4 | ||
| 7 | 3 | ||
| 8 | 2 | ||
| 9 | 1 | ||
| 10 | 1 | ||
| 11 | 1 |
Result: 0.58
5 is not in the data; it lies a quarter of the way from 4 (rank 5/9) to 8 (rank 6/9), giving 0.5833. With 3 digits that would show 0.583; with significance = 2 it is truncated to 0.58.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#N/A | x is smaller than the minimum or larger than the maximum of the data. | Check that x lies within the data range. |
#NUM! | The array is empty or significance is less than 1. | Check the inputs. |
Tips
- Format the result as a percentage to show 0.666 as 66.6%.
- Because of truncation, PERCENTRANK(…)*100 can be 0.1 lower than you expect from rounding.
Questions
Should I still use PERCENTRANK?
Only if the workbook must open in Excel 2007 or earlier. Otherwise use PERCENTRANK.INC, which gives the same result and makes the intent clearer to the next person who reads the formula.
Will PERCENTRANK stop working?
There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.
Google Sheets
PERCENTRANK also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
PERCENTRANK in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | PROCENTPLADS |
| Dutch | PERCENT.RANG |
| Finnish | PROSENTTIJÄRJESTYS |
| French | RANG.POURCENTAGE |
| German | QUANTILSRANG |
| Hungarian | SZÁZALÉKRANG |
| Italian | PERCENT.RANGO |
| Norwegian (Bokmål) | PROSENTDEL |
| Polish | PROCENT.POZYCJA |
| Portuguese (Brazil) | ORDEM.PORCENTUAL |
| Portuguese (Portugal) | ORDEM.PERCENTUAL |
| Russian | ПРОЦЕНТРАНГ |
| Spanish | RANGO.PERCENTIL |
| Swedish | PROCENTRANG |
| Turkish | YÜZDERANK |