# PERCENTILE.EXC Function

> Return the k-th percentile of a data set with PERCENTILE.EXC in TX Sheet Control, exclusive of 0 and 1: the valid k range, interpolation and #NUM! errors.

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

---

Return the k-th percentile of a set of values, with k between 0 and 1 exclusive. `array` holds the values and `k` the percentile; between two values, PERCENTILE.EXC interpolates. With n values, `k` must be from 1/(n+1) to n/(n+1); a `k` outside that range, including 0 and 1, returns `#NUM!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

```text
=PERCENTILE.EXC({1,2,3,4},0.5)
```

The formula returns 2.5, the median of 1, 2, 3 and 4.

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:** [PERCENTILE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/percentile/llms-full.txt)
- **Next:** [PERCENTILE.INC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/percentile-inc/llms-full.txt)
