Example 1
The first quartile
B13 =QUARTILE.INC(B2:B11,1)
Result: 152.5
The position is 1 + 0.25 × 9 = 3.25: the 3rd value (150) plus a quarter of the step to the 4th (160).
B13 =QUARTILE.INC(B2:B11,1) returns 152.5
Returns the minimum, first quartile, median, third quartile or maximum of a data set, using the inclusive method.
Syntax
=QUARTILE.INC(, )
Excel 2010 and later, including Excel for Microsoft 365 and Excel for the web. The older QUARTILE function works in every version.
Try it
Edit the formula in B13 or change the inputs. The sheet recalculates as you type.
B13 =QUARTILE.INC(B2:B11,1) returns 152.5
QUARTILE.INC splits a sorted data set into four equal parts and returns the cut points. It is the quickest way to describe how spread out values are, and the building block of box plots and outlier checks.
0 returns the minimum, the same as MIN.1 returns the first quartile: 25% of values fall below it.2 returns the median, the same as MEDIAN.3 returns the third quartile: 75% of values fall below it.4 returns the maximum, the same as MAX.Any other number, including 5 or a negative number, returns #NUM!. A fraction is cut down to a whole number.
QUARTILE.INC is PERCENTILE.INC at 0, 0.25, 0.5, 0.75 and 1. For n values the position is 1 + k × (n − 1), and Excel interpolates when the position is not a whole number. With nine values the first quartile sits at position 1 + 0.25 × 8 = 3, which is exactly the third value, so no interpolation is needed.
The distance from Q1 to Q3 is the interquartile range (IQR):
=QUARTILE.INC(B2:B11,3) - QUARTILE.INC(B2:B11,1)
It describes the spread of the middle half of the data and is not distorted by extreme values, unlike the range or the standard deviation. A common rule flags a value as a possible outlier when it is more than 1.5 × IQR below Q1 or above Q3.
QUARTILE.INC uses the inclusive method, where quartile 0 is the minimum and 4 is the maximum. A second function, QUARTILE.EXC, uses the exclusive method and only accepts 1, 2 and 3, and gives slightly different Q1 and Q3 values for the same data. If a standard or textbook you follow specifies exclusive quartiles, use QUARTILE.EXC. Otherwise QUARTILE.INC is the usual default.
The older QUARTILE function returns the same results as QUARTILE.INC and is kept for compatibility. Use QUARTILE.INC in new work, so the method is clear from the name.
B2:B11. Text and blanks are ignored.0 the minimum, 1 the first quartile (25th percentile), 2 the median, 3 the third quartile (75th percentile), 4 the maximum. Any other number returns #NUM!.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B13 =QUARTILE.INC(B2:B11,1)
Result: 152.5
The position is 1 + 0.25 × 9 = 3.25: the 3rd value (150) plus a quarter of the step to the 4th (160).
B13 =QUARTILE.INC(B2:B11,1) returns 152.5
Example 2
B13 =QUARTILE.INC(B2:B11,3)
Result: 223.75
The position is 1 + 0.75 × 9 = 7.75: the 7th value (205) plus 75% of the step to the 8th (230).
B13 =QUARTILE.INC(B2:B11,3) returns 223.75
Example 3
B13 =QUARTILE.INC(B2:B11,3)-QUARTILE.INC(B2:B11,1)
Result: 71.25
Q3 is 223.75 and Q1 is 152.5, so the middle half of the data spans 71.25 ms.
B13 =QUARTILE.INC(B2:B11,3)-QUARTILE.INC(B2:B11,1) returns 71.25
Example 4
B13 =QUARTILE.INC(B2:B11,3)+1.5*(QUARTILE.INC(B2:B11,3)-QUARTILE.INC(B2:B11,1))
Result: 330.625
Q3 plus 1.5 times the IQR is 223.75 + 106.875. A response time above 330.625 would be flagged as a possible outlier. The slowest here, 310, is inside the fence.
B13 =QUARTILE.INC(B2:B11,3)+1.5*(QUARTILE.INC(B2:B11,3)-QUARTILE.INC(B2:B11,1)) returns 330.625
Example 5
B13 =QUARTILE.INC(B2:B5,5)
Result: #NUM!
Only 0 to 4 are valid.
B13 =QUARTILE.INC(B2:B5,5) returns #NUM!
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B12, return the first quartile of the daily order counts.
Answer in B12.
QUARTILE.INC(B2:B11,25) returns #NUM!, because quart is not a percentage.They return the same results. QUARTILE.INC is the newer name from Excel 2010, and QUARTILE is kept for compatibility.
INC treats the data as a whole population and allows quart 0 to 4. EXC uses a sample method and allows only 1 to 3, and its Q1 and Q3 are usually further from the median.
Subtract Q1 from Q3: `=QUARTILE.INC(B2:B11,3)-QUARTILE.INC(B2:B11,1)`.
Yes. `=QUARTILE.INC(B2:B11,2)` equals `=MEDIAN(B2:B11)`.
QUARTILE.INC is taught in Data analysis with formulas, lesson 16: MEDIAN, PERCENTILE and QUARTILE. Each lesson is a short, graded exercise like the one above.