Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Formulas Don't Calculate as Formulas.

Formulas Don't Calculate as Formulas

by Allen Wyatt
(last updated June 27, 2017)

15

When you enter information into a cell, Excel needs to determine how to treat that information. Should it be considered a date? A number? As a formula? Perhaps it is text? Excel interprets your cell entry according to a fairly well-defined set of rules. The "fall-back" determination for a cell is to treat an entry as text.

You may notice something odd when entering information in a cell, however—Excel may always treat what you enter as text. For instance, you may enter a formula such as =B3 into a cell, with the expectation that the formula will be understood by Excel and the contents of cell B3 will be shown as a result of the formula. Excel, however, may simply display "=B3" in the cell, instead of the expected result.

If this happens to you, then Excel is not interpreting your cell entry as a formula, but as text. It is bypassing the normal parsing that goes on and instead jumping directly to the "fall-back" determination of the cell containing text.

This problem happens most often when the cell into which you are entering information was previously formatted as text. In other words, someone used the Number Format drop-down list (in the Number group on the Home tab of the ribbon) or the Format Cells dialog box to explicitly format the cell as Text.

An easy way to correct this situation is to perform the following steps:

  1. Select the cell that contains the formula that is being interpreted as text.
  2. Display the Home tab of the ribbon.
  3. Click the Clear tool, in the Editing group. Excel displays a few different actions you can take.
  4. Choose Clear Formats. This removes any formatting applied to the cell.
  5. Press F2. This puts the cell into edit mode.
  6. Immediately press Enter. This causes Excel to re-evaluate what is in the cell.

Your formula should now be treated as a formula instead of as text.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3308) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Formulas Don't Calculate as Formulas.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Including Headers and Footers when Selecting All

If you are creating a macro that, in the course of processing your document, needs to update all the fields in the document, ...

Discover More

Selecting a Cell in the Current Row

Macros often need to select different cells in a worksheet. Here's how you can use macro commands to change which cell is ...

Discover More

Using BIN2DEC In a Macro

Need a way, in a macro, to convert binary numbers into their decimal equivalents? There are two ways you can get the desired ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Calculating Statistical Values on Different-Sized Subsets of Data

Discovering different ways to analyze your data can be a challenge. Here's how to work with arbitrary subsets of a large ...

Discover More

Identifying Digit-Only Part Numbers Excluding Special Characters

When working with data in Excel, you often need to determine if that data meets criteria that you specify. This tip examines ...

Discover More

Returning Zero When a Referenced Cell is Blank

Reference a cell in a macro, and if that cell is blank Excel normally equates that to a zero value. What if you don't want ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

2017-12-08 12:45:29

brotherinjah

Very often you have to use ctrl + H and replace some common part in formulas from affected range, this will force excel to recheck changed cells and finally recognize it as formula.


2017-06-29 02:16:06

Paula

@ Malcolm,

thanks Malcolm for taking the time. I tried your suggestion and it doesn't work.
I'm thinking there's something wrong with the entire tab - giving up on this one shortly.

Thanks again!!


2017-06-28 02:55:09

Malcolm Revell

@ Paula
Paula select the cells that are formatted in txt where you want to make the formula. Click on the Home tab at the top LHS . (Next to File). Go to the RHS to the Editing tab. Click Clear/Clear All. This then allows you to use those cells you selected to put in data and makes your formula work.


2017-06-27 10:28:18

Shandor

Ron's macro works fine, and though he doesn't explicitly say so, if you select a whole column it'll work for that too.


2017-06-27 06:08:12

Surendera M. Bhanot

Check the contents of the cell containing the formula. If there is a <'> (single quote) at the beginning of the cell before '=' sign, it means the excel has been asked to read the contents as "Text". Remove that single quote and the formula will work.


2017-06-27 02:39:54

Paula

hello,

this tip did not work for me, do you have any others
thank you


2014-06-28 12:11:25

Ron

One click solution. I run into this issue all the time. I often work with worksheets that contain columns of data formatted as text. If you insert a column to the right of a text column Excel formats that column as Text also. Enter a formula there and Excel displays the text of the formula, not the result.
I use the following macro assigned to a QAT icon. Select the offending cell and click the QAT icon. Result of formula is now displayed.



Sub Format_General()
'
' Format_General Macro
'

'
Selection.NumberFormat = "General"
Selection.TextToColumns Destination:=ActiveCell, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1), TrailingMinusNumbers:=True
End Sub


2013-06-13 11:36:37

Danielle

Stuart, and all.

Pressing Ctrl+1 (U.S. keyboard) will bring up the same dialog box.


2013-06-03 15:08:49

Susan

This has also been my experience, Paul. Also - you can make calculations automatic or manual (turn automatic calculation on/off) in an Excel spreadsheet by going to "calculation options" in the "calculation" group on the ribbon under the "formulas" tab from 2010.


2013-06-03 12:47:12

Michelle Redford

Paul,

You are correct, Excel for 2010 does have the option to turn on/off auto calculation. If you go to the fomula tab and look in the Calculation box, there is a drop down for calculation options, and one of the selections is Automatic. Hope that solves the mystery for you!!!


2013-06-02 08:13:28

Joe Marten

I use Alt+AEF


2013-06-01 11:50:42

Ed

If my formula is a macro, how do you make it auto calculate?


2013-06-01 08:58:49

stuart

can you not just press ctrl shift ~ (uk keyboard)


2013-06-01 06:43:31

Ronald Palmer

When this happens to me, I select the range and format as general.


2013-06-01 06:15:43

Paul

in older versions of Excel there used to be an option in 'Tools/Options' to turn off automatic calculation. You turn it on/off with the F9 key.
Now so far I haven't found this option in the newer versions but knowing Excel I bet it is there somewhere.
The point of course being that in this case automatic calculation may be turned off.
From my experience this used to happen either when Spread Sheets got very large and unwieldy or when there were some Macros floating around with values that were formula dependent


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.