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
Example 1. First quartile
=QUARTILE.INC({1,2,4,7,8,9,10,12}, 1)An example from Microsoft: 3.5.
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.
Example 3. Same as the median
=QUARTILE.INC(A2:A20, 2)Equals MEDIAN(A2:A20).
Common mistakes
Values outside 0–4
Entering 5 or -1 returns #NUM!.
Mixing it up with QUARTILE.EXC
EXC excludes 0% and 100%, so its values differ slightly.
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.