# PROB Function

> Calculate the probability that values lie between two limits with PROB in TX Sheet Control: values, probabilities that add up to 1, and #NUM! and #N/A.

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

---

Return the probability that values lie between two limits. `x_range` holds the values and `prob_range` their probabilities, from 0 to 1 each and 1 in total; `lower_limit` and `upper_limit` are the limits. Without `upper_limit`, PROB returns the probability of the value equal to `lower_limit`. Probabilities that are outside 0 to 1 or don't add up to 1 return `#NUM!`, and ranges of different sizes return `#N/A`.

### Syntax

```text
PROB(x_range, prob_range, lower_limit, upper_limit)
```

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

Available for supported offline calculation.

### Examples

```text
=PROB({1,2,3},{0.2,0.3,0.5},2,3)
```

The formula returns 0.8, the probabilities of the values 2 and 3 added up (0.3 + 0.5).

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:** [PRICEMAT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/pricemat/llms-full.txt)
- **Next:** [PRODUCT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/product/llms-full.txt)
