QUARTILE.INC
Returns an inclusive quartile value for a data set.
QUARTILE.INC maps quartile index 0..4 onto minimum, quartiles, median, and maximum.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=QUARTILE.INC(array, quart)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
array | number (range) | Required | — |
quart | number (range) | Required | — |
Remarks
- Valid quartile index values are
0,1,2,3, and4. - Uses inclusive percentile logic for quartiles
1through3. - Alias
QUARTILEis supported.
Error cases
- Returns
#NUM!for invalid quartile index values or empty numeric input.
Examples
Find the first quartile of five ordered values.
Formula =QUARTILE.INC({10,20,30,40,50},1)
Expected result 20
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Find the corresponding upper quartile.
Formula =QUARTILE.INC({10,20,30,40,50},3)
Expected result 40
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The second quartile is the median of this sample.
Formula =QUARTILE.INC({10,20,30,40,50},2)
Expected result 30
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Quartile five is outside the supported range.
Formula =QUARTILE.INC({10,20,30,40,50},5)
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
First quartile from direct values
Formula =QUARTILE.INC({1,2,3,4,5},1)
Expected result 2
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Third quartile from a range
Formula =QUARTILE.INC(A1:A4,3)
| A | |
|---|---|
| 1 | 10 |
| 2 | 20 |
| 3 | 30 |
| 4 | 40 |
Expected result 32.5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Which quartile numbers are valid for QUARTILE.INC?
Only 0 through 4 are valid; other quartile indices return #NUM!.