Statistical function

QUARTILE.EXC function

Returns the first, second or third quartile of data using the exclusive method (the one used by many statistics packages).

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

QUARTILE.EXC(array, quart)
ArgumentWhat it means
arrayRequiredThe range of numbers.
quartRequired1 for the first quartile (25th percentile), 2 for the median, 3 for the third quartile (75th percentile).

Returns: The quartile value, interpolated where necessary.

How QUARTILE.EXC works

Quartiles cut sorted data into four equal parts. The first quartile (Q1) has a quarter of the data below it, the second (Q2) is the median, and the third (Q3) has three quarters below it. The distance between Q1 and Q3, the interquartile range (IQR), measures the spread of the middle half of the data and is the basis of the box plot and of the common rule for spotting outliers.

QUARTILE.EXC is PERCENTILE.EXC(array, quart/4): the position is quart/4 × (n + 1), interpolated between neighbours. It accepts only 1, 2 and 3; there is no exclusive 0th or 4th quartile. Its results are slightly further out than QUARTILE.INC on small data sets. Excel's own box-and-whisker chart uses the exclusive method by default, so use QUARTILE.EXC if you want your numbers to match the chart.

Examples

1First quartile of delivery times

D2fx=QUARTILE.EXC(A2:B5, 1)
ABCD
1Delivery hours
2122215.5
31525
41731
52040

Result: 15.5

Sorted: 12, 15, 17, 20, 22, 25, 31, 40. Position = 0.25 × 9 = 2.25: 15 + 0.25 × 2 = 15.5.

2Third quartile

D2fx=QUARTILE.EXC(A2:B5, 3)
ABCD
1Delivery hours
2122229.5
31525
41731
52040

Result: 29.5

Position = 0.75 × 9 = 6.75: 25 + 0.75 × (31 − 25) = 29.5. The interquartile range is 29.5 − 15.5 = 14 hours.

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

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!quart is 0, 4 or outside 1–3, or the array has too few values.Use quart 1, 2 or 3; use QUARTILE.INC if you need the min or max.
#VALUE!quart is text.Use a number.

Tips

  • Outlier fences (Tukey's rule): below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.
  • quart decimals are truncated: 2.9 is treated as 2.

Google Sheets

QUARTILE.EXC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

QUARTILE.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.

LanguageFunction name
CzechQUARTIL.EXC
DanishKVARTIL.UDELAD
DutchKWARTIEL.EXC
FinnishNELJÄNNES.ULK
FrenchQUARTILE.EXCLURE
GermanQUARTILE.EXKL
HungarianKVARTILIS.KIZÁR
ItalianESC.QUARTILE
Norwegian (Bokmål)KVARTIL.EKS
PolishKWARTYL.PRZEDZ.OTW
Portuguese (Brazil)QUARTIL.EXC
Portuguese (Portugal)QUARTIL.EXC
RussianКВАРТИЛЬ.ИСКЛ
SpanishCUARTIL.EXC
SwedishKVARTIL.EXK
TurkishDÖRTTEBİRLİK.HRC