QUARTILE Function in Apple Numbers: Syntax, Examples and Troubleshooting
Step-by-step Apple Numbers QUARTILE formulas, reproducible examples, limits, locales and troubleshooting.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =QUARTILE(B2:J2,1) returns 5 for Apple’s nine-score example; =QUARTILE(B2:J2,3) returns 9. The first quartile marks the 25th percentile and the third quartile marks the 75th percentile in the documented function model. Use =QUARTILE(B2:J2,3)-QUARTILE(B2:J2,1) to calculate this example’s interquartile range (IQR) = 4.
Availability and version history
- Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
- Availability: Currently documented for Numbers in that help version; it is not a final supported-version endpoint.
- Scope: Shared iWork function help; individual client and older-release availability is not established by this check.
- Checked: October 14, 2026, against the official QUARTILE reference. Documentation and independent arithmetic checks; no native Numbers test.
What problem does QUARTILE solve?
A quartile partitions an ordered numerical distribution into four broad quarters. Instead of quoting only an average, a seller tracking order values, a teacher reviewing marks or an operations analyst studying delivery times can use Q1, median and Q3 to understand the center and spread of a measured sample. The middle 50% of results lies between the first and third quartiles under the chosen quartile convention. Apple’s QUARTILE page explicitly maps modes 0–4 to minimum, Q1, median, Q3 and maximum.
The function returns a number from the input distribution’s scale, not a percentage rank. For the reverse question—what fraction describes a specified value’s standing?—see Apple’s PERCENTRANK help.
Exact Apple syntax, argument order and types
=QUARTILE(num-set, quartile-num)
| Position | Argument | Required? | Apple-documented input | Default |
|---|---|---|---|---|
| 1 | num-set |
Yes | A collection containing number values; use a numerical range such as B2:J2. Apple does not document mixed date/time and duration value sets for this function. |
None |
| 2 | quartile-num |
Yes | A modal value selecting one of 0, 1, 2, 3, 4 as described below. | None |
There is no documented optional argument or omitted-value default. Apple’s user-facing term modal value means a mode selector, not the statistical MODE function. Modes 0 and 4 return the lowest and highest values, respectively, while mode 2 returns the median. Use one of the five documented selectors; invalid or fractional modes are covered under troubleshooting.
quartile-num |
Apple label | Meaning | For the nine test numbers |
|---|---|---|---|
0 |
smallest | Minimum | 2 |
1 |
first | Q1 / 25th percentile | 5 |
2 |
second | Q2 / median / 50th percentile | 7 |
3 |
third | Q3 / 75th percentile | 9 |
4 |
largest | Maximum | 14 |
Apple states that modes 0, 2, and 4 return the same results as MIN, MEDIAN, and MAX for the same qualifying data. These are useful consistency checks for the numeric sample.
Reproducible worksheet: five-number summary
- Create a Numbers table named Scores with at least columns A:J and ten rows. In B2:J2, enter the numbers exactly as Apple specifies. Preserve numeric cell types, not strings.
- Below or beside the inputs, place the five formulas shown in the next table into empty result cells. When entering a formula inside Scores, the range is simply
B2:J2. If the formula lives in a different table and needs qualification, useScores::B2:J2. Apple documents these Numbers-specific references. - Compare each returned value against the documented outputs. If any result differs, first verify that the table contains all nine exact numeric observations and that
quartile-numis in the second argument position.
| Cell | B2 | C2 | D2 | E2 | F2 | G2 | H2 | I2 | J2 |
|---|---|---|---|---|---|---|---|---|---|
| Value | 5 | 6 | 9 | 3 | 7 | 11 | 8 | 2 | 14 |
| Formula | Apple’s documented result | Interpretation |
|---|---|---|
=QUARTILE(B2:J2,0) |
2 | Minimum. |
=QUARTILE(B2:J2,1) |
5 | First quartile / Q1. |
=QUARTILE(B2:J2,2) |
7 | Middle / Q2. |
=QUARTILE(B2:J2,3) |
9 | Third quartile / Q3. |
=QUARTILE(B2:J2,4) |
14 | Maximum. |
=MEDIAN(B2:J2) |
7 | Independent equality check expected from Apple’s note for mode 2. |
For an independent check, sort the nine numbers to get 2, 3, 5, 6, 7, 8, 9, 11, 14. On this nine-point example, Q1 is the third ordered value (5), the middle is the fifth (7), and Q3 is the seventh (9); the endpoints are 2 and 14. Do not generalize that hand-counting shortcut to every even-sized sample: different quartile definitions can produce different answers, and this source does not settle all algorithms and edge cases.
Advanced example: interquartile range (IQR)
The IQR measures the span from Q1 to Q3, an exploratory spread measure less directly affected by a single extreme than the total range. In an empty cell in Scores enter:
=QUARTILE(B2:J2,3)-QUARTILE(B2:J2,1)
Expected result: 9 - 5 = 4. Apple documents each quartile value; the subtraction is independent arithmetic. This formula assumes data are valid numeric observations. The IQR is measured in the same units as your observations, not as a percentage.
Exploratory outlier fences: worked from the example
Some analysts use Tukey-style exploratory fences defined by Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. This is a statistical technique derived independently, not a special promise by Apple about QUARTILE. For this exact data:
Lower: =QUARTILE(B2:J2,1)-1.5*(QUARTILE(B2:J2,3)-QUARTILE(B2:J2,1))
Upper: =QUARTILE(B2:J2,3)+1.5*(QUARTILE(B2:J2,3)-QUARTILE(B2:J2,1))
The words Lower: and Upper: are labels, not part of formulas; enter the part beginning with =. Expected lower fence: 5 − 1.5×4 = −1. Expected upper fence: 9 + 1.5×4 = 15. Every sample observation (2 to 14) falls inside those illustrative fences. These fences flag values for investigation, not automatic deletion, and are not confidence intervals. For uneven distributions, small samples and alternative quartile conventions, decisions require methodological judgment.
Compare with MIN, MEDIAN, MAX and PERCENTRANK
=MIN(B2:J2), =MEDIAN(B2:J2) and =MAX(B2:J2) are useful cross-checks for QUARTILE(…,0), QUARTILE(…,2) and QUARTILE(…,4) respectively, as Apple explicitly notes. By contrast, =PERCENTRANK(B2:J2,9) independently gives about 0.750 as a rank fraction, whereas =QUARTILE(B2:J2,3) gives 9, a data value. Don’t interchange the two functions or divide a quartile result by 100.
Regional separators and table references
Apple’s English-language function signatures separate arguments with commas, for example =QUARTILE(B2:J2,1). If spreadsheet region settings use a comma as the decimal separator, Apple instructs users to separate function arguments using semicolons: =QUARTILE(B2:J2;1). This is about delimiters; it does not change the meanings of the selected quartiles.
For formulas in another Numbers table, qualify the range with Scores::B2:J2 when necessary; a range is written with one colon between endpoint cell references, whereas a table qualifier uses two colons. In a different sheet use Apple’s documented Sheet Name::Table Name::Range pattern. Avoid Excel’s Sheet1!B2:J2 sheet-reference format. When copying formulas, Apple’s $ absolute references can fix selected rows or columns if the example requires it.
Troubleshooting: unexpected results, invalid modes and limits
| Issue | How to check it |
|---|---|
=QUARTILE(B2:J2) has an error |
You omitted required quartile-num; provide 0–4. Apple’s syntax has two arguments with no stated default. |
| Quartile 1 returns something other than Apple’s example 5 | Verify numeric inputs in B2:J2 exactly match all nine published values; check that the second argument is 1. |
| Mode 4 is mistaken for the fourth data value | Mode 4 means the largest observation, not array position 4; it returns 14 in this sample. |
| A string or date/time appears in the source range | Apple’s QUARTILE input is explicitly a collection of number values. Clean the input or use another suitably documented function; unlike PERCENTRANK, Apple’s QUARTILE page does not list dates/durations as accepted types. |
Some scores were entered as "7 pts" |
Those are text rather than numeric observations; enter the number 7 and apply Number formatting or a separate units column. |
Parser rejects , in the formula |
Check decimal separator settings; if comma denotes the decimal mark, use ; between arguments. |
| Formula copied to another table says range unknown | In Numbers, check Scores::B2:J2 / sheet-table qualification and use formula editor’s range selection. |
| A different workbook computes a different Q1 for a small/even sample | Verify the software and quartile convention. Apple’s published nine-observation example documents results, not every interpolation rule or cross-application equivalence. |
quartile-num outside 0–4 or fractional |
Apple’s allowed modes are 0, 1, 2, 3, 4; avoid unsupported modes. The official page does not specify fractional-mode coercion or exact error messages. |
| Empty ranges, hidden rows, booleans, ties or missing values | The official page does not specify these cases fully; verify the behavior in your Numbers version before relying on it. |
Checked related functions and sources
- Apple QUARTILE — authority for the syntax, five modes and published outputs.
- Apple PERCENTRANK — complementary relative-ranking function, not a quartile value.
- Apple functions overview — locale separators and required/optional syntax conventions.
- Apple cell references — range, table and sheet addressing;
$anchors.