Excel formula errors explained: #N/A, #VALUE!, #REF! and the rest
Every Excel error value points at a different kind of mistake. Learn what each one means, the three or four causes behind it, and how to find the one in your formula.

Short on time? Use the Excel Formula Checker to paste a formula and see exactly why it breaks. The rest of this guide explains what is going on.
An error value is Excel telling you which kind of thing went wrong. Read it before you start rewriting the formula, because #N/A and #REF! have almost nothing in common.
A quick first step for any of them: paste the formula into the Excel Formula Checker. It catches the mistakes visible in the formula itself (brackets, argument counts, range sizes, lookup settings), which leaves only the data to look at.
#N/A: the value was not found
Almost always a lookup: VLOOKUP, XLOOKUP, MATCH or INDEX/MATCH could not find what you asked for. The usual causes, in order:
- Extra spaces. "Acme " is not "Acme". Wrap the lookup value in TRIM, or clean the column first.
- Numbers stored as text. 1001 typed as a number does not match "1001" imported from a CSV. A small green triangle in the cell is the giveaway.
- Approximate match. A VLOOKUP without FALSE as its fourth argument does approximate matching, which can return #N/A or, worse, a wrong value.
- The value really is not there. Then the error is correct, and IFNA(formula,"Not found") gives it a friendlier face.
We wrote a whole post on why VLOOKUP returns #N/A. If you would rather start from a formula that avoids all four problems, the VLOOKUP Generator builds an anchored, exact-match version for you.
#VALUE!: the wrong kind of value
Excel expected one type of value and got another.
- Text in arithmetic:
="10"+A2works, but=A2*B2where B2 holds "n/a" does not. - Ranges of different sizes in SUMIFS, COUNTIFS or XLOOKUP.
=SUMIFS(C2:C100,A2:A99,"West")fails because the ranges cover 99 and 98 rows. - A date stored as text being used in date maths.
The range-size case is easy to miss by eye and easy to catch with the checker.
#REF!: a reference points nowhere
Something the formula referred to was deleted.
- You deleted a row, column or sheet that the formula used. The formula now literally contains #REF! where the reference was.
- A VLOOKUP asks for column 4 of a 3-column table.
- A link to another workbook broke after that workbook was moved.
Undo straight away if you can. Otherwise re-enter the reference.
#NAME?: Excel does not recognise a word
- A misspelt function:
=VLOKUP(...). - Text without quotes:
=IF(A2=Yes,1,0)should be=IF(A2="Yes",1,0). - A function your version does not have. XLOOKUP, FILTER and UNIQUE need Microsoft 365 or Excel 2021 and later. Opened in Excel 2016, they show #NAME?.
- A named range that was deleted or misspelt.
#DIV/0!: division by zero
The divisor is zero or an empty cell. Usually the data is just incomplete, so hide it until it is: =IF(B2=0,"",A2/B2). For averages, AVERAGEIF ignores the blanks that cause it.
#SPILL!: the result has nowhere to go
Dynamic array formulas such as FILTER, UNIQUE and SORT spill into the cells below and beside them. If any of those cells are not empty, or the formula is inside an Excel Table, you get #SPILL!. Click the error to see the dashed border showing where it wants to go, then clear that area.
#NUM!: an impossible number
The maths has no answer: SQRT of a negative number, a date before 1900, or a function like IRR that could not converge on a result. Check the inputs before the formula.
#CALC! and #NULL!: the rarer ones
#CALC! appears in Microsoft 365 when a calculation produces an empty array, most often FILTER finding no matches. Give FILTER its third argument: =FILTER(A2:C100,B2:B100="West","None").
#NULL! comes from a space between two ranges, which Excel reads as "where these two ranges intersect". You almost always meant a comma.
##### is not an error
A cell full of hash signs means the column is too narrow for the number or date, or a date is negative. Widen the column.
Stop errors before they happen
Most error-prone formulas fail the same way: a lookup without FALSE, ranges that slide when you fill down, or ranges of different sizes. Running a formula through the Formula Checker before you fill it down a few thousand rows takes a few seconds. If you inherited a formula you do not understand, the Formula Explainer breaks it into its parts first.


