IFERROR Function in Excel With Examples Last Updated : 15 May, 2021 Comments Improve Suggest changes Like Article Like Report 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 functionResultRemarks255=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: Output Excel screenshotwhen the value_if_error argument is not provided: Basically in this case the function will return zero. value 1value 2IFERROR functionResultRemarks255=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: Output Excel screenshot Comment More infoAdvertise with us Next Article IFERROR Function in Excel With Examples tenacious39 Follow Improve Article Tags : Excel ExcelGuide Similar Reads Statistical Functions in Excel With Examples To begin with, statistical function in Excel let's first understand what is statistics and why we need it? So, statistics is a branch of sciences that can give a property to a sample. It deals with collecting, organizing, analyzing, and presenting the data. One of the great mathematicians Karl Pears 6 min read How To Use MATCH Function in Excel (With Examples) Finding the right data in large spreadsheets can often feel like searching for a needle in a haystack. This is where the MATCH function in Excel proves invaluable. The MATCH function helps you locate the position of a specific value within a row or column, making it a cornerstone of efficient data m 6 min read Excel ROWS and COLUMNS Functions with Examples In Microsoft Excel, where precision and efficiency reign supreme, mastering the art of maneuvering through cells and worksheets is indispensable. Two indispensable components in your Excel toolbox are the ROW and COLUMN functions, each meticulously crafted to execute discrete functions that can subs 7 min read Excel Date Functions with Formula Examples There are many functions in Microsoft Excel that may be used to work with dates and timings in Excel. Each function completes a straightforward task, but by combining numerous functions into a single formula, you may handle trickier and more complicated problems. The purpose of discussing DATE funct 12 min read How to Insert a Function in Excel? In MS Excel formula is an expression that help to calculate the value of a cell and in Microsoft Excel has many inbuilt in functions that we can use in our formula. Now if you want to insert a function in Excel or want to see all the functions by category, then in this series of MS Excel tutorial gu 4 min read Excel SUMIF Function: Formula, How to Use and Examples The SUMIF function in Excel is a versatile tool that enables you to sum values based on specific criteria, such as a true or false condition. This feature makes it perfect for conditional summation tasks like totaling sales over a particular amount, adding up expenses in specific categories, or summ 7 min read Normdist() Function in Excel The NORMDIST Function is one of Excel's Statistical functions. For a given mean and standard deviation, it will yield the normal distribution. That is, for a given set of parameters, it will compute the normal probability density function or the cumulative normal distribution function. In this artic 3 min read How to use CHOOSE Function in Excel The CHOOSE function is technically part of Excelâs lookup function and can be incredibly useful. The CHOOSE function returns a value from a list using an index. One of those Excel features, CHOOSE, may not seem helpful alone, but when paired with other functions, it offers a ton of fantastic advanta 7 min read Excel IF Function The IF function in Excel is one of the most powerful and commonly used formulas that allows you to perform logical tests and return different values based on whether the condition is true or false. If youâve ever needed to check whether a value meets certain criteria, then the IF function is the too 12 min read How to use the IFS function in Excel The IFS function in Excel acts as a keen partner, making choices for your information. It's perfect when you have different rules and wish to grant prizes based on those rules. Rather than getting misplaced in complicated enlightening, IFS assists your information in getting to where it ought to go. 7 min read Like