Pinterest Pixel

IFERROR Function: Introduction

John Michaloudis
What does it do? .

What does it do?

It returns a value that you set if a formula has an error

Formula breakdown:

=IFERROR(Value,Value if Error)

What it means:

=IFERROR(The Formula,What do you want to show if The Formula has an error?)


If you have a calculation that results in an error like, #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, then you can clean it up by using the IFERROR function which allows you to replace the error it with a 0 or a blank cell.

Download excel workbookIfError.xlsx

We want to get the average sale of each record. However we need to handle division by zero errors gracefully.

STEP 1: We need to enter the IFERROR function in a blank cell:
=IFERROR(
IFERROR Function: Introduction

 

STEP 2: The IFERROR arguments:

Value

What is the formula?

We need to enter the formula first to calculate the average sale.
=IFERROR(D15/E15,
IFERROR Function: Introduction

Value_if_error

What value should be displayed if there is an error in the formula?

See also  How to Use Substrings in Microsoft Excel

We want “0” to be displayed if there is an error
=IFERROR(D15/E15, 0)
IFERROR Function: Introduction

Apply the same formula to the rest of the cells by dragging the lower right corner downwards.

IFERROR Function: Introduction

You now have all of results!

If you like this Excel tip, please share it


Steps To Follow

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...