Formualizer Docs

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

ArgumentTypeRequiredDefault
arraynumber (range)Required—
quartnumber (range)Required—

Remarks

  • Valid quartile index values are 0, 1, 2, 3, and 4.
  • Uses inclusive percentile logic for quartiles 1 through 3.
  • Alias QUARTILE is 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)

Input cells
A
110
220
330
440

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?.

FAQ

Which quartile numbers are valid for QUARTILE.INC?

Only 0 through 4 are valid; other quartile indices return #NUM!.

Implementation

Engine source

On this page