# IFNA

logical · from excel · excel: verified match · sheets: verified match

returns value if not #N/A, otherwise alternate

## signature

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

returns: `any`

## arguments

- value: any — required
- value_if_na: any — required

## examples

formula and result, asserted in the engine test suite.

| formula | result | with |
| --- | --- | --- |
| `=IFNA(VLOOKUP(E1, A1:B10, 2, FALSE), "missing")` | `0` | A1=10, A2=20, A3=30, A4=40, A5=50, B1=2, B2=4, B3=6, B4=8, B5=10 |

## errors

error values observed from the engine — each with a call that produces it.

| error | produced by |
| --- | --- |
| `#ERROR!` | `=IFNA(1,2,3)` |

## related

- [AND](https://deepcalc.com/functions/and.md) — returns TRUE if all arguments are true
- [EQ](https://deepcalc.com/functions/eq.md) — true when two values are equal
- [FALSE](https://deepcalc.com/functions/false.md) — returns the logical value FALSE
- [GT](https://deepcalc.com/functions/gt.md) — true when the first number is greater
- [GTE](https://deepcalc.com/functions/gte.md) — true when the first number is greater or equal
- [IF](https://deepcalc.com/functions/if.md) — returns one value if condition is true, another if false
- [IFERROR](https://deepcalc.com/functions/iferror.md) — returns value if no error, otherwise alternate
- [IFS](https://deepcalc.com/functions/ifs.md) — checks multiple conditions, returns first match

## navigate

- [all logical functions](https://deepcalc.com/functions/logical-functions.md)
- [function index](https://deepcalc.com/functions.md) — all 600 functions
- [error values](https://deepcalc.com/errors.md) · [concepts](https://deepcalc.com/concepts.md) · [limits](https://deepcalc.com/limits.md)
- [everything in one file](https://deepcalc.com/llms-full.txt)

source: https://deepcalc.com/functions/ifna