Excel function

QUARTILE.INCfunction

Returns a quartile of the data (the 0%, 25%, 50%, 75% or 100% point).

All versions
=QUARTILE.INC(B2:D6, 1)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change range. Set quart to 0, 2 and 4. You get the same values as MIN, MEDIAN and MAX. Try breaking it on purpose to see the errors.

Result

84.5

range
B2:D6Drag the corner dots on the table

The cells to calculate. Cells that are not numbers are ignored.

quart

0 minimum, 1 first quartile (25%), 2 median, 3 third quartile (75%), 4 maximum.

What is the QUARTILE.INC function?

=QUARTILE.INC(array, quart)

QUARTILE.INC sorts the data and returns the boundaries that split it into four parts. 1 is the lower 25% boundary, 2 is the median, 3 is the upper 25% boundary.

It is the same calculation as PERCENTILE.INC(array, quart/4). When a boundary falls between two values, it returns a value between them in proportion.

Arguments

array
The range of numbers. Text and blank cells are ignored.
quart
0 minimum, 1 first quartile, 2 median, 3 third quartile, 4 maximum. Decimals are truncated.

QUARTILE.INC examples

  1. Example 1. First quartile

    =QUARTILE.INC({1,2,4,7,8,9,10,12}, 1)

    An example from Microsoft: 3.5.

  2. Example 2. Interquartile range (IQR)

    =QUARTILE.INC(A2:A20,3)-QUARTILE.INC(A2:A20,1)

    The spread of the middle 50%. Useful for spotting outliers.

  3. Example 3. Same as the median

    =QUARTILE.INC(A2:A20, 2)

    Equals MEDIAN(A2:A20).

Common mistakes

FAQ

Is it the same as QUARTILE?
QUARTILE is kept for compatibility and calculates the same as QUARTILE.INC.
Box plot values?
Quartiles 0–4 are the five numbers of a box plot.