Excel IFNA function
Returns an alternative value only when the formula returns #N/A (not found). In Spanish Excel it is called SI.ND.
Syntax
English Excel
=IFNA(value, value_if_na)
Spanish Excel (Mexico)
=SI.ND(valor, valor_si_nd)
Spanish Excel (Spain, Latin America)
=SI.ND(valor; valor_si_nd)
| Argument | What it is |
|---|---|
| value | The formula, usually a lookup. |
| value_if_na | What to show on #N/A. |
Example
IFNA is like IFERROR, but it only catches #N/A, the "not found" error. That way you do not hide other errors you do want to see.
=IFNA(VLOOKUP(D2,$A$2:$B$6,2,FALSE),"No price")
Common mistake
It is safer than IFERROR for lookups: it does not hide other errors, such as a mistyped range.
About Ads
This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.
Ads help us keep WebHerramientas free for everyone
Practice IFNA
Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons
IFNA
IFNA is like IFERROR, but it only catches #N/A, the "not found" error. That way you do not hide other errors you do want to see.
=IFNA(VLOOKUP(D2,$A$2:$B$6,2,FALSE),"Sin precio")SI.ND = IFNABUSCARV = VLOOKUPBUSCARX = XLOOKUPINDICE = INDEXIn E2, look up the price for the code in D2. If it does not exist, show "No price".
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Code | Price | Find | Price | ||
| 2 | P-101 | 1,299 | P-103 | |||
| 3 | P-102 | 189 | P-110 | |||
| 4 | P-103 | 95 | P-105 | |||
| 5 | P-104 | 459 | P-999 | |||
| 6 | P-105 | 239 | ||||
| 7 |
Tip: while typing, click a cell or drag across several to insert their reference.
Frequently asked questions
- What is IFNA called in Spanish?
- In Spanish Excel it is SI.ND. The formula =IFNA(VLOOKUP(D2,$A$2:$B$6,2,FALSE),"No price") is written =SI.ND(BUSCARV(D2;$A$2:$B$6;2;FALSO);"Sin precio") (or with commas in Mexico).
- Why does IFNA use semicolons in some Excel versions?
- It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
- What is the most common IFNA mistake?
- It is safer than IFERROR for lookups: it does not hide other errors, such as a mistyped range.