QUARTILE function
Returns a quartile of a data set (minimum, Q1, median, Q3 or maximum) using the inclusive method. Replaced by QUARTILE.INC.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)
In every Excel versionWorks in Google Sheets
Syntax
QUARTILE(array, quart)| Argument | What it means | |
|---|---|---|
array | Required | The range of numbers. |
quart | Required | 0 = minimum, 1 = first quartile (25th percentile), 2 = median, 3 = third quartile (75th percentile), 4 = maximum. Decimals are truncated. |
Returns: The requested quartile value.
How QUARTILE works
Quartiles split sorted data into four equal parts. The first quartile (Q1) has a quarter of the values below it, the second is the median, and the third (Q3) has three quarters below it. Together with the minimum and maximum they make the "five-number summary" behind a box-and-whisker plot, and Q3 − Q1 is the interquartile range, a robust measure of spread.
QUARTILE is simply PERCENTILE with k = 0, 0.25, 0.5, 0.75 or 1 and uses the same inclusive interpolation. Other software (and QUARTILE.EXC) may use a different method, so quartiles of small data sets can differ slightly between tools.
Compatibility note: QUARTILE is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends QUARTILE.INC. Results are identical; rename it.
Examples
1First quartile of delivery times
| A | B | C | |
|---|---|---|---|
| 1 | Delivery (min) | ||
| 2 | 12 | 16.5 | |
| 3 | 15 | ||
| 4 | 17 | ||
| 5 | 20 | ||
| 6 | 22 | ||
| 7 | 25 | ||
| 8 | 30 | ||
| 9 | 41 |
Result: 16.5
Position 0.25 × 7 = 1.75 lies three quarters of the way from 15 to 17, giving 16.5.
2Interquartile range
| A | B | C | |
|---|---|---|---|
| 1 | Delivery (min) | ||
| 2 | 12 | 9.75 | |
| 3 | 15 | ||
| 4 | 17 | ||
| 5 | 20 | ||
| 6 | 22 | ||
| 7 | 25 | ||
| 8 | 30 | ||
| 9 | 41 |
Result: 9.75
Q3 is 26.25 and Q1 is 16.5, so the middle half of deliveries spans 9.75 minutes. Values more than 1.5 × IQR above Q3 (here above 40.875) are often flagged as outliers, so the 41-minute delivery deserves a closer look.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | quart is below 0 or above 4, or the array is empty. | Use 0–4 for quart. |
#VALUE! | quart is non-numeric. | Check quart. |
Tips
- QUARTILE(range, 2) equals MEDIAN.
- For a box plot in Excel 2016 and later, use Insert > Chart > Box and Whisker instead of building it by hand.
Questions
Should I still use QUARTILE?
Only if the workbook must open in Excel 2007 or earlier. Otherwise use QUARTILE.INC, which gives the same result and makes the intent clearer to the next person who reads the formula.
Will QUARTILE stop working?
There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.
Google Sheets
QUARTILE also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
QUARTILE in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | QUARTIL |
| Danish | KVARTIL |
| Dutch | KWARTIEL |
| Finnish | NELJÄNNES |
| Hungarian | KVARTILIS |
| Norwegian (Bokmål) | KVARTIL |
| Polish | KWARTYL |
| Portuguese (Brazil) | QUARTIL |
| Portuguese (Portugal) | QUARTIL |
| Russian | КВАРТИЛЬ |
| Spanish | CUARTIL |
| Swedish | KVARTIL |
| Turkish | DÖRTTEBİRLİK |