PERCENTRANK.INC function
Returns the rank of a value in a data set as a percentage from 0 to 1 inclusive, e.g. which percentile a salary or score is at.
Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later
Excel 2010 and laterWorks in Google Sheets
Syntax
PERCENTRANK.INC(array, x, [significance])| Argument | What it means | |
|---|---|---|
array | Required | The range of numbers. |
x | Required | The value to rank, between the minimum and maximum of array. |
significance | Optional | Number of significant digits to keep (default 3). Extra digits are truncated. |
Returns: A number from 0 (the minimum) to 1 (the maximum).
How PERCENTRANK.INC works
How does one salary, score or sales figure compare with the rest? PERCENTRANK.INC answers in percentage terms: 0 for the lowest value, 1 for the highest, 0.5 for the exact middle. It is the reverse of PERCENTILE.INC, and the same calculation as the older PERCENTRANK.
For a value that appears in the data the rule is: rank = (number of values smaller than x) / (n − 1). For a value that falls between two data points Excel interpolates linearly between their ranks. Then comes a detail many people miss: the result is truncated (cut off, not rounded) to significance digits, 3 by default. 1/3 shows as 0.333 and 0.6666… as 0.666. Values outside the data's range return #N/A.
Examples
1Where a score stands
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Test scores | ||||
| 2 | 48 | 67 | 81 | 0.5 | |
| 3 | 55 | 72 | 88 | ||
| 4 | 61 | 75 | 94 |
Result: 0.5
Nine scores; four are below 72. Rank = 4 / (9 − 1) = 0.5: the score sits exactly in the middle (50% when formatted as a percentage).
2Interpolating between scores
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Test scores | ||||
| 2 | 48 | 67 | 81 | 0.45 | |
| 3 | 55 | 72 | 88 | ||
| 4 | 61 | 75 | 94 |
Result: 0.45
67 has rank 3/8 = 0.375 and 72 has 0.5. 70 is 3/5 of the way, giving 0.375 + 0.6 × 0.125 = 0.45.
3Truncation with significance 2
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Test scores | ||||
| 2 | 48 | 67 | 81 | 0.42 | |
| 3 | 55 | 72 | 88 | ||
| 4 | 61 | 75 | 94 |
Result: 0.42
The exact rank of 69 is 0.425. With two significant digits it is truncated to 0.42, not rounded to 0.43.
4Salary position with a repeating fraction
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Employee | Salary | ||
| 2 | Ana | 32000 | 0.333 | |
| 3 | Ben | 41000 | ||
| 4 | Chloe | 47000 | ||
| 5 | Dev | 60000 |
Result: 0.333
One salary is lower than Ben's, so 1 / (4 − 1) = 0.3333…, truncated to 3 digits: 0.333.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#N/A | x is outside the range of the data. | Rank only values between MIN and MAX of the array. |
#NUM! | significance is below 1, or the array has no numbers. | Use significance ≥ 1. |
Tips
- Format as a percentage: 0.333 shows as 33.3%.
- Tied values all get the same rank, based on how many values are strictly smaller.
- For an ordinal position (1st, 2nd, …) use RANK.EQ instead.
Google Sheets
PERCENTRANK.INC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
PERCENTRANK.INC 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.MEDTAG |
| Dutch | PROCENTRANG.INC |
| Finnish | PROSENTTIJÄRJESTYS.SIS |
| French | RANG.POURCENTAGE.INCLURE |
| German | QUANTILSRANG.INKL |
| Hungarian | SZÁZALÉKRANG.TARTALMAZ |
| Italian | INC.PERCENT.RANGO |
| Norwegian (Bokmål) | PROSENTDEL.INK |
| Polish | PROC.POZ.PRZEDZ.ZAMK |
| Portuguese (Brazil) | ORDEM.PORCENTUAL.INC |
| Portuguese (Portugal) | ORDEM.PERCENTUAL.INC |
| Russian | ПРОЦЕНТРАНГ.ВКЛ |
| Spanish | RANGO.PERCENTIL.INC |
| Swedish | PROCENTRANG.INK |
| Turkish | YÜZDERANK.DHL |