Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

The IFERROR function wraps a formula to trap and handle errors in the formula. On an error, it returns a value you specify, otherwise it returns the result of the formula.

IFERROR( formula, value_if_error )

Example 1: Traps for divide by zero, replaces with verbose message: 
=IFERROR( B12/C12), "Divide by zero") 

Example 2: Traps a VLOOKUP function error, returns "Investigate": 
=IFERROR(VLOOKUP(D1,A1:C3,4,FALSE),"Investigate")

For more info, see IFERROR function.

The IFERROR function wraps a formula to trap and handle errors in the formula. On an error, it returns a value you specify, otherwise it returns the result of the formula.

IFERROR( formula, value_if_error )

Example 1: Traps for divide by zero, replaces with verbose message: 
=IFERROR( B12/C12), "Divide by zero") 

Example 2: Traps a VLOOKUP function error, returns "Investigate": 
=IFERROR(VLOOKUP(D1,A1:C3,4,FALSE),"Investigate")

For more info, see IFERROR function.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×