Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • How to Create Column Chart in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • Conditional Formatting Rules in Excel

References

  • How to get last row in text data in Excel
  • How to use Excel VLOOKUP Function
  • How to get relative column numbers in a range in Excel
  • Two-column Lookup in Excel
  • How to get last row in numeric data in Excel

Data Validations

  • Excel Data validation no punctuation
  • How To Create Drop-down List in Excel
  • Data validation must not exist in list
  • Excel Data validation specific characters only
  • Excel Data validation with conditional list

IFERROR function: Description, Usage, Syntax, Examples and Explanation

by

What is IFERROR function in Excel?

IFERROR function is one of the Logical functions in Microsoft Excel that returns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formula. Use the IFERROR function to trap and handle errors in a formula.

Syntax of IFERROR function

IFERROR(value, value_if_error)

The IFERROR function syntax has the following arguments:

  • Value: The argument that is checked for an error.
  • Value_if_error: The value to return if the formula evaluates to an error. The following error types are evaluated: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!.

IFERROR formula explanation

  • If Value or Value_if_error is an empty cell, IFERROR treats it as an empty string value (“”).
  • If Value is an array formula, IFERROR returns an array of results for each cell in the range specified in value. See the second example below.
Worked Example:   nth smallest value with criteria in Excel

Examples of IFERROR function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Quota Units Sold
210 35
55
23
Formula Description Result
=IFERROR(A2/B2, “Error in calculation”) Checks for an error in the formula in the first argument (divide 210 by 35), finds no error, and then returns the results of the formula 6
=IFERROR(A3/B3, “Error in calculation”) Checks for an error in the formula in the first argument (divide 55 by 0), finds a division by 0 error, and then returns value_if_error Error in calculation
=IFERROR(A4/B4, “Error in calculation”) Checks for an error in the formula in the first argument (divide “” by 23), finds no error, and then returns the results of the formula.
Worked Example:   How to return blank in place of #DIV/0! error in Excel

Example 2

Quota Units Sold Ratio
210 35 6
55 Error in calculation
23
Formula Description Result
=C2 Checks for an error in the formula in the first argument in the first element of the array (A2/B2 or divide 210 by 35), finds no error, and then returns the result of the formula 6
=C3 Checks for an error in the formula in the first argument in the second element of the array (A3/B3 or divide 55 by 0), finds a division by 0 error, and then returns value_if_error Error in calculation
=C4 Checks for an error in the formula in the first argument in the third element of the array (A4/B4 or divide “” by 23), finds no error, and then returns the result of the formula
Note: The formula in the example must be entered as an array formula. After copying the example to a blank worksheet, select the range C2:C4, press F2, and then press CTRL+SHIFT+ENTER.
Worked Example:   Sum top n values with criteria in Excel

Post navigation

Previous Post:

IFS function: Description, Usage, Syntax, Examples and Explanation

Next Post:

XOR function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use IFS function in Excel
  • Not Equal To ‘<>‘ operator in Excel
  • How to use Excel FALSE Function
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • IF with boolean logic in Excel

Date Time

  • DATEDIF function: Description, Usage, Syntax, Examples and Explanation
  • TIMEVALUE function: Description, Usage, Syntax, Examples and Explanation
  • Get month name from date in Excel
  • How to calculate next day of week in Excel
  • How to calculate Day of the Year in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into unequal buckets in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers at uneven intervals in Excel

General

  • Count cells that do not contain many strings in Excel
  • How to password protect excel sheet?
  • Find, Select, Replace and Go To Special in Excel
  • List worksheet index numbers in Excel
  • Basic error trapping example in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning