How to Fix the #CALC! Error in Excel

#CALC! means Excel cannot produce a result. The most common case is FILTER finding no rows that match. Excel cannot return an empty result, so it returns an error. Give FILTER a third argument to show when nothing matches.

Formula to use

=FILTER(A2:D9, A2:A9="Jeju", "None")

"None" when no rows match

Empty results from other functions

If UNIQUE is set to keep only values that appear once but every value appears more than once, or SEQUENCE has 0 rows, the result is empty and you get #CALC!. Wrap functions that have no if-empty argument in IFERROR.

  • =IFERROR(UNIQUE(A2:A9, FALSE, TRUE), "None")"None" when nothing is left
  • =SEQUENCE(0)0 rows → #CALC!

An array where one value belongs

Putting an array where a single value is expected can give #CALC!. Microsoft documentation uses OFFSET with the height and width given as an array like {2,3} as an example. Give each value separately.

  • =OFFSET(A1, 0, 0, 2, 3)Instead of =OFFSET(A1,0,0,{2,3})

Find where it happens

When several functions are nested, use Formulas > Evaluate Formula to step through and see which part returns #CALC!.

Try the functions used here

Change the arguments in the function playground and watch the calculation step by step.

  • FILTER functionReturns only the rows that meet a condition, spilled into several cells.
  • UNIQUE functionReturns the values (or rows) of a range with duplicates removed.
  • SEQUENCE functionFills several cells with numbers that rise by a fixed step, like 1, 2, 3.
  • IFERROR functionReturns a value you choose if a formula results in an error; otherwise returns the formula's result.
  • OFFSET functionPoints to the cell (or range) a given number of rows and columns away from a reference cell.

FAQ

How do I leave it blank when nothing matches?
Put "" as the third argument: =FILTER(A2:D9, A2:A9="Jeju", "").
Does older Excel have #CALC!?
#CALC! mostly comes from formulas that fill several cells. FILTER, UNIQUE and SEQUENCE, which make such formulas, are listed in Microsoft documentation as supported from Excel 2021.

More guides