Excel IFERROR function
Returns a formula’s result or, if it returns any error, the value you choose. In Spanish Excel it is called SI.ERROR.
Syntax
English Excel
=IFERROR(value, value_if_error)
Spanish Excel (Mexico)
=SI.ERROR(valor, valor_si_error)
Spanish Excel (Spain, Latin America)
=SI.ERROR(valor; valor_si_error)
| Argument | What it is |
|---|---|
| value | The formula that might return an error. |
| value_if_error | What to show if it does. |
Example
IFERROR(formula, value) returns the formula’s result or, if it errors (#DIV/0!, #N/A…), the value you choose. Use it to keep your tables free of errors.
=IFERROR(B2/C2,0)
Common mistake
Use it carefully: it also hides real mistakes, 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 IFERROR
Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons
IFERROR
IFERROR(formula, value) returns the formula’s result or, if it errors (#DIV/0!, #N/A…), the value you choose. Use it to keep your tables free of errors.
In D2, divide revenue by units. When no units were sold, show 0 instead of the error.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Revenue | Units | Average price | |
| 2 | Coffee | 4,500 | 30 | ||
| 3 | Tea | 0 | 0 | ||
| 4 | Chocolate | 2,400 | 16 | ||
| 5 | Cookies | 900 | 0 | ||
| 6 | Bread | 1,300 | 26 | ||
| 7 |
Tip: while typing, click a cell or drag across several to insert their reference.
Frequently asked questions
- What is IFERROR called in Spanish?
- In Spanish Excel it is SI.ERROR. The formula =IFERROR(B2/C2,0) is written =SI.ERROR(B2/C2;0) (or with commas in Mexico).
- Why does IFERROR 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 IFERROR mistake?
- Use it carefully: it also hides real mistakes, such as a mistyped range.