# IFERROR Function

> Replace any formula error such as #DIV/0! or #N/A with a fallback value using the IFERROR formula function of TX Sheet Control, with an example.

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

---

Use a fallback when an expression returns an error. `value` is the expression to check and `value_if_error` the result to return when `value` is any error, such as `#DIV/0!` or `#N/A`. Otherwise, IFERROR returns `value`.

### Syntax

```text
IFERROR(value, value_if_error)
```

Category: Logical. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=IFERROR(1/0,0)
```

The formula returns 0 instead of the `#DIV/0!` error of the division by zero.

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:** [IF Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/if/llms-full.txt)
- **Next:** [IFNA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ifna/llms-full.txt)
