PERCENTRANK.EXC function
Returns the rank of a value in a data set as a percentage strictly between 0 and 1, using the exclusive method.
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.EXC(array, x, [significance])| Argument | What it means | |
|---|---|---|
array | Required | The range of numbers. |
x | Required | The value whose rank you want. It must lie between the smallest and largest value in array. |
significance | Optional | The number of significant digits to keep. Default 3. Extra digits are truncated, not rounded. |
Returns: A number strictly between 0 and 1.
How PERCENTRANK.EXC works
PERCENTRANK.EXC is the reverse of PERCENTILE.EXC: instead of turning a percentage into a value, it tells you where a value stands as a percentage. A score with a percent rank of 0.5 sits in the middle of the group. The exclusive method assumes your data is a sample, so even the smallest value gets a rank above 0 and the largest a rank below 1.
The rule: for a value that appears in the data, rank = (number of values smaller than x + 1) / (n + 1). For a value between two data points, Excel interpolates linearly between their ranks. The result is then truncated to significance digits (3 by default), so 0.4666… becomes 0.466, not 0.467. If x is below the minimum or above the maximum, you get #N/A.
Examples
1Percent rank of a score in the data
| 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
Four of the nine scores are below 72, so the rank is (4 + 1) / (9 + 1) = 0.5.
2A value between two data points
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Test scores | ||||
| 2 | 48 | 67 | 81 | 0.46 | |
| 3 | 55 | 72 | 88 | ||
| 4 | 61 | 75 | 94 |
Result: 0.46
70 is not in the data. 67 has rank 0.4 and 72 has rank 0.5; 70 is 3/5 of the way between them, so 0.4 + 0.6 × 0.1 = 0.46.
3Fewer digits are truncated
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Test scores | ||||
| 2 | 48 | 67 | 81 | 0.4 | |
| 3 | 55 | 72 | 88 | ||
| 4 | 61 | 75 | 94 |
Result: 0.4
With significance 1, 0.46 is cut to 0.4, not rounded up to 0.5.
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 array. | Only rank values inside the data's range. |
#NUM! | significance is less than 1, or the array is empty. | Use a significance of 1 or more. |
Tips
- Format the result as a percentage to read 0.5 as 50%.
- If you want rounding rather than truncation, use a large significance and wrap it:
=ROUND(PERCENTRANK.EXC(r,x,10),2).
Google Sheets
PERCENTRANK.EXC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
PERCENTRANK.EXC 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.UDELAD |
| Dutch | PROCENTRANG.EXC |
| Finnish | PROSENTTIJÄRJESTYS.ULK |
| French | RANG.POURCENTAGE.EXCLURE |
| German | QUANTILSRANG.EXKL |
| Hungarian | SZÁZALÉKRANG.KIZÁR |
| Italian | ESC.PERCENT.RANGO |
| Norwegian (Bokmål) | PROSENTDEL.EKS |
| Polish | PROC.POZ.PRZEDZ.OTW |
| Portuguese (Brazil) | ORDEM.PORCENTUAL.EXC |
| Portuguese (Portugal) | ORDEM.PERCENTUAL.EXC |
| Russian | ПРОЦЕНТРАНГ.ИСКЛ |
| Spanish | RANGO.PERCENTIL.EXC |
| Swedish | PROCENTRANG.EXK |
| Turkish | YÜZDERANK.HRC |