# MS Excel: QUARTILE Function (WS)

This Excel tutorial explains how to use the Excel QUARTILE function with syntax and examples.

## Description

The Microsoft Excel QUARTILE function returns the quartile from a set of values.

## Syntax

The syntax for the QUARTILE function in Microsoft Excel is:

`QUARTILE( array, nth_quartile )`

### Parameters or Arguments

array
A range or array from which you want to return the nth quartile.
nth_quartile

The quartile value that you wish to return. It can be one of the following values:

Value Explanation
0 Smallest value in the data set
1 First quartile (25th percentile)
2 Second quartile (50th percentile)
3 Third quartile (75th percentile)
4 Largest value in the data set

Note: If nth_quartile is not an integer, it will be truncated.

## Applies To

The QUARTILE function can be used in the following versions of Microsoft Excel:

• Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

## Type of Excel Function

The QUARTILE function can be used in Microsoft Excel as the following type of function:

• Worksheet function (WS)

## Example (as Worksheet Function)

Let's look at some Excel QUARTILE function examples and explore how to use the QUARTILE function as a worksheet function in Microsoft Excel:

Based on the Excel spreadsheet above, the following QUARTILE examples would return:

```=QUARTILE(A2:A6, 0)
Result: 5.4

=QUARTILE(A2:A6, 1)
Result: 7.2

=QUARTILE(A2:A6, 2)
Result: 8.1

=QUARTILE(A2:A6, 3)
Result: 10.5

=QUARTILE(A2:A6, 4)
Result: 200

=QUARTILE({7,8,9,10}, 0)
Result: 7

=QUARTILE({7,8,9,10}, 1)
Result: 7.75

=QUARTILE({7,8,9,10}, 2)
Result: 8.5

=QUARTILE({7,8,9,10}, 3)
Result: 9.25

=QUARTILE({7,8,9,10}, 4)
Result: 10```
Share: