Excel formula not calculating? Seven fixes

The three amounts are 1,800, 600, and 180. Added by hand, 1,800 + 600 = 2,400, and 2,400 + 180 = 2,580. The total cell should show 2,580. These seven checks are the order to try when it shows something else.

SUM
=SUM(B2:B4)
=SUM(B2:B4)B5
January
AB
1ItemAmount
2Rent$1,800
3Groceries$600
4Utilities$180
5Total$2,580
6Is formulaTRUE
7Formula text=SUM(B2:B4)
A picture of the working total. B2, B3, and B4 store 1800, 600, and 180. Currency format adds the dollar signs. 1,800 + 600 + 180 = 2,580. ISFORMULA is TRUE, and FORMULATEXT quotes the formula.

SUM adds the three numbers. ISFORMULA is TRUE when the cell holds a formula. FORMULATEXT returns =SUM(B2:B4). Both test functions are in Excel 2013 and later, including Microsoft 365. In Excel 2010, use the formula bar and the Number format box for the same two facts.

1. Calculation is set to Manual

Change groceries from 600 to 650. ISFORMULA stays TRUE, and FORMULATEXT still returns =SUM(B2:B4). The total cell still shows 2,580. The status bar says Calculate.

Press F9, or on the Formulas tab choose Calculate Now. The total becomes 2,630. That is 1,800 + 650 + 180.

SUM
=SUM(B2:B4)
=SUM(B2:B4)B5
After F9
AB
1ItemAmount
2Rent$1,800
3Groceries$650
4Utilities$180
5Total$2,630
A picture of the same total after groceries change from 600 to 650 and Excel calculates. 1,800 + 650 + 180 = 2,630. In Manual mode the screen can still show $2,580 until you press F9.

Then set Calculation Options, on that same Formulas tab, to Automatic, and save the file. Shift+F9 calculates the active sheet. F9 calculates the open workbooks.

Calculation mode is an Excel setting, and each workbook stores the mode it was saved with. Open this file when no other workbook is open and Excel uses the mode saved in the file. Another workbook already open keeps the mode Excel is already using. A third choice on that menu, Automatic Except for Data Tables, still calculates an ordinary SUM. A data table on the sheet waits until you press F9.

2. The formula was stored as text

The total cell shows the characters =SUM(B2:B4). ISFORMULA is FALSE. FORMULATEXT returns #N/A, which is what it returns when the cell has no formula to quote. The Number format is Text.

  1. Select the total. The formula bar shows =SUM(B2:B4) with the equals sign first.
  2. Press Ctrl+1 (Command+1 on a Mac) and set the format to General. The cell still shows the formula.
  3. Press F2, then Enter. On a Mac, click the formula bar and press Return.

The cell now shows 2,580. ISFORMULA is TRUE. The longer walk-through of a formula stored as text is Why your Excel formula shows as text.

3. Show Formulas is on

ISFORMULA is TRUE, and the cells still display formulas. On the Formulas tab, turn Show Formulas off. The keyboard toggle is Ctrl plus the grave accent, the key above Tab. On a Mac it is Control plus that same key. Press it again to turn the mode back on. With the mode off, the total displays 2,580.

4. An apostrophe or a space is in front of the equals sign

The cell shows =SUM(B2:B4) and hides the character that made Excel store text. The formula bar shows it. An apostrophe looks like '=SUM(B2:B4). A space is a blank and then =SUM(B2:B4). Delete that character and press Enter. The cell shows 2,580, and ISFORMULA is TRUE.

5. The equals sign is missing

The formula bar shows SUM(B2:B4) with no equals sign and no apostrophe. Excel stored a label. ISFORMULA is FALSE, and FORMULATEXT returns #N/A. Type the equals sign in front of SUM and press Enter. The cell shows 2,580.

6. The total includes its own cell

The formula in B5 is =SUM(B2:B5). The range includes B5, so the formula refers to itself. Excel warns about a circular reference. With iterative calculation turned off, B5 shows 0, and the status bar names B5. Change the formula to =SUM(B2:B4). The cell shows 2,580.

Iterative calculation is off unless you turned it on. Leave it off for this total. A total that includes itself is the wrong range, and iteration would hand back some other number.

7. The amounts are text

The total is a formula, ISFORMULA is TRUE, and the result is 0. SUM skips text. It returns 0 for this column, and it returns no error. Text sits on the left of the cell. A number sits on the right.

VALUE
=VALUE(B2)
=SUM(C2:C4)C5
Amounts stored as text
ABC
1ItemImportedNumber
2Rent18001800
3Groceries600600
4Utilities180180
5Total02580
A picture of the same three amounts stored as text. SUM skips text, so B5 is 0. VALUE turns each one into a number, and 1,800 + 600 + 180 = 2,580.

VALUE converts one text amount in a US workbook. =VALUE("1800") is 1800, =VALUE("600") is 600, and =VALUE("180") is 180. The sum of those three numbers is 2,580. The formula stored as text page uses the same SUM-and-VALUE repair on imported amounts that include a dollar sign.

The workbook for a year of category totals is the annual budget planner.


Template for this article

Annual Budget Planner

More from the blog