QUARTILE.INC function
Returns a quartile of a data set (0 = min, 1 = 25th percentile, 2 = median, 3 = 75th percentile, 4 = max) using the inclusive method.
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.INC(array, quart)| Argument | What it means | |
|---|---|---|
array | Required | The range of numbers. |
quart | Required | 0 minimum, 1 first quartile, 2 median, 3 third quartile, 4 maximum. |
Returns: The quartile value, interpolated where necessary.
How QUARTILE.INC works
Quartiles summarise a data set in five numbers: the minimum, Q1, the median, Q3 and the maximum. Together they show the centre, the spread and any lopsidedness at a glance, which is why salary surveys and performance dashboards report them. The middle 50% of the data lies between Q1 and Q3.
QUARTILE.INC is the same as PERCENTILE.INC(array, quart/4): Excel sorts the values, computes the position quart/4 × (n − 1) + 1, and interpolates between neighbours if the position is fractional. Quart 0 and 4 return the minimum and maximum. It gives the same results as the older QUARTILE function. QUARTILE.EXC uses a slightly different position formula and gives wider quartiles on small samples.
Examples
1First quartile of delivery times
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Delivery hours | |||
| 2 | 12 | 22 | 16.5 | |
| 3 | 15 | 25 | ||
| 4 | 17 | 31 | ||
| 5 | 20 | 40 |
Result: 16.5
Sorted: 12, 15, 17, 20, 22, 25, 31, 40. Position = 0.25 × 7 + 1 = 2.75: 15 + 0.75 × 2 = 16.5.
2Third quartile
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Delivery hours | |||
| 2 | 12 | 22 | 26.5 | |
| 3 | 15 | 25 | ||
| 4 | 17 | 31 | ||
| 5 | 20 | 40 |
Result: 26.5
Position = 0.75 × 7 + 1 = 6.25: 25 + 0.25 × 6 = 26.5. The middle half of deliveries takes between 16.5 and 26.5 hours.
3Five-number summary in one formula
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Delivery hours | |||
| 2 | 12 | 22 | 12 | |
| 3 | 15 | 25 | 16.5 | |
| 4 | 17 | 31 | 21 | |
| 5 | 20 | 40 | 26.5 | |
| 6 | 40 |
Passing all five quart values spills the minimum, Q1, median, Q3 and maximum into D2:D6 (Microsoft 365 and Excel 2021+).
4Interquartile range for outlier limits
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Delivery hours | |||
| 2 | 12 | 22 | 41.5 | |
| 3 | 15 | 25 | ||
| 4 | 17 | 31 | ||
| 5 | 20 | 40 |
Result: 41.5
IQR = 26.5 − 16.5 = 10. The upper fence is 26.5 + 1.5 × 10 = 41.5 hours, so the 40-hour delivery is just inside it and not flagged as an outlier.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | quart is below 0 or above 4, or the array has no numbers. | Use quart 0 to 4. |
#VALUE! | quart is text. | Use a number. |
Tips
- QUARTILE.INC(range, 2) equals MEDIAN(range); 0 and 4 equal MIN and MAX.
- Excel's box-and-whisker chart uses the exclusive method by default; switch the chart's quartile calculation to inclusive if you want it to match QUARTILE.INC.
Questions
Should I use QUARTILE.INC or QUARTILE.EXC?
Use INC to match older Excel reports and when you need the min and max (quart 0 and 4). Use EXC to match statistics software or Excel's box plot default. Pick one and be consistent.
Is QUARTILE the same as QUARTILE.INC?
Yes. QUARTILE is the compatibility name for the same inclusive calculation.
Google Sheets
QUARTILE.INC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
QUARTILE.INC 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.INC |
| Danish | KVARTIL.MEDTAG |
| Dutch | KWARTIEL.INC |
| Finnish | NELJÄNNES.SIS |
| French | QUARTILE.INCLURE |
| German | QUARTILE.INKL |
| Hungarian | KVARTILIS.TARTALMAZ |
| Italian | INC.QUARTILE |
| Norwegian (Bokmål) | KVARTIL.INK |
| Polish | KWARTYL.PRZEDZ.ZAMK |
| Portuguese (Brazil) | QUARTIL.INC |
| Portuguese (Portugal) | QUARTIL.INC |
| Russian | КВАРТИЛЬ.ВКЛ |
| Spanish | CUARTIL.INC |
| Swedish | KVARTIL.INK |
| Turkish | DÖRTTEBİRLİK.DHL |