Ravindra BagaleCourses & study guides Track your progress

Excel ERROR.TYPE Function

Chala mitrano — today ERROR.TYPE. Which error is this — divide-by-zero, name, N/A…?

Fictional sample data for learning. Error triage for Rajahmundry model audits and Berlin finance reviews.

Purpose

Return a number code for an error value (1=#NULL!, 2=#DIV/0!, 3=#VALUE!, 4=#REF!, 5=#NAME?, 6=#NUM!, 7=#N/A).

Return value

An error-type code, or #N/A if the value is not an error.

Syntax

ERROR.TYPE(error_val)

Arguments

ArgumentRequired?Description
error_valRequiredThe error (or expression) to classify.

Version

All modern Excel versions. LibreOffice Calc and Google Sheets have matching or close equivalents.

How to use — Why → What → How

Why: Support sheets need to count #DIV/0! separately from #N/A. ERROR.TYPE gives the code. Error triage for Rajahmundry model audits and Berlin finance reviews.

What: Codes: 1 #NULL!, 2 #DIV/0!, 3 #VALUE!, 4 #REF!, 5 #NAME?, 6 #NUM!, 7 #N/A. Non-errors return #N/A from ERROR.TYPE itself. Info functions are the seatbelts of messy imports: they tell you what kind of value you have before you compute. Prefer the narrow test (ISNA, ISBLANK) when you need precision; use ISERROR or TYPE when you need a broad gate. Always verify blanks versus empty strings versus zeros — they look alike on screen and fail differently in formulas. For CELL and INFO, treat format/environment codes as build-specific and document ‘verify on your Excel’ in class notes.

How — numbered steps:

  1. Type =ERROR.TYPE(A2/B2).
  2. Map codes with SWITCH.
  3. Wrap non-errors so ERROR.TYPE’s own #N/A does not confuse.

Ravindra Bagale's Tip

Friends, after ERROR.TYPE, find one column or range in a real workbook this week where this lesson saves time.

Ravindra Bagale's Tip

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

Ravindra Bagale's Tip

Friends, say the business question in plain words before =ERROR.TYPE.

Ravindra Bagale's Tip

Friends, check a known case with a calculator before you trust a long ERROR.TYPE chain.

Ravindra Bagale's Tip

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

Ravindra Bagale's Tip

Friends, treat blank, zero, and empty text as three different animals when you use ERROR.TYPE.

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

Worked examples

1) Div zero

Rajahmundry.

AB
10
Formula: =ERROR.TYPE(A2/B2)

Result: 2

What it means: #DIV/0! → 2.

2) NA

Miss.

#
Formula: =ERROR.TYPE(NA())

Result: 7

What it means: #N/A → 7.

3) NAME?

Typo.

#
Formula: =ERROR.TYPE(FOOBAR)

Result: 5

What it means: #NAME? → 5 (approx classroom).

4) Berlin map

Label.

AB
10
Formula: =IFERROR(CHOOSE(ERROR.TYPE(A2/B2),"null","div0","val","ref","name","num","na"),"ok")

Result: div0

What it means: Human label.

5) Non-error

Ok.

X
10
Formula: =ERROR.TYPE(A2)

Result: #N/A

What it means: Not an error → #N/A.

6) VALUE!

Text math.

#
Formula: =ERROR.TYPE("a"+1)

Result: 3

What it means: #VALUE! → 3.

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

Non-error → #N/A — Confusing. Fix: IFERROR around ERROR.TYPE.
Memorise codes — 2 div0, 7 NA. Fix: Card them.
FOOBAR demo — May vary. Fix: Classroom #NAME?.

Notes and tips

  • Revisit the ERROR.TYPE errors table after the quiz.
  • Build example 1 from memory on a blank sheet.
  • Check number vs text if a result looks wrong.
  • Teach one tip in Marathi or Hindi this week.
  • Keep currency symbols consistent inside one report column (practice mixes ₹ $ £ €).
  • Drill: map #DIV/0! and #N/A to labels from memory.
  • ERROR.TYPE vs ISERROR: which error versus whether any error.
  • Fictional sample data only — names and amounts are for learning.
  • Print the ERROR.TYPE revision card for one week of real worksheets.
  • Ask juniors to predict before they press Enter.
  • Track your top mistake with this function monthly.
  • Error triage for Rajahmundry model audits and Berlin finance reviews.
  • Interview tip: explain the business question before the formula.
  • Classroom drill: invent three brand-new formulas from your city without the page open.
  • If a result looks wrong, check blanks vs zeros before rewriting.
  • When Excel versions differ, note the LibreOffice / Sheets fallback in a cell comment.
  • Prefer clear ranges over whole-column refs on huge sheets if speed matters.
  • Document units (₹, kg, days) in the header so totals stay honest.
  • Distinguish blank, "", 0, and text "0" before you trust any IS* result.
  • Prefer IFNA for lookup misses and IFERROR for broad display substitutes.
  • TYPE codes: 1 number, 2 text, 4 logical, 16 error, 64 array — card them.
  • ERROR.TYPE: 2=#DIV/0!, 7=#N/A — card the rest for audits.
  • Always pass a reference to CELL; omitting it is volatile and confusing in shared books.
  • INFO and some CELL format codes vary by host — flag uncertain in lesson notes.
  • SHEETS includes hidden sheets; unhide before trusting a QA count.
  • Fictional sample data only — never paste real customer sheets into class files.
  • Teach one junior blank-vs-zero in Marathi or Hindi this week.
  • Print the revision card and stick it near the monitor for one week of real worksheets.

In real work

Drill: map #DIV/0! and #N/A to labels from memory. Error triage for Rajahmundry model audits and Berlin finance reviews. Classroom drill: write three brand-new ERROR.TYPE 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. Keep a personal notebook of the one mistake you make most often with this function; review it monthly. The IS* family returns booleans you can nest in IF; IFERROR/IFNA are the modern display wrappers when you only need a substitute value. TYPE collapses several tests into codes 1/2/4/16/64. N coerces logicals for SUMPRODUCT-era maths but does not parse digit-text — that is VALUE. NA() forces chart gaps; ERROR.TYPE triage codes let support count #DIV/0! separately from #N/A. SHEET/SHEETS index and count tabs including hidden ones — QA asserts love SHEETS()=n gates.

How it compares

ERROR.TYPE vs ISERROR: which error versus whether any error.

Interview corner

Div0?
2.
NA?
7.
Non-error?
#N/A from ERROR.TYPE.

ISERROR, IFERROR, TYPE

Practice tasks (10)

  1. Task 1. Code for 1/0.
    2.
  2. Task 2. Code for NA().
    7.
  3. Task 3. Label with CHOOSE.
    Map.
  4. Task 4. Non-error case.
    Trap.
  5. Task 5. Berlin triage.
    Use.
  6. Task 6. Interview.
    Talk.
  7. Task 7. Teach.
    Teach.
  8. Task 8. Card codes.
    Mem.
  9. Task 9. Fill.
    Fill.
  10. Task 10. Document.
    Note.

Quick quiz

Q1. #DIV/0! code?
Q2. #N/A code?
Q3. Non-error returns?
Q4. #VALUE! code?
Q5. #NAME? code?

Answers: Q1=2, Q2=7, Q3=#N/A, Q4=3, Q5=5 (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: ERROR.TYPE
ERROR.TYPE revision card