Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.

Excel IFERROR Function

When a given formula in excel generates an error, we can use the IFERROR function to get a custom result, as well as a standard result when there is no error detected. This function is fundamental to those who want to avoid the complicated nested IF function to trap and manage errors.  This post provides an illustrative guide on how to use the Excel IFERROR function to trap and manage error.

Figure 1: How to use IFERROR function in excel

General syntax of the formula

=IFERROR (value, value_if_error)

Where;

  • value –refers to the value, reference or formula you are using to check for the error
  • value_if_error- refers to the value to return if error is found

Understanding the formula

The IFERROR function is fundamental when it comes to managing errors generated by formulas and other functions. This function will check for the following errors; #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, NAME? and #NULL!

Example

Figure 2: Showing error as “N/A” in excel using IFERROR function

In this example, we want the result of the formula to be “N/A” where an error is encountered. To do this, we simply specify in the formula as shown

=IFERROR(A2/B2,"N/A")

With this, every cell that brings an error will be replaced by “N/A”.

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Solution examples
using excel as a checkbook -- formula =IF(ISBLANK(E283),"",N282-J283+L283) after 280 lines it is now just saying VALUE in the balance column (N) What have I done wrong?
Solved by T. Y. in 44 mins
I have a drop down list with Yes/No values for a column and the next column over there needs to be a comment if no, but I want to make it so they must add a comment before moving to the next row.
Solved by Z. H. in 60 mins
I have a column on names (A) and a column of phone numbers (B). Now I want to sort these people by country but the only information I have on their country is the area code in front of the numbers. So I, therefore, have a list of area codes. I am wondering if I import the area code list onto excel, if and how I could create some sort of formula which would sort them for me. For example, something like "IF contains +33 " but I'd also need the names to stay with their corresponding number. Hope you can help, thanks
Solved by V. H. in 20 mins
I received help from someone else on this website who provided me with the code; '' =if(and(B1-A1>=VALUE(ʺ-00:05:00ʺ),B1-A1<=VALUE(ʺ00:05:00ʺ)),ʺMATCHʺ,ʺNO MATCHʺ) '' This does not work for me? I've tried changing the cells but still unsuccessful . I'd like IF A1 and B1 match, come back Match, If A1 and B1 do not match, unmatch If A1 and B1 match with a 5 minute tolerance then match. Please can you assist, and advise if I need to change the cells (A1 B1) to (AB1 AB2) What the method is?
Solved by M. L. in 60 mins
im trying to add two if statements. its not working =IF(Q7="<3,0,Q7,IF(q7=">100,100,Q7)
Solved by V. L. in 11 mins

Leave a Comment

avatar

Subscribe to Excelchat.co

Get updates on helpful Excel topics

Subscribe to Excelchat.co

Did this post not answer your question?
Get a solution from connecting with the expert

Another blog reader asked this question today on Excelchat:

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
Macy's
The Allstate Corporation
United Parcel Service
Dell Inc