# FREQUENCY Function

> Count how many values fall into each bin with the FREQUENCY formula function of TX Sheet Control: data and bins arrays, the spilled result and an example.

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

---

Count how many values fall into each interval of a set of bins. `data_array` holds the values, in which text is ignored, and `bins_array` the upper limits of the intervals. The result spills as a vertical array with one count per bin and a last count for the values above the highest bin.

### Syntax

```text
FREQUENCY(data_array, bins_array)
```

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

Available for supported offline calculation.

### Examples

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

The formula spills 2, 1 and 1: two values are 2 or less, one is 3, and one is above 3.

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:** [FORMULATEXT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/formulatext/llms-full.txt)
- **Next:** [F.TEST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/f-test/llms-full.txt)
