QUARTILE.EXC function
Returns the first, second or third quartile of data using the exclusive method (the one used by many statistics packages).
Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later
Excel 2010 and laterWorks in Google Sheets
Syntax
QUARTILE.EXC(array, quart)| Argument | What it means | |
|---|---|---|
array | Required | The range of numbers. |
quart | Required | 1 for the first quartile (25th percentile), 2 for the median, 3 for the third quartile (75th percentile). |
Returns: The quartile value, interpolated where necessary.
How QUARTILE.EXC works
Quartiles cut sorted data into four equal parts. The first quartile (Q1) has a quarter of the data below it, the second (Q2) is the median, and the third (Q3) has three quarters below it. The distance between Q1 and Q3, the interquartile range (IQR), measures the spread of the middle half of the data and is the basis of the box plot and of the common rule for spotting outliers.
QUARTILE.EXC is PERCENTILE.EXC(array, quart/4): the position is quart/4 × (n + 1), interpolated between neighbours. It accepts only 1, 2 and 3; there is no exclusive 0th or 4th quartile. Its results are slightly further out than QUARTILE.INC on small data sets. Excel's own box-and-whisker chart uses the exclusive method by default, so use QUARTILE.EXC if you want your numbers to match the chart.
Examples
1First quartile of delivery times
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Delivery hours | |||
| 2 | 12 | 22 | 15.5 | |
| 3 | 15 | 25 | ||
| 4 | 17 | 31 | ||
| 5 | 20 | 40 |
Result: 15.5
Sorted: 12, 15, 17, 20, 22, 25, 31, 40. Position = 0.25 × 9 = 2.25: 15 + 0.25 × 2 = 15.5.
2Third quartile
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Delivery hours | |||
| 2 | 12 | 22 | 29.5 | |
| 3 | 15 | 25 | ||
| 4 | 17 | 31 | ||
| 5 | 20 | 40 |
Result: 29.5
Position = 0.75 × 9 = 6.75: 25 + 0.75 × (31 − 25) = 29.5. The interquartile range is 29.5 − 15.5 = 14 hours.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | quart is 0, 4 or outside 1–3, or the array has too few values. | Use quart 1, 2 or 3; use QUARTILE.INC if you need the min or max. |
#VALUE! | quart is text. | Use a number. |
Tips
- Outlier fences (Tukey's rule): below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.
quartdecimals are truncated: 2.9 is treated as 2.
Google Sheets
QUARTILE.EXC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
QUARTILE.EXC 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.EXC |
| Danish | KVARTIL.UDELAD |
| Dutch | KWARTIEL.EXC |
| Finnish | NELJÄNNES.ULK |
| French | QUARTILE.EXCLURE |
| German | QUARTILE.EXKL |
| Hungarian | KVARTILIS.KIZÁR |
| Italian | ESC.QUARTILE |
| Norwegian (Bokmål) | KVARTIL.EKS |
| Polish | KWARTYL.PRZEDZ.OTW |
| Portuguese (Brazil) | QUARTIL.EXC |
| Portuguese (Portugal) | QUARTIL.EXC |
| Russian | КВАРТИЛЬ.ИСКЛ |
| Spanish | CUARTIL.EXC |
| Swedish | KVARTIL.EXK |
| Turkish | DÖRTTEBİRLİK.HRC |