# PERCENTILE.INC Function

> Return the k-th percentile of values with PERCENTILE.INC in TX Sheet Control: k from 0 to 1 inclusive, interpolation between values and the #NUM! error.

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

---

Return the k-th percentile of a set of values, with 0 and 1 included as boundaries. `array` holds the values and `k` is the percentile, from 0 to 1; a percentile between two values is interpolated. A `k` of 0 returns the smallest value and 1 the largest; a `k` outside 0 to 1 returns `#NUM!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

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

The formula returns 2.5, the median of the four values.

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