Function · Ranking and percentiles

Excel PERCENTILE.EXC function

The Excel PERCENTILE.EXC function returns a percentile that leaves out 0 and 1. On 10 home sales the 90th percentile is $459,500. PERCENTILE.INC is $335,500.

Excel 2010 and later, including Microsoft 365, Excel 2024, Excel 2021, Excel 2019, and Excel for the web. Also in Google Sheets.

Syntax =PERCENTILE.EXC(array, k)

PERCENTILE.EXC
=PERCENTILE.EXC(B2:B11,0.9)

Arguments

NameRequiredWhat to pass
arrayRequiredThe numbers. Excel sorts them itself. Text and blanks in the range are ignored. A range with no numbers is #NUM!.
kRequiredThe percentile as a fraction greater than 0 and less than 1. 0.9 is the 90th percentile. For n numbers, k also has to sit from 1/(n+1) through n/(n+1). The low end returns the minimum and the high end returns the maximum. A k outside that span, or 0, 1, or 90, is #NUM!. Text is #VALUE!.

Examples

90th percentile of 10 home closings, exclusive and inclusive

=PERCENTILE.EXC(B2:B11,0.9)

Result $459,500

25th percentile of the same closings

=PERCENTILE.EXC(B2:B11,0.25)

Result $195,000

50th percentile, which matches the median

=PERCENTILE.EXC(B2:B11,0.5)

Result $247,500

k of 0.05 is outside the window for 10 prices

=PERCENTILE.EXC(B2:B11,0.05)

Result #NUM!

=PERCENTILE.EXC(B2:B11,0.9)B12
Closings
AB
1ClosingPrice
23/13/2026255000
33/2/2026165000
43/20/2026320000
53/6/2026200000
63/27/2026475000
73/11/2026240000
83/18/2026280000
93/4/2026180000
103/16/2026270000
113/9/2026220000
1290th exclusive459500
1390th inclusive335500
A picture of the sheet, not a live calculator. The rows are in closing-date order. Excel sorts the prices before it interpolates. B12 is the exclusive 90th percentile. B13 is PERCENTILE.INC at the same 0.9. Currency format shows $459,500 and $335,500.

PERCENTILE.EXC returns the value at a fraction of the way through a sorted list, and it leaves out the ends of the percent scale. On a 3/31/2026 report of ten home closings, from $165,000 on 3/2/2026 to $475,000 on 3/27/2026, =PERCENTILE.EXC(B2:B11,0.9) is $459,500. PERCENTILE.INC of the same ten prices at the same 0.9 is $335,500. That $124,000 gap is the difference between the exclusive formula and the inclusive formula. The sheet can list the closings in any order. Excel sorts the prices before it picks the stop.

The exclusive rank is (n+1) × k. Here n is 10, so the 90th percentile sits at 0.9 × 11 = 9.9, which is 0.9 of the way from the 9th price, $320,000, to the 10th price, $475,000. 320,000 + 0.9 × 155,000 = 459,500. The inclusive rank is 1 + (n−1) × k, so the same 90th percentile sits at 1 + 0.9 × 9 = 9.1, only 0.1 of the way from $320,000 to $475,000, which is $335,500. The older name PERCENTILE follows the inclusive calculation. PERCENTILE of these prices at 0.9 is $335,500, the same figure as PERCENTILE.INC.

The 25th percentile splits the same way. =PERCENTILE.EXC(B2:B11,0.25) is $195,000. The rank is 0.25 × 11 = 2.75, so 0.75 of the way from the 2nd price, $180,000, to the 3rd price, $200,000. PERCENTILE.INC at 0.25 is $205,000, from the rank 1 + 0.25 × 9 = 3.25, which falls between the 3rd price, $200,000, and the 4th price, $220,000. QUARTILE.EXC at quart 1 is this same $195,000, because quart 1 is the exclusive percentile at 0.25. In the middle the two percentile functions meet. =PERCENTILE.EXC(B2:B11,0.5) is $247,500, halfway from $240,000 to $255,000. PERCENTILE.INC at 0.5 is $247,500. MEDIAN of the ten prices is $247,500.

k has to be greater than 0 and less than 1, and for n numbers it also has to sit from 1/(n+1) through n/(n+1). Those two ends are legal. They return the minimum and the maximum, because the rank lands on the first price or the last price and no interpolation is left to do. On these 10 closings the span runs from 1/11 through 10/11. =PERCENTILE.EXC(B2:B11,1/11) is $165,000. =PERCENTILE.EXC(B2:B11,10/11) is $475,000. A k below that span, or above it, is #NUM!. =PERCENTILE.EXC(B2:B11,0.05) is #NUM!, because 0.05 × 11 = 0.55, which is below 1. PERCENTILE.INC of 0.05 is $171,750. =PERCENTILE.EXC(B2:B11,0.95) is #NUM!. PERCENTILE.INC of 0.95 is $405,250. k of 0 and k of 1 are #NUM!. MIN and MAX are the functions for those two ends, and PERCENTILE.INC returns them at 0 and at 1. The number 90 is #NUM! as well. k is a fraction, so the 90th percentile is 0.9. A cell with a percent format that displays 90% is stored as 0.9, and that stored value is legal.

Text and blanks in the range are ignored. A header that slips into the range stays out of the count. A range with no numbers is #NUM!. Text passed as k is #VALUE!. =PERCENTILE.EXC(B2:B11,"high") returns #VALUE!.

QUARTILE.EXC of this list at quart 1, 2, or 3 equals PERCENTILE.EXC at 0.25, 0.5, or 0.75. QUARTILE.INC is the inclusive set of quarter stops, including the minimum at quart 0 and the maximum at quart 4. PERCENTRANK.INC runs the question the other way, from a price back to a fraction of the list. PERCENTRANK.EXC is the exclusive rank. It has no page here. The z-score LAMBDA places one price in sample standard deviations from the average of its own list, which is a different scale from a percentile. PERCENTILE.EXC is in Excel 2010 and later, including Microsoft 365, Excel 2024, Excel 2021, Excel 2019, and Excel for the web. Google Sheets has it too.