Statistical function

QUARTILE.INC function

Returns a quartile of a data set (0 = min, 1 = 25th percentile, 2 = median, 3 = 75th percentile, 4 = max) using the inclusive 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

QUARTILE.INC(array, quart)
ArgumentWhat it means
arrayRequiredThe range of numbers.
quartRequired0 minimum, 1 first quartile, 2 median, 3 third quartile, 4 maximum.

Returns: The quartile value, interpolated where necessary.

How QUARTILE.INC works

Quartiles summarise a data set in five numbers: the minimum, Q1, the median, Q3 and the maximum. Together they show the centre, the spread and any lopsidedness at a glance, which is why salary surveys and performance dashboards report them. The middle 50% of the data lies between Q1 and Q3.

QUARTILE.INC is the same as PERCENTILE.INC(array, quart/4): Excel sorts the values, computes the position quart/4 × (n − 1) + 1, and interpolates between neighbours if the position is fractional. Quart 0 and 4 return the minimum and maximum. It gives the same results as the older QUARTILE function. QUARTILE.EXC uses a slightly different position formula and gives wider quartiles on small samples.

Examples

1First quartile of delivery times

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

Result: 16.5

Sorted: 12, 15, 17, 20, 22, 25, 31, 40. Position = 0.25 × 7 + 1 = 2.75: 15 + 0.75 × 2 = 16.5.

2Third quartile

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

Result: 26.5

Position = 0.75 × 7 + 1 = 6.25: 25 + 0.25 × 6 = 26.5. The middle half of deliveries takes between 16.5 and 26.5 hours.

3Five-number summary in one formula

D2fx=QUARTILE.INC(A2:B5, {0;1;2;3;4})
ABCD
1Delivery hours
2122212
3152516.5
4173121
5204026.5
640

Passing all five quart values spills the minimum, Q1, median, Q3 and maximum into D2:D6 (Microsoft 365 and Excel 2021+).

4Interquartile range for outlier limits

D2fx=QUARTILE.INC(A2:B5, 3) + 1.5*(QUARTILE.INC(A2:B5, 3)-QUARTILE.INC(A2:B5, 1))
ABCD
1Delivery hours
2122241.5
31525
41731
52040

Result: 41.5

IQR = 26.5 − 16.5 = 10. The upper fence is 26.5 + 1.5 × 10 = 41.5 hours, so the 40-hour delivery is just inside it and not flagged as an outlier.

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

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!quart is below 0 or above 4, or the array has no numbers.Use quart 0 to 4.
#VALUE!quart is text.Use a number.

Tips

  • QUARTILE.INC(range, 2) equals MEDIAN(range); 0 and 4 equal MIN and MAX.
  • Excel's box-and-whisker chart uses the exclusive method by default; switch the chart's quartile calculation to inclusive if you want it to match QUARTILE.INC.

Questions

Should I use QUARTILE.INC or QUARTILE.EXC?

Use INC to match older Excel reports and when you need the min and max (quart 0 and 4). Use EXC to match statistics software or Excel's box plot default. Pick one and be consistent.

Is QUARTILE the same as QUARTILE.INC?

Yes. QUARTILE is the compatibility name for the same inclusive calculation.

Google Sheets

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

QUARTILE.INC 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.INC
DanishKVARTIL.MEDTAG
DutchKWARTIEL.INC
FinnishNELJÄNNES.SIS
FrenchQUARTILE.INCLURE
GermanQUARTILE.INKL
HungarianKVARTILIS.TARTALMAZ
ItalianINC.QUARTILE
Norwegian (Bokmål)KVARTIL.INK
PolishKWARTYL.PRZEDZ.ZAMK
Portuguese (Brazil)QUARTIL.INC
Portuguese (Portugal)QUARTIL.INC
RussianКВАРТИЛЬ.ВКЛ
SpanishCUARTIL.INC
SwedishKVARTIL.INK
TurkishDÖRTTEBİRLİK.DHL