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)

ArgumentWhat it is
valueThe formula that might return an error.
value_if_errorWhat 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.

Advertising
Loading ad...

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.

Example=IFERROR(B2/C2,0)SI.ERROR = IFERROR

In D2, divide revenue by units. When no units were sold, show 0 instead of the error.

D2
ABCDE
1ProductRevenueUnitsAverage price
2Coffee4,50030
3Tea00
4Chocolate2,40016
5Cookies9000
6Bread1,30026
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.