ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Errors & fixes
  3. Every Excel Error Explained: #N/A to #SPILL!

Every Excel Error Explained: #N/A to #SPILL!

By ExcelReady Team·Updated November 2, 2026·5 min read

The short answer

Excel has nine common error types. #N/A means a value wasn't found, #DIV/0! means division by zero, #VALUE! means the wrong kind of data, #REF! means a missing cell, #NAME? means Excel doesn't recognise a word, and #NUM! means an impossible number. #NULL!, #SPILL! and #CALC! cover ranges and dynamic arrays. ##### is just a narrow column.

Key takeaways

  • Every error starts with # and tells you what kind of problem the formula hit.
  • #N/A and #DIV/0! are often expected and safe to handle with IFNA or IFERROR.
  • #REF!, #NAME? and #VALUE! usually mean the formula itself is broken, so fix it instead of hiding it.
  • #SPILL! and #CALC! only appear in Excel 2021 and Microsoft 365, with dynamic array formulas.
  • is not an error: widen the column or check for a negative date.

On this page+
  1. Excel error types at a glance
  2. Lookup and reference errors: #N/A and #REF!
  3. Math errors: #DIV/0! and #NUM!
  4. Formula errors: #VALUE!, #NAME? and #NULL!
  5. Dynamic array errors: #SPILL! and #CALC!
  6. What ##### means (it isn't an error)
  7. How to find and handle errors
  8. Practise it

Excel error types each start with a # sign and tell you what kind of problem a formula hit: #N/A for a value that wasn't found, #DIV/0! for division by zero, #REF! for a cell that no longer exists, and six more. Once you know what each one means, most take seconds to fix. This guide lists every common error with its cause and fix, for anyone who has met an error in a report or a job test and wants to know what it is saying.

Excel error types at a glance#

Each error has one main meaning. Use this table to find yours, then read its section below.

ErrorWhat it meansCommon causeQuick fix
#N/AValue not availableLookup found no matchCheck the lookup value, or use IFNA
#DIV/0!Division by zeroDividing by a blank or 0Check the divisor, or use IF
#VALUE!Wrong type of valueText where a number is neededConvert the text, clean the data
#REF!Invalid referenceA referenced row or column was deletedUndo, or rewrite the reference
#NAME?Unknown nameTypo in a function, missing quotesFix the spelling or add quotes
#NUM!Impossible numberSquare root of a negative, bad datesCheck the inputs
#NULL!Ranges don't meetA space instead of a commaUse a comma or colon
#SPILL!Result can't spillCells in the wayClear the cells below or beside
#CALC!Calculation problemFILTER found nothingAdd FILTER's if_empty argument

Errors also spread. If C2 shows #N/A, any formula that uses C2, such as a total, shows #N/A too. Always fix the first error in the chain.

Lookup and reference errors: #N/A and #REF!#

These two errors come from formulas that point at the wrong place.

#N/A#

#N/A means "not available": a lookup function such as VLOOKUP, XLOOKUP or MATCH couldn't find the value. =VLOOKUP("P-110",A2:B6,2,FALSE) returns #N/A when P-110 isn't in column A. Common causes are typos, extra spaces, and numbers stored as text on one side only. It is often an expected result, so it is safe to handle with IFNA. The guide on fixing the #N/A error covers each cause.

#REF!#

#REF! means the formula refers to a cell that doesn't exist. It appears when you delete a row, column or sheet that a formula used, or when VLOOKUP asks for a column outside its range: =VLOOKUP(D2,A2:B6,3,FALSE) asks for column 3 of a 2-column range. Press Ctrl+Z (⌘Z on a Mac) straight away to undo a deletion. See how to fix the #REF! error for the rest.

Math errors: #DIV/0! and #NUM!#

These errors come from calculations that have no valid answer.

#DIV/0!#

#DIV/0! appears when a formula divides by zero or by an empty cell, as in =B2/C2 when C2 is blank. AVERAGE on cells with no numbers gives it too. Check the divisor first: =IF(C2=0,"",B2/C2). The #DIV/0! error guide shows more options.

#NUM!#

#NUM! means the number is impossible or too large. Examples: =SQRT(-4), DATEDIF with the start date after the end date, or a number beyond Excel's limits. Financial functions such as IRR also return #NUM! when they can't find an answer. Check the inputs, not the formula.

Formula errors: #VALUE!, #NAME? and #NULL!#

These errors usually mean the formula itself is written wrongly or fed the wrong data.

#VALUE!#

#VALUE! means a value is the wrong type. ="ten"+5 gives #VALUE! because text can't be added. More often, a cell that looks like a number or a date is really text, or contains a hidden space. SUMIFS also returns #VALUE! when its ranges are different sizes. Convert text numbers with VALUE and clean spaces with TRIM.

#NAME?#

#NAME? means Excel doesn't recognise a word in the formula. The usual causes are a misspelled function, like =SUMM(A2:A9), text without double quotes, like =COUNTIF(A2:A9,Open), or a function your version doesn't have, like XLOOKUP in Excel 2016. The article on the #NAME? error goes through each case.

#NULL!#

#NULL! is rare. In Excel, a space between two ranges means "where they overlap". =SUM(A1:A5 C1:C5) returns #NULL! because the ranges don't overlap. You almost always meant a comma, =SUM(A1:A5,C1:C5), or a colon.

Dynamic array errors: #SPILL! and #CALC!#

These two errors only appear in Excel 2021 and Microsoft 365, where one formula can return many values.

#SPILL!#

#SPILL! means a formula wants to fill several cells, but something is in the way. FILTER, UNIQUE, SORT and SEQUENCE spill their results down or across. If any of those cells hold data, even a space, the formula shows #SPILL!. Click the error to see a dashed border around the spill area, then clear it. Spill formulas also don't work inside an Excel table.

#CALC!#

#CALC! means Excel can't finish the calculation. The most common case is FILTER finding no matches, because an empty result isn't allowed. Give FILTER a third argument: =FILTER(A2:A9,B2:B9="Finance","None").

Microsoft 365 has a few rarer errors, such as #FIELD!, #CONNECT! and #BLOCKED!. They appear with linked data types and external data, not in everyday formulas.

What ##### means (it isn't an error)#

A cell full of # signs is not an error. It means the column is too narrow to show the number or date. Double-click the right edge of the column header to fit it. If the # signs stay, the cell holds a negative date or time, often from subtracting a later date from an earlier one. Excel can't show dates before 1900, so check the order of the dates.

How to find and handle errors#

Excel marks many errors with a small green triangle in the top-left corner of the cell. Click the cell and the warning icon to see what Excel thinks is wrong. The Formulas tab has Error Checking, which jumps to each error in turn, and Evaluate Formula, which shows the formula working one step at a time.

When an error is expected, handle it with IFERROR or IFNA:

Excel formula
=IFERROR(VLOOKUP(D2,A2:B6,2,FALSE),"Not found")

This shows "Not found" instead of #N/A. IFERROR catches every error type. IFNA catches only #N/A, which is safer for lookups because a #REF! or #NAME? still shows. The IFERROR function guide covers the syntax, and the article on using IFERROR the right way explains which errors you should never hide.

To test for errors, ISERROR returns TRUE for any error and ISNA only for #N/A. ERROR.TYPE returns a number for each classic error, from 1 for #NULL! to 7 for #N/A.

Practise it#

Practise fixing lookup errors in a live spreadsheet: you find the cause of each #N/A and fix it, and the sheet checks your answer instantly. Then practise IFERROR to handle the errors you expect, starting with the exercise on this page.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The code in D2 isn't in the price list, so a plain VLOOKUP returns #N/A. In E2, wrap the lookup in IFERROR so it shows Not found instead.

fx
ABCDEF
1
Code
Price
Find
Price
2
P-101
12.5
P-110
3
P-102
8
4
P-103
21
5
P-104
4.75
6
P-105
16
7
8
9

Tip: Write the VLOOKUP first: VLOOKUP(D2,A2:B6,2,FALSE). Then put it inside IFERROR, with "Not found" as the second argument.

Practise this in a lesson

LessonFixing lookup errorsDiagnose #N/A, #REF! and silent wrong answers in lookups, then handle missing items gracefully.LessonIFERRORReplace ugly errors like #DIV/0! with a clean fallback value using IFERROR, and learn when hiding errors backfires.Function guideIFERRORUse IFERROR to swap #N/A, #DIV/0! and other errors for a clean value. Examples with division and VLOOKUP, pitfalls, and live practice.

Frequently asked questions

What are the different types of errors in Excel?

+

The main ones are #N/A, #DIV/0!, #VALUE!, #REF!, #NAME?, #NUM!, #NULL!, #SPILL! and #CALC!. Each one points to a different cause, such as a missing lookup value, a division by zero or a deleted cell.

What is the most common error in Excel?

+

#N/A and #DIV/0! are the ones most people meet first. #N/A comes from lookups that find no match, and #DIV/0! from dividing by a blank or zero cell.

Is ##### an error in Excel?

+

No. ##### means the column is too narrow to show the number or date. Widen the column. If it still shows, the cell may hold a negative date or time, which Excel can't display.

How do I hide all errors in Excel?

+

Wrap the formula in IFERROR, as in =IFERROR(B2/C2,0). Use it only for errors you expect, because it also hides real mistakes like #REF! and #NAME?.

Which Excel function tells me the error type?

+

ERROR.TYPE returns a number for each classic error: 1 for #NULL!, 2 for #DIV/0!, 3 for #VALUE!, 4 for #REF!, 5 for #NAME?, 6 for #NUM! and 7 for #N/A.

Sources

  • How to correct a #VALUE! error - Microsoft Support
  • How to correct a #NAME? error - Microsoft Support
  • How to correct a #SPILL! error - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Excel error types at a glance
  2. Lookup and reference errors: #N/A and #REF!
  3. Math errors: #DIV/0! and #NUM!
  4. Formula errors: #VALUE!, #NAME? and #NULL!
  5. Dynamic array errors: #SPILL! and #CALC!
  6. What ##### means (it isn't an error)
  7. How to find and handle errors
  8. Practise it

Keep reading

Lookups· 6 min read

How to Fix #N/A Errors in VLOOKUP and XLOOKUP

#N/A means "not available": the lookup couldn't find your value. First find the cause: extra spaces (fix with TRIM), numbers stored as text, a typo, or a table range that moved because it wasn't locked with $. If the item is truly missing, show a message with IFNA, or with XLOOKUP's 4th argument.

Errors & fixes· 6 min read

#DIV/0! Error in Excel and How to Avoid It

#DIV/0! means a formula tried to divide by zero or by an empty cell. Fix it by checking the divisor first: =IF(B2=0,"",A2/B2) shows a blank until B2 has a number. =IFERROR(A2/B2,"") is shorter but hides every other error too. AVERAGE and AVERAGEIF also return #DIV/0! when there are no numbers to average.

Logic· 6 min read

IFERROR in Excel: Hide Errors the Right Way

IFERROR returns a formula's normal result, or a value you choose if the formula gives an error: =IFERROR(value, value_if_error). For example, =IFERROR(B2/C2,0) shows 0 instead of #DIV/0!. It catches every error type, including mistakes in your own formula, so check the formula works first, and use IFNA for lookups.

More on errors & fixes

  • Why Your Excel Filter Is Not Working (and the Fix)
  • Why Excel Shows 0.30000000000000004 and How to Fix It
  • Excel Formula Not Updating? Check These Causes
  • Excel Formula Returns 0? Causes and Fixes
  • Excel Shows the Formula Instead of the Result
  • Green Triangles in Excel: What They Mean
All errors & fixes articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free