Excel errors and formula problems explained (#REF!, #NAME?, #VALUE! and more) Print

  • 0

When Excel shows a strange code in a cell, it is telling you what went wrong. Here is what the most common messages mean and how to fix them.

Error messages

  • #DIV/0! The formula divides by zero or by an empty cell. Check the cell you are dividing by. You can hide the error with =IFERROR(A1/B1,""), but find out first why it is empty.
  • #NAME? Excel does not recognise a name. Check the spelling of the function (for example SUM, not SUMM), that text in a formula is inside quotation marks, and that a named range exists. A function that is not in your version of Excel also shows #NAME?.
  • #VALUE! The formula expects a number but finds something else, such as text or a space, or the wrong kind of input. Look for text in number cells and hidden spaces.
  • #REF! The formula points to a cell that no longer exists, usually because a row, column or sheet was deleted. Undo (Ctrl + Z) if you have just done it. Otherwise, correct the reference by hand.
  • #N/A A lookup (such as VLOOKUP, XLOOKUP or MATCH) did not find what it was looking for. Check for spelling differences, extra spaces, numbers stored as text, and whether the lookup range contains the value.
  • #NUM! A number is too big, too small or impossible (for example the square root of a negative number).
  • #NULL! Usually a missing colon or comma between cell references.
  • #SPILL! A formula wants to fill several cells, but something is in the way. Clear the cells below or beside the formula.
  • ##### This is not an error in the formula. The column is too narrow to show the number or date, or a date or time is negative. Make the column wider (double-click the border of the column heading).

The formula shows as text instead of a result

  • The cell may be formatted as Text. Change it to General (Home > Number format), then click in the cell and press Enter.
  • There may be an apostrophe or a space before the equals sign. Remove it.
  • Show Formulas may be switched on (Formulas tab). Switch it off, or press Ctrl + `.

The numbers will not add up

  • Numbers stored as text. They line up on the left and often show a small green triangle. Select them, click the warning symbol and choose Convert to Number. Totals ignore text numbers.
  • Hidden rows, columns or filters. A SUM includes hidden rows. SUBTOTAL ignores filtered rows. Check what you are totalling.
  • Rounding. A cell can show 1.5 but hold 1.4999. Use the ROUND function when exact totals matter.
  • Calculation set to Manual. If formulas do not update, check Formulas > Calculation Options and choose Automatic. Press F9 to recalculate now.
  • Wrong range. A formula may not include the new rows you added at the bottom. Click the formula, and check the coloured outline.

"There are one or more circular references"

A formula refers to its own cell, directly or through other cells, for example putting =A1+B1 into A1. Go to Formulas > Error Checking > Circular References to find the cell, and change the formula.

Dates look wrong

  • A number like 45000 in a date cell means the format is wrong. Change it to a Date format.
  • Dates that Excel treats as text (left-aligned) or swapped between day and month come from the regional settings or from pasted data. Tell us if this keeps happening.

Tips for fewer mistakes

  • Do not delete rows or columns that formulas use. Hide them, or check the formulas first.
  • Click into a formula and look at the coloured boxes, which show the cells it uses.
  • Use Formulas > Evaluate Formula to step through a long formula.
  • Keep one table per sheet with a heading row, and no blank rows in the middle.
  • Keep a copy before big changes. See "Backups, and how to get back a deleted or overwritten file".
  • Important spreadsheets that your business depends on, with macros or links to other files, are a risk if only one person understands them. We can help you review and protect them.

When to contact us

Contact us if a spreadsheet will not open, shows errors after a move or a copy, links to files that have moved, or contains macros that stopped working. For help with the formulas themselves, send us the file and tell us what it should calculate. Please do not send files containing confidential information by e-mail without asking us how to do it safely.


Still stuck? Open a ticket, call us on +27 79 041 3892, or e-mail support@stircrazy.co.za. We are available Monday to Friday, 08:00 to 17:00. After hours: +27 79 041 3892. If we need to see your screen, start a remote session when we ask.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution