To fix a formula appearing as text in Excel, you must change the cell format from "Text" to "General" and then re-enter the formula. This happens because Excel treats any cell formatted as Text as a literal string, ignoring the equals sign (=) that tells the software to perform a calculation.
What You'll Need
- A computer with Microsoft Excel installed.
- The specific worksheet where the formulas are not calculating.
Step-by-Step
- Select the affected cells: Click on the cell showing the formula text. To fix multiple cells at once, click and drag to highlight the entire range, or click the column letter at the top to select the whole column.
- Change the cell format: Go to the Home tab on the top ribbon. In the Number group, click the dropdown menu (which likely says "Text") and select General. Note that labels may differ slightly depending on your version of Excel or region.
- Trigger the recalculation: Changing the format does not automatically fix the existing text. You must "tell" Excel to look at the formula again. Double-click the cell to enter Edit mode, then press Enter.
- Bulk fix (Optional): If you have hundreds of cells, double-clicking each one is impractical. After changing the format to General, select the range, go to the Data tab, click Text to Columns, and immediately click Finish. This forces Excel to re-evaluate the data type for every cell in the selection.
- Verify the result: Ensure the cell now displays the calculated value (e.g., 10) instead of the formula (e.g., =SUM(A1:A2)).
Common Mistakes
- Forgetting to re-enter the formula: The most common mistake is changing the format to "General" and expecting the result to appear immediately. Excel will not calculate the formula until the cell is edited or the sheet is forced to recalculate.
- Adding a space before the equals sign: If there is a space before the
=(e.g.,=SUM(A1:B1)), Excel treats the entire entry as text regardless of the cell formatting. - Using a single quote: Starting a formula with an apostrophe (
'=SUM(A1:B1)) explicitly tells Excel to treat the entry as text. This is often used by accountants to show a formula without running it, but it prevents calculation.
Tips
- Check for "Show Formulas" mode: If every single formula in your entire workbook is visible as text, you might have accidentally toggled "Show Formulas" mode. Press
Ctrl + `(the grave accent key, usually next to the number 1) to toggle this on and off. - Consistency is key: Always set your column formatting to "General" or "Number" before typing your formulas to avoid this issue from the start.
- Use the Formula Bar: When troubleshooting, look at the Formula Bar at the top of the screen. If the formula looks correct there but appears as text in the cell, it is almost certainly a formatting issue.
Troubleshooting
If the steps above did not work, try these solutions in order:
- Check for leading spaces: Click into the cell and ensure there are no spaces or hidden characters before the equals sign. Delete any found and press Enter.
- Check the "Show Formulas" setting: Go to the Formulas tab and look for the Show Formulas button in the Formula Auditing group. If it is highlighted, click it to disable the view.
- Check for Circular References: Sometimes a formula that refers to its own cell can cause erratic behavior. Look at the bottom-left status bar of the Excel window; if it says "Circular References," you need to fix the logic of your formula.
- Restart the application: If the software is lagging or not updating cell formats, save your work, close Excel completely, and reopen the file.
Frequently Asked Questions
Why did my formula suddenly turn into text?
This usually happens if the cell was formatted as "Text" before the formula was typed, or if the data was imported from another software (like a CSV or database) that forced a text format on those cells.
Does this happen in Excel Online/Web version?
Yes, the same formatting rules apply to the web version of Excel. You must change the cell format to General and then re-enter the formula for it to calculate.
Will changing the format to General delete my data?
No. Changing the format from Text to General does not delete the characters inside the cell; it only changes how Excel interprets and displays those characters.
Can I use a macro to fix this for the whole sheet?
While possible, using the Text to Columns method mentioned in the step-by-step guide is the fastest non-coding way to force a recalculation across thousands of cells.
Why does the formula work in some cells but not others in the same column?
Excel allows different formatting for every individual cell. It is likely that some cells were set to "General" while others were accidentally set to "Text" during data entry.