Compatibility function

QUARTILE function

Returns a quartile of a data set (minimum, Q1, median, Q3 or maximum) using the inclusive method. Replaced by QUARTILE.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. QUARTILE still works, but for new workbooks use QUARTILE.INC.

Syntax

QUARTILE(array, quart)
ArgumentWhat it means
arrayRequiredThe range of numbers.
quartRequired0 = minimum, 1 = first quartile (25th percentile), 2 = median, 3 = third quartile (75th percentile), 4 = maximum. Decimals are truncated.

Returns: The requested quartile value.

How QUARTILE works

Quartiles split sorted data into four equal parts. The first quartile (Q1) has a quarter of the values below it, the second is the median, and the third (Q3) has three quarters below it. Together with the minimum and maximum they make the "five-number summary" behind a box-and-whisker plot, and Q3 − Q1 is the interquartile range, a robust measure of spread.

QUARTILE is simply PERCENTILE with k = 0, 0.25, 0.5, 0.75 or 1 and uses the same inclusive interpolation. Other software (and QUARTILE.EXC) may use a different method, so quartiles of small data sets can differ slightly between tools.

Compatibility note: QUARTILE 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 QUARTILE.INC. Results are identical; rename it.

Examples

1First quartile of delivery times

C2fx=QUARTILE(A2:A9, 1)
ABC
1Delivery (min)
21216.5
315
417
520
622
725
830
941

Result: 16.5

Position 0.25 × 7 = 1.75 lies three quarters of the way from 15 to 17, giving 16.5.

2Interquartile range

C2fx=QUARTILE(A2:A9, 3)-QUARTILE(A2:A9, 1)
ABC
1Delivery (min)
2129.75
315
417
520
622
725
830
941

Result: 9.75

Q3 is 26.25 and Q1 is 16.5, so the middle half of deliveries spans 9.75 minutes. Values more than 1.5 × IQR above Q3 (here above 40.875) are often flagged as outliers, so the 41-minute delivery deserves a closer look.

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

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!quart is below 0 or above 4, or the array is empty.Use 0–4 for quart.
#VALUE!quart is non-numeric.Check quart.

Tips

  • QUARTILE(range, 2) equals MEDIAN.
  • For a box plot in Excel 2016 and later, use Insert > Chart > Box and Whisker instead of building it by hand.

Questions

Should I still use QUARTILE?

Only if the workbook must open in Excel 2007 or earlier. Otherwise use QUARTILE.INC, which gives the same result and makes the intent clearer to the next person who reads the formula.

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

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

QUARTILE 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
DanishKVARTIL
DutchKWARTIEL
FinnishNELJÄNNES
HungarianKVARTILIS
Norwegian (Bokmål)KVARTIL
PolishKWARTYL
Portuguese (Brazil)QUARTIL
Portuguese (Portugal)QUARTIL
RussianКВАРТИЛЬ
SpanishCUARTIL
SwedishKVARTIL
TurkishDÖRTTEBİRLİK