# QUARTILE.EXC Function

> Return the first quartile, median or third quartile with QUARTILE.EXC in TX Sheet Control: percentiles without 0 and 1, k from 1 to 3 and #NUM!.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > QUARTILE.EXC Function
- **231 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/quartile-exc/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/quartile-exc/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/quartile-exc/llms-full.txt

---

Return a quartile of a data set, based on percentiles from 0 to 1 with both boundaries excluded. `array` holds the values and `k` selects the quartile, truncated to an integer: 1 (the first quartile), 2 (the median) or 3 (the third quartile). Any other `k`, including 0 and 4, returns `#NUM!`. For the values 1 to 5, the first quartile is 1.5, where [QUARTILE.INC](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/quartile-inc/llms-full.txt) returns 2.

### Syntax

```text
QUARTILE.EXC(array, k)
```

Category: Statistics. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=QUARTILE.EXC(A1:A5,2)
```

When A1:A5 holds the values 1 to 5, the formula returns 3, the median.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [QUARTILE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/quartile/llms-full.txt)
- **Next:** [QUARTILE.INC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/quartile-inc/llms-full.txt)
