# IFNA Function

> Replace the #N/A error of a lookup with a fallback value using the IFNA formula function of TX Sheet Control: other errors stay unchanged, with an example.

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

---

Use a fallback when an expression returns the `#N/A` error. `value` is the expression to check and `value_if_na` the result to return when `value` is `#N/A`, for example from a lookup that finds nothing. Other errors, such as `#DIV/0!`, are returned unchanged; use [IFERROR](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/iferror/llms-full.txt) to catch them.

### Syntax

```text
IFNA(value, value_if_na)
```

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

Available for supported offline calculation.

### Examples

```text
=IFNA(NA(),0)
```

The formula returns 0 instead of the `#N/A` error of NA().

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:** [IFERROR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/iferror/llms-full.txt)
- **Next:** [IFS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ifs/llms-full.txt)
