# MROUND Function

> Round a number to the nearest multiple with the MROUND formula function of TX Sheet Control: halfway values, a multiple of 0 and the #NUM! error for signs.

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

---

Round a number to the nearest multiple of another number. `number` is the value to round and `multiple` the multiple; a value exactly halfway, such as 12.5 to a multiple of 5, is rounded away from zero. A `multiple` of 0 returns 0, and a `number` and `multiple` with different signs return `#NUM!`.

### Syntax

```text
MROUND(number, multiple)
```

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

Available for supported offline calculation.

### Examples

```text
=MROUND(13,5)
```

The formula returns 15, the multiple of 5 nearest to 13.

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:** [MONTH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/month/llms-full.txt)
- **Next:** [MULTINOMIAL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/multinomial/llms-full.txt)
