# MOD Function

> Return the remainder of a division with the MOD formula function of TX Sheet Control: the sign of the divisor, decimal numbers and the #DIV/0! error.

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

---

Return the remainder of a division, with the sign of the divisor. `number` is the dividend and `divisor` the number to divide by; the result is `number - divisor * INT(number / divisor)`, so `MOD(-17,5)` returns 3 and `MOD(17,-5)` returns -3. A `divisor` of 0 returns `#DIV/0!`.

### Syntax

```text
MOD(number, divisor)
```

Category: Math. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=MOD(17,5)
```

The formula returns 2, the remainder of 17 divided by 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:** [MMULT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mmult/llms-full.txt)
- **Next:** [MODE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mode/llms-full.txt)
