Why your Excel formula shows as text (and how to fix it)

The three amounts are 80, 25, and 99.95. Added by hand, 80 + 25 = 105, and 105 + 99.95 = 204.95. The total cell shows the characters =SUM(B2:B4).

ISFORMULA
=ISFORMULA(B5)
=ISFORMULA(B5)B6
Formula stored as text
AB
1ItemAmount
2Headphones$80
3Book$25
4Boots$99.95
5Total=SUM(B2:B4)
6Is formulaFALSE
A picture of the broken total. B2, B3, and B4 are the numbers 80, 25, and 99.95. B5 displays the characters =SUM(B2:B4). ISFORMULA is FALSE, so Excel has not calculated 80 + 25 + 99.95.

ISFORMULA answers whether the cell holds a formula. Here it is FALSE. FORMULATEXT of that cell returns #N/A, which is what FORMULATEXT returns when there is no formula to quote. Both 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.

Make Excel read the formula

  1. Select the total cell. The formula bar shows =SUM(B2:B4) with the equals sign as the first character. The Number format is Text.
  2. Press Ctrl+1 (Command+1 on a Mac) and set the format to General. The cell still shows the formula. Excel keeps the stored text until you enter it again.
  3. Press F2, then Enter. On a Mac, click the formula bar and press Return.

The cell now shows 204.95. ISFORMULA is TRUE, and FORMULATEXT returns =SUM(B2:B4).

Two other entries produce the same display. An apostrophe typed before the equals sign stores text. The cell hides the apostrophe, and the formula bar still shows it, as '=SUM(B2:B4). A space before the equals sign does the same. Delete the apostrophe or the space, then press Enter.

When every formula on the sheet is showing

ISFORMULA is TRUE, and the cells still display formulas. Show Formulas is on. 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. In that mode the sample total displays =SUM(B2:B4) and ISFORMULA stays TRUE.

The formula is real and the result is 0

The total is a formula, ISFORMULA is TRUE, and the result is 0. The amounts were imported as text. SUM skips text. It returns 0 for this column, and it returns no error.

VALUE
=VALUE(B2)
=SUM(C2:C4)C5
Amounts stored as text
ABC
1ItemImportedNumber
2Headphones$80.0080
3Book$25.0025
4Boots$99.9599.95
5Total0204.95
A picture of an import. The dollar signs are part of the text. SUM skips them and B5 is 0. VALUE turns each amount into a number, and 80 + 25 + 99.95 = 204.95.

VALUE converts one text amount in a US workbook. =VALUE("$80.00") is 80, =VALUE("$25.00") is 25, and =VALUE("$99.95") is 99.95. The sum of those three numbers is 204.95. Format that result as currency if you want the dollar sign displayed. The sign is no longer part of the value.

If SUM returns 80, the headphones cell is a real number and the other two are still text. SUM adds the number it can see and skips the rest. VALUE on the whole imported column, then SUM on the number column, is the total that matches the hand addition.

A blank, a double space, or a letter in the text returns #VALUE! from VALUE. The VALUE page shows the same conversion on $1,234.50.


More from the blog