formulastreak

Statistics function

QUARTILE.INC function in Google Sheets and Excel

QUARTILE.INC returns a quartile of a data set: the minimum, the 25th percentile, the median, the 75th percentile or the maximum.

Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet

Syntax

QUARTILE.INC(array, quart)

Arguments in [brackets] are optional. Google Sheets writes it QUARTILE.INC(data, quartile_number).

Example

=QUARTILE.INC(D2:D13,1) reads: Return the first quartile of the scores in D2:D13: the value a quarter of them sit at or below.

Exam results · edit J1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultJ1 = 59.5
ABCDEFGHIJ
1StudentClassHoursScoreFromGradeQ159.5
2NoorA2480F
3MateoB56650D
4HanaA88160C
5OllieB35570B
6ZaraA109385A
7IvanB672
8LeaA139
9OmarB777
10SaraA988
11TheoB461
12YukiA670
13BeaB884

J1 shows 59.5: a quarter of the scores are at or below it.

How the spreadsheet calculates it

A quartile of a range (0 to 4). Here it's given D2:D13 and 1.

  1. 1. QUARTILE.INC: A quartile of a range (0 to 4). Here it's given D2:D13 and 1.
    • range = `D2:D13`: the numbers
    • quart = `1`: `1`, `2` or `3` (0 and 4 are the minimum and maximum)

More QUARTILE.INC examples

  • =QUARTILE.INC(D2:D13,3)The third quartile: 81.75 on the exam sheet.
  • =QUARTILE.INC(D2:D13,3)-QUARTILE.INC(D2:D13,1)The interquartile range: the spread of the middle half.
  • =QUARTILE.INC(D2:D13,{0,1,2,3,4})All five quartiles at once, spilled across a row.
  • =D2<QUARTILE.INC($D$2:$D$13,1)TRUE for scores in the bottom quarter (fill down).

Paste any of these into the formula explainer to see it step by step.

Tips

  • Show all five quartiles in a row for a quick summary of the data.
  • Use quartiles 1 and 3 together: the middle half of the data sits between them.
  • Name the version (.INC or .EXC) in any report, since they give different values.

What QUARTILE.INC is used for

Five-number summaries for reports and box plots, spotting outliers beyond the quartiles, splitting customers or products into four bands, and comparing the middle half of two groups.

Arguments

ArgumentRequiredWhat it is
arrayYesThe numbers, such as D2:D13.
quartYesWhich quartile: 0 minimum, 1 the 25th percentile, 2 the median, 3 the 75th percentile, 4 maximum. Microsoft's page says a non-whole number is truncated.Watch out: Below 0 or above 4 gives #NUM!.

Common mistakes

  • Mixing up QUARTILE.INC and QUARTILE.EXC: EXC excludes the ends and gives slightly different values.

  • Typing 25 for the first quartile: quart is 0 to 4, not a percentage. For other percentiles use PERCENTILE.INC.

  • Expecting a value from the list: like PERCENTILE.INC, it interpolates between the two nearest values.

  • Calculating the spread from quartile 4 minus 0 and calling it the interquartile range: that's the full range. The interquartile range is quartile 3 minus quartile 1.

In Google Sheets

Google Sheets has QUARTILE.INC with the same two arguments (QUARTILE.INC(data, quartile_number)), and the older name QUARTILE.

Errors you may see with QUARTILE.INC

  • #NUM!: quart is below 0 or above 4, or the array is empty.
  • #VALUE!: quart is text that can't be read as a number.

Questions

How do I calculate the interquartile range?

Subtract the first quartile from the third: QUARTILE.INC(D2:D13,3)-QUARTILE.INC(D2:D13,1). On the exam sheet that's 81.75 minus 59.5.

What's the difference between QUARTILE.INC and QUARTILE.EXC?

INC includes the minimum and maximum (quart 0 and 4); EXC excludes them and gives slightly different first and third quartiles. QUARTILE, the older name, matches INC.

Are quartiles the same as MIN, MEDIAN and MAX?

Quartiles 0, 2 and 4 return the same values as MIN, MEDIAN and MAX, as Microsoft's page notes. Quartiles 1 and 3 are the extra information.

Sources

Official documentation the facts on this page were checked against.

Practise QUARTILE.INC on a live sheet

Lesson 44, Ranks, percentiles and bands (Unit 13, Statistics), has 5 graded exercises, checked instantly, with steps and hints when you're stuck. Pro