# PERCENTRANK Function

> Rank a value as a percentage of a data set with PERCENTRANK in TX Sheet Control: interpolation, significance digits, truncation and the #NUM! error.

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

---

Return the rank of a value in a data set as a percentage of the data set, from 0 to 1. `array` holds the values and `x` is the value to rank; a value between two values of the data set is interpolated. `significance` is the number of digits of the result (3 when omitted); the result is truncated, not rounded, so `PERCENTRANK({1,2,3,4},3)` returns 0.666. An `x` outside the range of the values or a `significance` less than 1 returns `#NUM!`. PERCENTRANK calculates the same as [PERCENTRANK.INC](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/percentrank-inc/llms-full.txt).

### Syntax

```text
PERCENTRANK(array, x, significance)
```

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

Available for supported offline calculation.

### Examples

```text
=PERCENTRANK({1,2,3,4},2)
```

The formula returns 0.333: one of the three other values is less than 2.

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