QUARTILE Function (LibreOffice Calc)
Learn the QUARTILE function in LibreOffice Calc: Returns the quartile of a sample.
Verification status: Selected examples were executed in LibreOffice Calc 25.2.3.2. This does not establish that every formula and edge case was tested. How formula examples are checked
Availability and version history
- Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
- Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
Quick answer
QUARTILE finds the minimum, first quartile, median, third quartile or maximum of a sample. For B2:B6 containing 10, 20, 30, 40 and 50, =QUARTILE(B2:B6;1) returns 20; use Type 2 for the median (30) or Type 3 for 40. This legacy function follows inclusive quartiles.
When this function is useful
A shipping analyst can summarize delivery times with quartiles instead of relying only on an average. The first quartile marks the time at or below which about a quarter of observations fall under the chosen interpolation method; the third quartile is similarly the 75th percentile. The interquartile range, Q3−Q1, helps communicate the spread of typical results. With the five simple ascending numbers in the practice workbook, Q1 is 20, Q3 is 40, and the interquartile range is 20.
Syntax and parameters
=QUARTILE(Data; Type)
Data — numeric sample range or array; text and empty cells in referenced data are ignored
Type — 0 minimum; 1 25th percentile; 2 median; 3 75th percentile; 4 maximum
LibreOffice Calc Help uses semicolons between parameters in its English-language syntax. A workbook configured for another locale may display a different function name or separator. Prefer cell references for real data and use the Function Wizard to check an unfamiliar argument.
Reproduce the worked examples in Calc
Enter the five numbers 10, 20, 30, 40, 50 into B2:B6.
The following cells are used by this page’s separate native evaluation sheet (they are NOT screenshots). Blank cells not listed are intentionally empty.
| Cell | Input |
|---|---|
B2 |
10 |
B3 |
20 |
B4 |
30 |
B5 |
40 |
B6 |
50 |
Step-by-step
- Enter the five numbers 10, 20, 30, 40, 50 into B2:B6.
- Use
=QUARTILE(B2:B6;1)for the lower quartile. - Use the same data with Type 2 and Type 3 for median and upper quartile.
- For a box-plot summary, calculate
=QUARTILE(B2:B6;3)-QUARTILE(B2:B6;1); the illustrated data yields 20.
Formula, result and explanation
On a narrow screen, scroll this table sideways to see every column.
| Result cell | Formula entered | Confirmed result | Why |
|---|---|---|---|
F2 |
=QUARTILE(B2:B6;1) |
20 | Type 1 selects the 25th percentile of the ordered five-number set: 20. |
F3 |
=QUARTILE(B2:B6;2) |
30 | Type 2 returns the 50th percentile, equal to the median: 30. |
F4 |
=QUARTILE(B2:B6;3) |
40 | Type 3 returns the 75th percentile: 40. |
These exact formulas were evaluated by LibreOffice Calc 25.2.3.2, using an in-memory UNO-controlled Calc document and recalculation. The source sheet and cell-level results are provided in the evidence bundle; display as text may vary with number formatting and locale.
Advanced application and decision points
For a dataset with a different number of observations, Calc may interpolate between neighbouring ordered data points; quartiles need not be data values. The modern explicit alternative QUARTILE.INC uses the same inclusive convention, while QUARTILE.EXC uses an exclusive rank method and may reject small datasets for edge percentiles. Put the chosen method in your report subtitle rather than mixing both definitions. The middle Type 2 result also matches MEDIAN for this dataset.
Errors, edge cases and troubleshooting
- A Type outside 0–4 or a nonnumeric Type is invalid.
- All-text or empty ranges cannot produce meaningful quartiles.
- Text cells are ignored but text-number imports can silently reduce the dataset.
- Different inclusive and exclusive methods can yield different results; specify which you use.
Troubleshooting sequence: First reproduce the small dataset above; verify the cells store numbers, dates or text as intended; check argument separators and missing quotes; then isolate each reference or intermediate step. When a function reports an error, investigate it before wrapping everything in IFERROR—silently replacing errors can hide defective source data.
Excel, Google Sheets and file-compatibility notes
Calc documents QUARTILE and QUARTILE.INC as inclusive-style quartile functions, with QUARTILE.EXC available since LibreOffice 4.3. Excel offers comparable QUARTILE.INC and QUARTILE.EXC names, but default method choices differ across statistics software; confirm the definition before comparing published results. The function is available in the installed Calc 25.2 used for the tests.
Related Calc guides
PERCENTILE · PERCENTILE.INC · QUARTILE.INC · QUARTILE.EXC · MEDIAN
Official documentation, version scope and evidence
- Primary vendor reference: LibreOffice Calc Help — QUARTILE. Current help-site rendering consulted 2026-10-11 (shown as LibreOffice 26.8 Help); note that the executed test version is older.
- Function availability: legacy function supported in tested Calc 25.2. Do not read this note as an assertion that every earlier Calc release supports every optional argument.
- Native testing: 3/3 listed scalar formulas passed on LibreOffice Calc 25.2.3.2 via UNO; results and workbook retained in
evidence/. - Not tested: full alternate-locale behavior, every error case, other office suites, round-trip XLSX/ODS conversion, screenshots, and (where relevant) interactive array placement / AutoFilter interaction. Any added advanced research formula not in the result table is illustrative only.
How this guide was checked
Selected example formulas were run in LibreOffice Calc 25.2.3.2 on Linux on October 12, 2026. The official Help may cover a newer version. Tests of selected formulas do not certify every locale, interactive array operation or file round trip. View the example-check record.