# MODE Function

> Return the most frequent number of a list or range with MODE in TX Sheet Control, the older name of MODE.SNGL: ties, the #N/A error and an example.

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

---

Return the most frequent number of a set of numbers. When several numbers occur equally often, MODE returns the one that comes first. A set in which no number occurs twice returns `#N/A`. MODE is the older name of [MODE.SNGL](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mode-sngl/llms-full.txt) and returns the same results.

### Syntax

```text
MODE(number1, number2)
```

Category: Statistics. Minimum arguments: 1. Maximum arguments: 255.

Available for supported offline calculation.

### Examples

```text
=MODE(1,2,2,3)
```

The formula returns 2, the only number that occurs twice.

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:** [MOD Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mod/llms-full.txt)
- **Next:** [MODE.MULT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mode-mult/llms-full.txt)
