XcelFormulas
  • Excel Formulas
  • Formula by Task
  • Most Used Formulas

Archives

  • October 2026
  • September 2026

Categories

  • Excel Formulas
  • Excel Formulas
  • Formula by Task
  • Most Used Formulas
0 Likes
0 Followers
0 Followers
XcelFormulas
XcelFormulas
  • Excel Formulas
  • Formula by Task
  • Most Used Formulas
  • Excel Formulas

IFERROR formula in Excel With Examples

  • October 20, 2026
  • Hawk
Total
0
Shares
0
0
0
Total
0
Shares
Share 0
Tweet 0
Pin it 0
Share 0
Share 0
Share 0

Excel is a useful tool for data handling, and it is widely used worldwide. The built-in functions make this application more user-friendly. Such a function is the IFERROR function. This function helps to trap and handles the errors while using a formula(such as dividing something by ‘0’). This function is very useful to an Excel user.

This function works exactly according to its name. It returns a custom result or a value that is specified by the user ‘IF’ an ‘ERROR’ occurs. Otherwise, it returns the result generated by the specified function or formula. This function is used to handle all types of Excel errors including #DIV/0!, #N/A, #NAME?, #NULL!, #NUM!, #REF!, and #VALUE! errors.Syntax:

IFERROR(value, value_if_error)

Here, the value_if_error argument may be NULL or a Null string. Arguments:

  • value(Required): This is the value, function, or reference that will be checked by the IFERROR function for an error. This argument must be provided by the user.
  • value_if_error(Required): This argument is also provided by the user. IFERROR returns this value or text or numbers if an error is found. This argument may be an empty string or null.

Return value: This function returns the contents of the value_if_error argument if an error is found. Otherwise, it returns the standard result of the specified formula or function. Depending on the content of the value_if_error argument, this function may replace the error value with some other values, some text, logical values, or some results of another formula or function. This function returns ‘0’ if an error occurs and the value_if_error parameter is not provided. If the value is an array, this function returns an array of results containing results for each cell.

Example:

  • When the value_if_error argument is provided:
Value 1Value 2 IFERROR functionResultRemarks
255=IFERROR(A2/B2, “Error”)5No error occurs here, so the function returns the result “A2/B2”.
357=IFERROR(A3/B3, “Error”)5No error occurs here, so the function returns the result “A3/B3”.
230=IFERROR(A4/B4, “Error”)ErrorThe error occurs while trying to divide by ‘0’. So the function returns the text in the value_if_error argument.
N/A25=IFERROR(A5/B5, “Error”)ErrorAn error occurs as value 1 is not valid(N/A). So, again it returns the text in the value_if_error argument.
 3=IFERROR(A6/B6, “Error”)0No error occurs here though the value 1 cell is blank. The function accepts this as ‘0’ and returns the result.

Output:

    Basically in this case the function will return zero.

    value 1value 2IFERROR functionResultRemarks
    255=IFERROR(A2/B2, )5No error occurs here, so the function returns the result “A2/B2”.
    357=IFERROR(A3/B3, )5No error occurs here, so the function returns the result “A3/B3”.
    230=IFERROR(A4/B4, )0The error occurs while trying to divide by ‘0’. So the function returns ‘0’ as the value_if_error argument is absent.
    N/A25=IFERROR(A5/B5, )0An error occurs as value 1 is not valid(N/A). So, again it returns ‘0’ as the value_if_error argument is absent.
     3=IFERROR(A6/B6, )0No error occurs here though the value 1 cell is blank. The function accepts this as ‘0’ and returns the result.

    Output:

    Hawk

    IFERROR Function in Excel: Syntax & Examples Guide

    IFERROR Function in Excel: Syntax & Examples Guide
    0 100 0 1
    Master the IFERROR function in Excel. Learn how to trap formula errors like #DIV/0! and #N/A, understand syntax, and view practical examples.
    Master the IFERROR function in Excel. Learn how to trap formula errors like #DIV/0! and #N/A, understand syntax, and view practical examples.
    Total
    0
    Shares
    Share 0
    Tweet 0
    Pin it 0
    Related Topics
    • Data Analysis
    • Error Handling
    • Excel Formulas
    • Excel Tutorial
    • GeeksforGeeks
    • IFERROR Function
    • Spreadsheet Tips
    Hawk

    Previous Article
    • Excel Formulas

    How to Make a Checklist in Excel in 5 Easy Steps

    • October 19, 2026
    • Hawk
    View Post
    Next Article
    • Excel Formulas

    How to Use the Excel COUNTIFS Function (With Examples)

    • October 20, 2026
    • Hawk
    View Post
    You May Also Like
    View Post
    • Excel Formulas

    SUBSTITUTE Function in Excel

    • Hawk
    • October 22, 2026
    View Post
    • Excel Formulas

    Excel CONCATENATE function

    • Hawk
    • October 22, 2026
    View Post
    • Excel Formulas

    Step-by-step Guide to VLOOKUP vs HLOOKUP & XLOOKUP for Excel and Google Sheets

    • Hawk
    • October 21, 2026
    View Post
    • Excel Formulas

    Excel HLOOKUP formula

    • Hawk
    • October 21, 2026
    View Post
    • Excel Formulas

    How to Use the Excel COUNTIFS Function (With Examples)

    • Hawk
    • October 20, 2026
    View Post
    • Excel Formulas

    How to Make a Checklist in Excel in 5 Easy Steps

    • Hawk
    • October 19, 2026
    View Post
    • Excel Formulas

    How to Create a Scroll Bar in Excel – Step by Step Tutorial

    • Hawk
    • October 19, 2026
    View Post
    • Excel Formulas

    VSTACK HSTACK

    • Hawk
    • October 17, 2026
    Recent Posts
    • SUBSTITUTE Function in Excel
      • October 22, 2026
    • Excel CONCATENATE function
      • October 22, 2026
    • Step-by-step Guide to VLOOKUP vs HLOOKUP & XLOOKUP for Excel and Google Sheets
      • October 21, 2026
    XcelFormulas
    • Contact Us
    • Privacy Policy
    • Terms and Conditions
    • Cookie Policy
    • Disclaimer
    • Sitemap
    Excel Formulas & Functions

    Input your search keywords and press Enter.