The IFNA function

Returns a value you choose when a formula gives #N/A, and the formula result otherwise. Other errors still show.

Syntax

IFNA(value, value_if_na)
value
The formula to check, usually a lookup.
value_if_na
What to show instead of #N/A.

Examples

D1=IFNA(MATCH("Kiwi",A2:A4,0),0)
ABCD
1FruitPrice0
2Apple4
3Pear6
4Plum5

In plain words: Look for Kiwi in A2:A4, and if it is not there (#N/A), show 0 instead.

D1=IFNA(VLOOKUP("Pear",A2:B4,2,FALSE),"Not found")
ABCD
1FruitPrice6
2Apple4
3Pear6
4Plum5

Practice IFNA

Read the guide

Related functions