मुख्य सामग्री पर जाएँ
LogicalBasic LevelBasic Excel (Foundations & Core Formulas)

How to Use IFERROR in Excel

Catches and replaces formula errors (#N/A, #VALUE!, #DIV/0!) with clean fallbacks or blanks.

Direct Answer (Quick Summary)

What is IFERROR in Microsoft Excel?

IFERROR intercepts any formula error (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?) and returns a custom fallback value (like 0, '-' or 'Not Found') instead of displaying an ugly error code on your executive spreadsheet.

Pro Tip: Do not wrap whole workbooks prematurely in IFERROR while debugging, as it can hide genuine syntax mistakes like #NAME? or wrong cell references!

Formula Syntax

=IFERROR(value, value_if_error)

Arguments Breakdown

ArgumentRequirementPurpose & Details
valueRequiredThe argument, calculation, or formula to check for errors.
value_if_errorRequiredThe value to return if the formula evaluates to an error.

When to Use IFERROR (Real-World Business Scenarios)

  • 1

    Wrapping division calculations like Profit Margin: =IFERROR((Revenue-Cost)/Revenue, 0) to avoid #DIV/0! on zero revenue rows.

  • 2

    Wrapping legacy VLOOKUP formulas to display '-' instead of '#N/A' on missing inventory SKUs.

  • 3

    Cleaning executive presentation tables before exporting to PDF or client decks.

Step-by-Step Practical Business Example

Suppose you have the following dataset in Excel cells A1:D4:

SalesUnits SoldAverage Price
5000010₹5,000
00₹0
7500015₹5,000
Applied Formula:Result: 0
=IFERROR(A3/B3, 0)

How it works: 0 divided by 0 would produce #DIV/0!, but IFERROR cleanly returns 0 instead.

Common Errors & How to Fix Them

Hidden legitimate bugs

Why it happens: IFERROR suppresses all errors, including formula typos.

Fix: Use IFNA if you only want to catch missing lookup values (#N/A) without masking calculation mistakes.

Interactive Formula Lab

Try IFERROR Live in Your Browser

No need to launch desktop Excel. Practice formulas with real-time feedback in our HyperFormula sandbox.

Open Practice Lab

Frequently Asked Questions (IFERROR)

What does the IFERROR formula do in Excel?

IFERROR intercepts any formula error (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?) and returns a custom fallback value (like 0, '-' or 'Not Found') instead of displaying an ugly error code on your executive spreadsheet.

What is the syntax for IFERROR?
=IFERROR(value, value_if_error)
What are common mistakes when using IFERROR?

Hidden legitimate bugs: IFERROR suppresses all errors, including formula typos. (Use IFNA if you only want to catch missing lookup values (#N/A) without masking calculation mistakes.)

Ready to Master Microsoft Excel?

Master IFERROR in Basic Excel

Learn IFERROR along with 500+ formulas, 100+ production workbooks, and verified certificates in our complete 3-Tier curriculum.

सख़्त ज़रूरी