Contact

QUARTILE.INC in Excel: Quartiles, IQR and Explicit Outlier Fences

Statistical Intermediate Microsoft Excel

Review QUARTILE.INC and legacy QUARTILE selectors, inclusive interpolation, truncation and migration differences from QUARTILE.EXC.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: QUARTILE.INC(array,quart) returns one of five inclusive summary points: minimum, lower quartile, median, upper quartile or maximum. The second argument is a selector from 0 to 4, not a percentile fraction.

Availability and version history

  • Introduced: the Microsoft function catalogue marks QUARTILE.INC as an Excel 2010 addition; an exact first build or preview date is not established here.
  • Availability: official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
  • Checked: October 14, 2026; official QUARTILE.INC reference. Documentation and independently modeled examples; no native Excel execution or broader platform certification.

Syntax and selectors

=QUARTILE.INC(array, quart)

Both arguments are required. The selectors are 0=min, 1=25th percentile, 2=median, 3=75th percentile, and 4=max. Microsoft documents truncation of a noninteger selector.

For example, 1.9 selects the first quartile after truncation. Supplying 0.25 does not request the 25th percentile: it truncates to selector zero. Use 1 for that quartile, or PERCENTILE.INC with a fraction of 0.25.

Example 1: inspect all five summary points

Enter 2, 4, 8, 10, 14, 18, 22 and 30 in A2:A9.

Formula Expected result
=QUARTILE.INC(A2:A9,0) 2
=QUARTILE.INC(A2:A9,1) 7
=QUARTILE.INC(A2:A9,2) 12
=QUARTILE.INC(A2:A9,3) 19
=QUARTILE.INC(A2:A9,4) 30

For the lower quartile, the inclusive position is 1+7*0.25=2.75; 4+0.75*(8-4)=7. The upper position is 6.25, giving 18+0.25*(22-18)=19. The median averages 10 and 14.

Example 2: measure the middle spread

=QUARTILE.INC(A2:A9,3)-QUARTILE.INC(A2:A9,1)

Expected interquartile range: 12. This is a difference in the same units as the observations. It is not a percentage of the maximum and does not have the same meaning as the full range, 30-2=28.

For a fictional duration dataset measured in minutes, the IQR would be 12 minutes. Retain the units when comparing reports from different measurement systems.

Advanced example: implement a stated fence rule

A common exploratory policy flags observations below Q1-1.5*IQR or above Q3+1.5*IQR. This guide uses that policy as an explicitly chosen calculation, not as a universal definition of invalid data.

Put Q1 in D2, Q3 in D3 and =D3-D2 in D4. Put =D2-1.5*D4 in D5 and =D3+1.5*D4 in D6. The fences are -11 and 37. None of the original eight values crosses them.

In B2:B9 make a separate copy with the last value changed from 30 to 80. Q1 remains 7, Q3 remains 19, and IQR remains 12. The upper fence remains 37, so only 80 is flagged by:

=COUNTIF(B2:B9,">"&D6)

Expected count: 1. Investigate that record; the arithmetic alone does not show that it is erroneous or should be deleted.

Advanced check: selector and endpoint mistakes

On the original A2:A9, =QUARTILE.INC(A2:A9,1.9) gives 7, while =QUARTILE.INC(A2:A9,0.25) gives 2. The latter is a minimum, not the lower quartile.

MIN, MEDIAN and MAX provide independent controls for selectors 0, 2 and 4. The exact first and third quartiles can fall between observations, so they need not appear as rows in the source table.

Errors and convention

The reference specifies #NUM! for an empty array or selectors outside 0–4. The examples do not establish the order of validation and truncation for negative fractions or values just above 4; use the documented integer selectors for unambiguous requests.

QUARTILE.EXC uses a different convention and excludes selectors 0 and 4 under its explicit error rule. Do not combine the lower quartile from one convention with the upper quartile from another. Mixed-type and error-valued input handling remains outside these all-numeric controls.

References and verification

Expected results are independent statistical/arithmetic models or explicitly documented rules, not captured native output. Examples use English function names and comma separators. Datasets and reporting policies are fictional.

Legacy QUARTILE compatibility contract

=QUARTILE(array,quart) requires both arguments. Selectors 0, 1, 2, 3 and 4 request minimum, lower quartile, median, upper quartile and maximum. Microsoft specifies integer truncation of quart and #NUM! for an empty array or quart outside 0–4. Its current page does not settle the order of truncation versus validation at fractional boundaries. Use documented integer selectors for unambiguous requests. QUARTILE.INC is the migration counterpart; QUARTILE.EXC uses another convention.

Original legacy example and independent check

In a fresh worksheet enter 6, 10, 18, 26, 42, 58 in A2:A7. =QUARTILE(A2:A7,1) independently targets 12, since inclusive position 1+5*0.25=2.25 gives 10+0.25*(18-10). Selector 3 targets 38, from position 4.75 and 26+0.75*(42-26). Their interquartile range is 26. Selectors 0, 2 and 4 target 6, 22 and 58 respectively.

Migration traps

Keep quart=1 when renaming to QUARTILE.INC; entering 0.25 is a selector mistake, not the first quartile. Under the documented positive-fraction truncation, quart=1.9 requests the first quartile. The exclusive lower-quartile position for these six observations is 1.75, giving 9 instead of 12, so replacing QUARTILE with QUARTILE.EXC changes the calculation. Do not mix conventions when constructing IQR or outlier fences. Numeric examples are independently interpolated targets, not native Excel observations.

Compatibility and verification scope

Checked October 19, 2026 against the Microsoft legacy QUARTILE reference. Its current Applies To list includes Microsoft 365 (Windows/Mac), Excel 2024 and 2021 (Windows/Mac), 2019 and 2016. The Excel 2010 function-change reference places the renamed counterpart in that transition and retains old names for backward compatibility. This does not date the original legacy function’s introduction. Compatibility status is not retirement: no removal release or last-working build is established here. Keep old-workbook compatibility needs in view, test before migration, and do not assume identical numerical behavior across versions. This addition is a documentation review with independent calculations; it supplies no native Excel evidence.