Statistics function
QUARTILE.INC function in Google Sheets and Excel
QUARTILE.INC returns a quartile of a data set: the minimum, the 25th percentile, the median, the 75th percentile or the maximum.
Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet
- Excel 2016
- Excel 2019
- Excel 2021
- Excel 2024
- Microsoft 365
- Google Sheets
Syntax
QUARTILE.INC(array, quart)Arguments in [brackets] are optional. Google Sheets writes it QUARTILE.INC(data, quartile_number).
Example
=QUARTILE.INC(D2:D13,1) reads: Return the first quartile of the scores in D2:D13: the value a quarter of them sit at or below.
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Student | Class | Hours | Score | From | Grade | Q1 | 59.5 | ||
| 2 | Noor | A | 2 | 48 | 0 | F | ||||
| 3 | Mateo | B | 5 | 66 | 50 | D | ||||
| 4 | Hana | A | 8 | 81 | 60 | C | ||||
| 5 | Ollie | B | 3 | 55 | 70 | B | ||||
| 6 | Zara | A | 10 | 93 | 85 | A | ||||
| 7 | Ivan | B | 6 | 72 | ||||||
| 8 | Lea | A | 1 | 39 | ||||||
| 9 | Omar | B | 7 | 77 | ||||||
| 10 | Sara | A | 9 | 88 | ||||||
| 11 | Theo | B | 4 | 61 | ||||||
| 12 | Yuki | A | 6 | 70 | ||||||
| 13 | Bea | B | 8 | 84 |
J1 shows 59.5: a quarter of the scores are at or below it.
How the spreadsheet calculates it
A quartile of a range (0 to 4). Here it's given D2:D13 and 1.
- 1. QUARTILE.INC: A quartile of a range (0 to 4). Here it's given
D2:D13and1.range=`D2:D13`: the numbersquart=`1`: `1`, `2` or `3` (0 and 4 are the minimum and maximum)
More QUARTILE.INC examples
=QUARTILE.INC(D2:D13,3)The third quartile: 81.75 on the exam sheet.=QUARTILE.INC(D2:D13,3)-QUARTILE.INC(D2:D13,1)The interquartile range: the spread of the middle half.=QUARTILE.INC(D2:D13,{0,1,2,3,4})All five quartiles at once, spilled across a row.=D2<QUARTILE.INC($D$2:$D$13,1)TRUE for scores in the bottom quarter (fill down).
Paste any of these into the formula explainer to see it step by step.
Tips
- Show all five quartiles in a row for a quick summary of the data.
- Use quartiles 1 and 3 together: the middle half of the data sits between them.
- Name the version (.INC or .EXC) in any report, since they give different values.
What QUARTILE.INC is used for
Five-number summaries for reports and box plots, spotting outliers beyond the quartiles, splitting customers or products into four bands, and comparing the middle half of two groups.
Arguments
| Argument | Required | What it is |
|---|---|---|
| array | Yes | The numbers, such as D2:D13. |
| quart | Yes | Which quartile: 0 minimum, 1 the 25th percentile, 2 the median, 3 the 75th percentile, 4 maximum. Microsoft's page says a non-whole number is truncated.Watch out: Below 0 or above 4 gives #NUM!. |
Common mistakes
Mixing up QUARTILE.INC and QUARTILE.EXC: EXC excludes the ends and gives slightly different values.
Typing 25 for the first quartile: quart is 0 to 4, not a percentage. For other percentiles use PERCENTILE.INC.
Expecting a value from the list: like PERCENTILE.INC, it interpolates between the two nearest values.
Calculating the spread from quartile 4 minus 0 and calling it the interquartile range: that's the full range. The interquartile range is quartile 3 minus quartile 1.
In Google Sheets
Google Sheets has QUARTILE.INC with the same two arguments (QUARTILE.INC(data, quartile_number)), and the older name QUARTILE.
Errors you may see with QUARTILE.INC
Questions
How do I calculate the interquartile range?
Subtract the first quartile from the third: QUARTILE.INC(D2:D13,3)-QUARTILE.INC(D2:D13,1). On the exam sheet that's 81.75 minus 59.5.
What's the difference between QUARTILE.INC and QUARTILE.EXC?
INC includes the minimum and maximum (quart 0 and 4); EXC excludes them and gives slightly different first and third quartiles. QUARTILE, the older name, matches INC.
Are quartiles the same as MIN, MEDIAN and MAX?
Quartiles 0, 2 and 4 return the same values as MIN, MEDIAN and MAX, as Microsoft's page notes. Quartiles 1 and 3 are the extra information.
Sources
Official documentation the facts on this page were checked against.