Excel errors

#NULL! error in Excel: causes and how to fix it

Why Excel shows #NULL!: a space used instead of a comma or colon, or ranges that do not overlap. How the intersection operator works and how to fix it.

#NULL! means "these ranges have nothing in common". It is the rarest of the classic errors, and it almost always comes from a single character: a space where you meant a comma or a colon. In Excel a space between two references is not decoration, it is an operator, the intersection operator, which returns only the cells that two ranges share. When the two ranges do not overlap, the intersection is empty, and the empty result is #NULL!. Once you know this, the fix takes seconds. This page shows the typing slips that cause it, how the intersection operator is meant to be used, and how to find the error. For the overview of all errors see Formula errors: what each one means and how to fix it.

What #NULL! means

Excel has three reference operators. Knowing them explains every #NULL! you will meet:

OperatorNameExampleMeaning
: (colon)RangeB2:B4Every cell from B2 to B4
, (comma)UnionSUM(B2:B4, D2:D4)Both ranges together
(space)IntersectionC2:C4 A3:D3Only the cells that are in both ranges (here C3)

In countries where the comma is the decimal separator, the union operator in the formula is a semicolon (;) instead. The space keeps its meaning everywhere.

Cause 1: a space instead of a comma between two ranges

You want to add the Q1 and Q3 columns. Typing the second range after a space instead of a comma asks for the cells shared by B2:B4 and D2:D4, which do not overlap:

B5fx=SUM(B2:B4 D2:D4)
ABCD
1RepQ1Q2Q3
2Ana1008050
3Ben2009060
4Chen3007070
5Total#NULL!

Columns B and D share no cells, so the intersection is empty.

Result: #NULL!

B5fx=SUM(B2:B4, D2:D4)
ABCD
1RepQ1Q2Q3
2Ana1008050
3Ben2009060
4Chen3007070
5Total780

With a comma both ranges are added: 600 + 180 = 780.

Result: 780

Cause 2: a space instead of a colon inside a range

The same slip inside one range: B2 B4 means "the cells in both B2 and B4", and two different single cells never overlap.

B5fx=SUM(B2 B4)
ABCD
1RepQ1Q2Q3
2Ana1008050
3Ben2009060
4Chen3007070
5Total#NULL!

The space turns a range into an intersection of two separate cells.

Result: #NULL!

B5fx=SUM(B2:B4)
ABCD
1RepQ1Q2Q3
2Ana1008050
3Ben2009060
4Chen3007070
5Total600

With the colon: 100 + 200 + 300 = 600.

Result: 600

This also happens when a formula is edited by hand and a colon is accidentally deleted, or when a formula copied from a web page or PDF has its punctuation replaced by spaces. Formulas generated by string-building, for example in VBA with "=SUM(" & a & " " & b & ")", are another source.

Cause 3: an intersection of named ranges that do not meet

The intersection operator is genuinely useful with names. If every month column and every rep row has a name (Formulas › Create from Selection), =Feb Ben returns the figure where the Feb column crosses the Ben row. Here is the same idea with plain ranges:

F2fx=C2:C4 A3:D3
ABCDEF
1RepJanFebMar
2Ana10121422
3Ben202224
4Chen303234

The Feb column (C2:C4) and Ben's row (A3:D3) cross at C3, which holds 22.

Result: 22

If one of the names refers to a different block, for example a Dana row that sits below the table, or a column name that covers only part of the rows, the two ranges miss each other and the result is #NULL!. Fix: check what each name refers to in Formulas › Name Manager and make sure both cover the same area.

Tip. Intersections are compact but hard for colleagues to read. INDEX with MATCH or XLOOKUP gives the same crossing-point lookup and is easier to audit: =XLOOKUP("Ben", A2:A4, C2:C4) also returns 22.

Cause 4: #NULL! passed on from another cell or from code

Like every error, #NULL! spreads to formulas that use the cell, so a total may show #NULL! although its own formula is fine. Use Trace Error to walk back to the cell where it starts. In VBA, CVErr(xlErrNull) writes #NULL! into a cell deliberately, which some older custom functions do to signal "no result". ERROR.TYPE returns 1 for #NULL!, so =ERROR.TYPE(B5)=1 can test for it specifically.

How to find every #NULL! in a workbook

  1. Go To Special. Press F5 or Ctrl+G (the same on a Mac), click Special, choose Formulas and leave only Errors ticked, then OK. Excel selects every formula on the sheet that shows an error, of any kind. Give the selection a fill colour so the cells stay visible after you click away.
  2. Find All. Press Ctrl+F (Cmd+F), type #NULL!, open Options, set Look in to Values, tick Match entire cell contents, set Within to Workbook and click Find All. The list at the bottom shows sheet, cell and formula for every hit; Ctrl+A inside the list selects them all.
  3. Error Checking. Formulas › Formula Auditing › Error Checking jumps from one error to the next and offers Show Calculation Steps, which opens Evaluate Formula on that cell so you can see the exact step that fails.
  4. Trace Error. Select an error cell and choose Formulas › Error Checking (the arrow beside it) › Trace Error. Red arrows lead back to the cell where the error started; blue arrows show the healthy inputs. Errors travel downstream, so fixing the first cell often clears dozens of others.
  5. Count them with a formula. =COUNTIF(B2:B500, "#NULL!") counts the cells in a range that show this error, and =SUMPRODUCT(--ISERROR(B2:B500)) counts every kind of error. Put the count next to a report total as an early-warning light.
  6. Search for the slip itself. In Find, choose Look in: Formulas and search for a space followed by a column letter, such as B or D. In long workbooks FORMULATEXT next to a suspicious cell shows the formula so you can spot the gap.

When you should NOT hide #NULL!

There is no good reason to wrap a #NULL! in IFERROR. The error means the formula does not say what you intended: a total that should add two ranges adds nothing. Hiding it would turn a typo into a wrong number. Correct the operator instead; it is always a one-character fix.

Version notes

  • #NULL! and the space intersection operator exist in every version of Excel, on Windows, Mac and the web.
  • In Microsoft 365, the @ sign you may see in formulas is the implicit intersection operator, a different feature: it picks one value from a range in the formula's own row or column. It does not produce #NULL!.
  • Google Sheets does not support the space intersection operator; formulas that rely on it need to be rewritten with INDEX/MATCH there.

More excel errors