QUARTILE Function (Gnumeric)
Learn the QUARTILE function in Gnumeric: Returns the quartile of a sample.
Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Gnumeric. How formula examples are checked
Quick answer: =QUARTILE(B2:B9,3) finds the third quartile (Q3, inclusive 75th percentile) of numeric input. For the eight recorded processing times below, its independently calculated expected value is 50 minutes. Gnumeric documents Hyndman–Fan method 7 (N−1 basis) for QUARTILE, so results may be between original numbers. Official Gnumeric Statistics reference, section QUARTILE, accessed 2026-10-12.
What QUARTILE answers
Quartiles describe how a sample is spread out. Q1 is the inclusive 25th percentile, Q2 the median, and Q3 the 75th percentile. The interquartile range (IQR) is Q3−Q1, measuring the width of the middle part of the distribution. Quartiles are useful for comparing store-delivery times, transaction sizes and processing queues, especially when one extreme observation would skew an average. They do not, by themselves, establish a causal explanation or a service guarantee.
Exact Gnumeric syntax
=QUARTILE(array,quart)
array(required) — numeric sample/range, e.g.B2:B9. Use number-formatted input cells; precise Gnumeric handling of every mix of text, blanks and spreadsheet error values was not natively tested.quart(required) — quartile selector. Valid values are 0, 1, 2, 3, 4. The official manual documents truncation of noninteger selectors, so2.8is treated as2. No default selector is documented.
| Selector | Result type |
|---|---|
| 0 | Minimum |
| 1 | First quartile (25th percentile) |
| 2 | Median (50th percentile) |
| 3 | Third quartile (75th percentile) |
| 4 | Maximum |
The official guide says an empty array or a selector below 0 or above 4 returns #NUM!. Its public catalogue classifies QUARTILE Complete / Basic, meaning implementation complete with basic project test coverage—not native validation of this tutorial. Gnumeric QUARTILE manual; function catalogue.
Reproduce Q1 and Q3 from eight measurements
Enter the following as numeric processing minutes; do not include the unit inside the cell contents.
On a narrow screen, scroll this table sideways to see every column.
| Cell | A — Job | B — Processing minutes |
|---|---|---|
| A2/B2 | Parcel A | 5 |
| A3/B3 | Parcel B | 10 |
| A4/B4 | Parcel C | 20 |
| A5/B5 | Parcel D | 25 |
| A6/B6 | Parcel E | 31 |
| A7/B7 | Parcel F | 40 |
| A8/B8 | Parcel G | 80 |
| A9/B9 | Parcel H | 100 |
Place the following formulas in D2:D9 or another unused column; keep the dataset fixed in B2:B9.
On a narrow screen, scroll this table sideways to see every column.
| Formula | Independently calculated expected value* | Interpretation |
|---|---|---|
=QUARTILE(B2:B9,0) |
5 | Minimum |
=QUARTILE(B2:B9,1) |
17.5 | Q1 |
=QUARTILE(B2:B9,2) |
28 | Q2 / median |
=QUARTILE(B2:B9,3) |
50 | Q3 |
=QUARTILE(B2:B9,4) |
100 | Maximum |
=QUARTILE(B2:B9,2.8) |
28 | Fractional selector truncated to 2 (official rule) |
=QUARTILE(B2:B9,3)-QUARTILE(B2:B9,1) |
32.5 | Interquartile range |
=PERCENTILE(B2:B9,0.75) |
50 | Same inclusive 75th-percentile convention |
*Outputs are independent expected arithmetic results, not Gnumeric observations. The noninteger-selector output additionally depends on the documented Gnumeric truncation rule and still needs native testing.
Why Q3 can be 50 when no observation equals 50
The ordered observations are 5, 10, 20, 25, 31, 40, 80, 100. Gnumeric’s QUARTILE uses Hyndman–Fan method 7, which positions the pth inclusive percentile at the one-based index h=1+(n−1)×p. For Q3, p=0.75 and n=8, so h=6.25. The sixth observation is 40 and seventh is 80, giving 40+0.25×(80−40)=50. For Q1, the index is 2.75, giving 10+0.75×(20−10)=17.5. Q2 is 28, the mean of 25 and 31. Gnumeric Statistics manual — QUARTILE.
Advanced applications and interpretation
Flag candidates beyond a 1.5×IQR upper fence. The sample IQR is 50−17.5=32.5 and upper fence is 50+1.5×32.5=98.75. To inspect the last record, use:
=IF(B9>QUARTILE($B$2:$B$9,3)+1.5*(QUARTILE($B$2:$B$9,3)-QUARTILE($B$2:$B$9,1)),"Above upper fence","Not above upper fence")
For B9=100, the expected output is Above upper fence; for B8=80, the equivalent copied-row test would be Not above upper fence. This is a conventional screening rule, not proof an observation is invalid or should be removed.
Calculate the lower fence. =QUARTILE($B$2:$B$9,1)-1.5*(QUARTILE($B$2:$B$9,3)-QUARTILE($B$2:$B$9,1)) has expected result −31.25. None of the listed processing times falls below it. Some statisticians and charting tools choose different quartile definitions; document the convention when sharing these calculations.
Compare inclusive and exclusive quartiles without switching silently. Gnumeric documents QUARTILE.EXC using Hyndman–Fan method 6 (N+1), a distinct function and not an alias of QUARTILE. For the same sample, =QUARTILE.EXC(B2:B9,1) is expected to yield 12.5, while =QUARTILE(B2:B9,1) is 17.5; =QUARTILE.EXC(B2:B9,3) is expected 70, versus inclusive Q3 50. Differences are normal and can significantly change outlier flags. Gnumeric QUARTILE and QUARTILE.EXC documentation.
Dynamic windows. Using absolute references such as $B$2:$B$9 prevents moving the sampling window when you copy the formulas. It does not exclude later edits to those cells. If you need consistent month-to-month analysis, keep documented snapshots of the input range.
Errors, data integrity and troubleshooting
| Condition | Result documented or validation required |
|---|---|
=QUARTILE(B2:B9,-1) |
#NUM! expected for selector < 0. |
=QUARTILE(B2:B9,5) |
#NUM! expected for selector > 4. |
=QUARTILE(D20:D28,1) where the entire range is empty |
Official manual: #NUM! for an empty data sample. |
=QUARTILE(B2:B9,2.8) |
Official rule truncates selector to 2; 28 expected, pending native confirmation. |
| Quartiles differ from a dashboard or Excel add-in | Check inclusive versus exclusive algorithms, sample size, data types, exact range and calculation settings. |
| Text/blank/error cell in range | The checked QUARTILE entry does not fully specify each coercion/error-propagation case; no untested error code is asserted here. |
Locale, version and cross-software compatibility
Formulas are shown in the manual’s comma-separated argument notation with period decimal points; localized number entry and separators can vary. Use Gnumeric’s data-type help and localization help when entering 1.5, 2.8 or decimal proportions in a different locale. The official manual marks QUARTILE Excel compatible; Microsoft’s modern QUARTILE.INC documentation uses the inclusive quartile convention and selector 0–4. These statements are documentation checks—not application-to-application test results. Microsoft QUARTILE.INC. QUARTILE.EXC is mathematically different; verify names and availability when converting workbooks between applications.
Related functions and official documentation
PERCENTILE · MEDIAN · MIN · MAX · LARGE · SMALL
- Gnumeric Statistics manual — QUARTILE, QUARTILE.EXC and PERCENTILE — syntax, interpolation methods, error rules and compatibility; accessed 2026-10-12.
- Gnumeric official functions catalogue — catalogue presence and test labels; accessed 2026-10-12.
- Gnumeric 1.12.62 official release announcement — release context; accessed 2026-10-12.
- Microsoft Excel QUARTILE.INC documentation — inclusive-method compatibility comparison; accessed 2026-10-12.
How this guide was checked
The syntax and behaviour are based on the Gnumeric references cited above. The sample calculations were independently checked; they are expected results, not outputs observed in Gnumeric. Test locale-sensitive text conversion and imported files in your own installation. View the example-check record.