Compatibility function

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

Older function. PERCENTRANK still works, but for new workbooks use PERCENTRANK.INC.

Syntax

PERCENTRANK(array, x, [significance])
ArgumentWhat it means
arrayRequiredThe range of numbers.
xRequiredThe value whose rank you want.
significanceOptionalNumber 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

C2fx=PERCENTRANK(A2:A11, 8)
ABC
1Value
2130.666
312
411
58
64
73
82
91
101
111

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

C2fx=PERCENTRANK(A2:A11, 5, 2)
ABC
1Value
2130.58
312
411
58
64
73
82
91
101
111

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.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#N/Ax 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.

LanguageFunction name
DanishPROCENTPLADS
DutchPERCENT.RANG
FinnishPROSENTTIJÄRJESTYS
FrenchRANG.POURCENTAGE
GermanQUANTILSRANG
HungarianSZÁZALÉKRANG
ItalianPERCENT.RANGO
Norwegian (Bokmål)PROSENTDEL
PolishPROCENT.POZYCJA
Portuguese (Brazil)ORDEM.PORCENTUAL
Portuguese (Portugal)ORDEM.PERCENTUAL
RussianПРОЦЕНТРАНГ
SpanishRANGO.PERCENTIL
SwedishPROCENTRANG
TurkishYÜZDERANK