Ravindra BagaleCourses & study guides Track your progress

Excel IFERROR Function

Chala mitrano — today IFERROR. Try a formula; if Excel shouts an error, show your friendly message instead.

Fictional sample data for learning. Clean VLOOKUP reports in Jalgaon MIS and Manchester retail. Mixed ₹ and £.

Purpose

If a formula errors, return your fallback; otherwise return the formula result.

Return value

The formula result, or value_if_error.

Syntax

IFERROR(value, value_if_error)

Arguments

ArgumentRequired?Description
valueRequiredThe formula to try.
value_if_errorRequiredWhat to show if value errors.

Version

Excel 2007+. LibreOffice IFERROR too.

How to use — Why → What → How

Why: Managers hate red #N/A on dashboards. IFERROR wraps risky lookups and divisions. Clean VLOOKUP reports in Jalgaon MIS and Manchester retail. Mixed ₹ and £. In Indian back offices and foreign sister teams, IFERROR shows up on approval, SLA and fee sheets every week.

What: IFERROR evaluates value; on any error it returns value_if_error. Read every argument in the table once before you type; each one changes the answer on purpose.

How — numbered steps:

  1. Wrap =IFERROR(VLOOKUP(…),"Missing").
  2. Prefer IFNA when you only want to catch #N/A.
  3. Do not hide every error blindly in audits.

Ravindra Bagale's Tip

Friends, after IFERROR, find one IF/logic cell in a real workbook this week that this lesson improves.

Ravindra Bagale's Tip

Friends, sleep on IFERROR; rebuild example 1 tomorrow without looking.

Ravindra Bagale's Tip

Friends, say the business rule in plain words before =IFERROR.

Ravindra Bagale's Tip

Friends, after you finish IFERROR, open yesterday’s real workbook and find one place this function would have saved ten minutes.

Ravindra Bagale's Tip

Friends, treat IFERROR like a seatbelt on logic columns — use it before a manager asks why the flag is wrong.

Download practice file: practice-iferror.xlsx (includes sheet About this data, practice sheets, and Answers).

Worked examples

1) Missing SKU

Jalgaon.

SKUPrice ₹
A110
A212
Formula: =IFERROR(VLOOKUP("A9",A2:B3,2,FALSE),"Missing")

Result: Missing

What it means: Catch #N/A.

2) Division by zero

Rate.

QtyAmount
0100
Formula: =IFERROR(B2/A2,0)

Result: 0

What it means: Stops #DIV/0!.

3) Manchester £

Lookup OK.

Code£
UK125
Formula: =IFERROR(VLOOKUP("UK1",A2:B2,2,FALSE),"Missing")

Result: 25

What it means: Pass-through when OK.

4) Friendly blank

Dashboards.

X
1
Formula: =IFERROR(1/0,"")

Result: (blank)

What it means: Empty string fallback.

5) Nested calc

Margin.

CostSell
050
Formula: =IFERROR((B2-A2)/A2,"n/a")

Result: n/a

What it means: Any error caught.

6) vs IFNA note

Only #N/A.

A
1
Formula: =IFNA(1/0,"hid?")

Result: #DIV/0!

What it means: IFNA does not catch #DIV/0! — IFERROR does.

About this data. Small demo rows for learning. Real sheets are longer; the same formula pattern scales when columns are clean.

Common errors and fixes

#NAME? still visible — Typo outside wrap. Fix: Fix function name.
Hidden real bugs — Over-wrapping. Fix: Use IFNA when only #N/A expected.
Wrong fallback type — Number vs text mix. Fix: Match expected type.

Notes and tips

  • Revisit IFERROR errors after the quiz.
  • Build one example from memory.
  • Check types if results look wrong.
  • Teach a tip in Marathi or Hindi.
  • Keep currency consistent in one column (practice mixes ₹ $ £ €).
  • Drill: clean a lookup column with IFERROR and one with IFNA.
  • IFERROR vs IFNA: all errors vs only #N/A.
  • Fictional sample data only.
  • Print the IFERROR revision card.
  • Ask juniors to predict before Enter.
  • Track your top mistake monthly.
  • Clean VLOOKUP reports in Jalgaon MIS and Manchester retail. Mixed ₹ and £.
  • Logical tests love TRIM and UPPER when text is messy.
  • Interview tip: explain the business rule before the formula.
  • When nesting, keep each IF on its own mental line — or switch to IFS/SWITCH.
  • Classroom drill: invent three brand-new formulas from your city without the page open.
  • Share one tip with a classmate — teaching locks the idea.
  • If a result looks wrong, check blanks vs zeros before rewriting logic.
  • Print the revision card for IFERROR for one week of real worksheets.
  • When helping a junior, ask them to predict before Enter.
  • Share one tip with a classmate in Marathi or Hindi.
  • Keep currency symbols consistent inside a single report column.
  • When Excel versions differ, write a nested-IF fallback under IFS/SWITCH in a comment.
  • Logical tests love TRIM and UPPER when text is messy.
  • Interview tip: explain the business rule before the formula.

In real work

Drill: clean a lookup column with IFERROR and one with IFNA. Clean VLOOKUP reports in Jalgaon MIS and Manchester retail. Mixed ₹ and £. Classroom drill: write three brand-new IFERROR formulas on a blank sheet using names from your own city — if you can invent them without the page open, you own the skill. Then break one formula on purpose and watch the error; recovering from that break is half of interview readiness. Always verify with a known case before trusting a long chain of logical tests. Keep a personal notebook of the one mistake you make most often with this function; review it monthly.

How it compares

IFERROR vs IFNA: all errors vs only #N/A.

Interview corner

IFERROR vs IFNA?
All errors vs #N/A only.
When blank fallback?
Dashboards.
Audit?
Don’t over-wrap.

IFNA, IF, ISERROR, XLOOKUP

Practice tasks (10)

  1. Task 1. Wrap missing VLOOKUP.
    IFERROR.
  2. Task 2. Kill #DIV/0!.
    0 denom.
  3. Task 3. Show pass-through OK.
    Hit.
  4. Task 4. Compare IFNA on #DIV/0!.
    Contrast.
  5. Task 5. Blank fallback.
    ""
  6. Task 6. Explain audit risk.
    Interview.
  7. Task 7. Fill report column.
    Fill.
  8. Task 8. Doc fallback text.
    Note.
  9. Task 9. Teach classmate.
    Teach.
  10. Task 10. Bonus: XLOOKUP if_not_found.
    Modern.

Quick quiz

Q1. IFERROR catches:
Q2. Prefer IFNA when:
Q3. OK lookup returns:
Q4. #DIV/0! with IFERROR:
Q5. Audit risk:

Answers: Q1=Most errors, Q2=Only #N/A expected, Q3=Real result, Q4=Fallback, Q5=Hiding bugs (check after you try).

Revision card

Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.

Revision card: IFERROR
IFERROR revision card