How to Calculate QUARTILE in Excel

This guide treats “calculate quartile in excel” the way busy spreadsheet users actually want it: answer first, then the reasoning. It is written for Excel but calls out every place Google Sheets differs, and the platform toggle at the top switches all shortcuts between Windows and Mac so nothing here assumes the keyboard you are not on.

Exact answer

In Excel: use =QUARTILE.INC(array, quart) — pass 1 for the first quartile, 2 for the median and 3 for the third, so =QUARTILE.INC(B2:B200, 3) returns the 75th percentile.

On this page8

Syntax

=QUARTILE.INC(array, quart)

Arguments

Argumentrequired / optionalDescription
arrayrequiredThe range of values.
quartrequired0 minimum, 1 first quartile, 2 median, 3 third quartile, 4 maximum.

Related functions

PERCENTILEMEDIANPERCENTRANK
Annotated stepsExcel
1

Select the result cell and type =QUARTILE.INC(.

2

Select the range, then a comma.

3

Enter 1, 2 or 3 for the first quartile, median or third quartile.

4

Subtract Q1 from Q3 to get the interquartile range and build outlier bounds from it.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

What this does

QUARTILE splits a dataset into four equal parts, returning the value at whichever boundary you request. Its second argument is an index from 0 to 4, not a percentage, which trips people who come to it from PERCENTILE. Its practical value is the interquartile range: quartile 3 minus quartile 1 gives the spread of the middle half, and the standard outlier rule flags anything beyond 1.5 IQRs outside those bounds. That is also exactly what a box plot draws, so QUARTILE is how you replicate one numerically. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “calculate quartile in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

Order values in B2:B200: =QUARTILE.INC(B2:B200, 1) and =QUARTILE.INC(B2:B200, 3) give the quartile bounds, and their difference is the IQR. An upper outlier threshold is =QUARTILE.INC(B2:B200,3) + 1.5*(QUARTILE.INC(B2:B200,3)-QUARTILE.INC(B2:B200,1)). QUARTILE is the numeric basis of the box plot and the standard outlier rule, which makes it the fastest way to describe spread without assuming a distribution. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Treat “calculate quartile in excel” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.

Common mistakes

  • Passing 0.25 instead of 1 — the argument is an index from 0 to 4, not a proportion.
  • Using QUARTILE.EXC on small samples where the boundary is undefined, which returns #NUM!.
  • Reporting quartiles on a tiny dataset, where they are unstable and a simple sorted list says more.

Frequently asked questions

How do I calculate the interquartile range?

=QUARTILE.INC(range,3) - QUARTILE.INC(range,1). That span covers the middle 50 % of the data.

What is the difference between QUARTILE and PERCENTILE?

They answer the same question with different arguments. QUARTILE takes an index 0 to 4; PERCENTILE takes a decimal 0 to 1. Quartile 3 equals percentile 0.75.

How do I find outliers?

Flag anything below Q1 - 1.5×IQR or above Q3 + 1.5×IQR — the same rule a box plot uses for its whiskers.

Other ways people ask this

This is also commonly searched as “how to calculate quartiles on excel”, “calculate quartiles excel” and “calculate quartile excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.

Why do people search for this in so many different ways?

Because the same task has many names. “how to calculate quartiles on excel”, “calculate quartiles excel”, “calculate quartile excel” all point at the one operation explained on this page, which is why they all lead here.