# ODD Function

> Round a number away from zero to the nearest odd integer with the ODD formula function of TX Sheet Control: positive and negative numbers, zero and errors.

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

---

Round a number up to the nearest odd integer, away from zero. A positive number is rounded up and a negative number down, so `ODD(1.5)` returns 3, `ODD(-1.5)` returns -3 and `ODD(0)` returns 1. An odd integer is returned unchanged, and text returns `#VALUE!`.

### Syntax

```text
ODD(number)
```

Category: Math. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=ODD(3)
```

The formula returns 3, which is already odd.

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:** [OCT2HEX Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/oct2hex/llms-full.txt)
- **Next:** [ODDFPRICE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/oddfprice/llms-full.txt)
