Excel Convert Between Formula and Text Value
In this article
To convert a formula to its calculated text value in Excel, copy the cell and paste it back as a value using Paste Special (Ctrl+Alt+V, then V). To convert a text string that looks like a formula into an actual working formula, use the Text to Columns feature or the Find & Replace method described below. This article explains both directions, when to use each, and how to avoid common pitfalls.
Why Convert Between Formulas and Values?
Excel stores two different things in a cell: the formula (such as =A1*2) and the displayed result (such as 20). Normally you see the result, but the underlying formula is what gets recalculated when inputs change. Converting a formula to a static value removes that link, which is useful when you want to freeze a snapshot, send a file without revealing your calculation logic, or reduce file size when formulas are no longer needed. Converting text to a formula is the reverse: you have a string that reads =A1*2 but Excel treats it as plain text, and you want it to calculate.
How to Convert a Formula to a Text Value
The most reliable method works on any version of Excel:
- Select the cell or range containing the formulas.
- Press Ctrl+C to copy.
- Right-click the destination cell (often the same cell) and choose Paste Special (or press Ctrl+Alt+V).
- In the dialog, select Values and click OK.
This replaces the formula with its current calculated result as a static number or text. The keyboard shortcut Alt+E+S+V then Enter also works. If you only need to convert one cell, you can also click the cell, press F2 to enter edit mode, then press F9 to replace the formula with its result, and press Enter.
How to Convert Text That Looks Like a Formula into a Working Formula
Sometimes you import data or receive a spreadsheet where formulas appear as text, such as =A1+B1 in a cell that Excel does not evaluate. The quickest fix is to use Find & Replace:
- Select the range with the text formulas.
- Press Ctrl+H to open Find & Replace.
- In Find what, type
=(just the equals sign). - In Replace with, type
=again (the same character). - Click Replace All.
This forces Excel to re-evaluate the cell as a formula. If that does not work, check that the cell is not formatted as Text (select the cells, set format to General, then repeat Find & Replace). Another method is to use Text to Columns: select the column, go to Data > Text to Columns, choose Delimited, uncheck all delimiters, and click Finish. This often converts text-formatted numbers and formulas to their proper types.
When to Use Which Method
- Paste Special > Values – the standard for converting formulas to static results, works on any selection, and is reversible only by undo.
- F9 in edit mode – good for a single cell, but it converts the whole formula to a value, not just part of it.
- Find & Replace – the fastest way to turn text formulas into live formulas, but it will also affect any other equals signs in the selected range.
- Text to Columns – a fallback when Find & Replace fails, particularly when cells are formatted as Text.
Common Mistakes and Pitfalls
One frequent error is converting a formula to a value and then realizing you need the formula back – there is no built-in undo after you close the file, so consider saving a copy first. Another mistake is using Find & Replace on a range that contains text with equals signs (like email addresses or equations) – those will also become formulas and may produce errors. Also, note that converting to values does not preserve number formatting; a date may appear as a serial number if the original cell had a formula returning a date. Always check the result after conversion.
Comparing Methods: Speed vs. Control
Paste Special is the most controlled method because it gives you a dialog with options (values, formats, column widths). Find & Replace is faster for large ranges but less precise. F9 is quick for a single cell but easy to trigger accidentally. For converting text to formulas, Text to Columns is more robust than Find & Replace when the cells are formatted as Text, but it only works on one column at a time. There is no built-in function that converts a text formula to a live formula without a macro, though you can use the FORMULATEXT function to display a formula as text (the reverse of what you want).
Alternatives for Advanced Users
If you need to convert many formulas to values across multiple sheets, you can use a simple VBA macro that loops through cells and sets .Value = .Value. Similarly, a macro can evaluate text formulas by assigning the text to a cell’s .Formula property. For one-off conversions, the built-in methods above are sufficient. Another alternative is to use the Evaluate feature in the Name Manager (defined name with a formula that references the text cell), but that is more complex and rarely needed.
Frequently Asked Questions
Why does my formula show as text and not calculate?
This usually happens when the cell is formatted as Text before you type the formula, or when you import data that includes a leading apostrophe. Change the cell format to General, then re-enter the formula or use Find & Replace on the equals sign.
Can I convert a formula to a value without losing number formatting?
Paste Special > Values will keep the number formatting of the copied cell, but if the formula returns a date and the cell was formatted as General, it will show a serial number. To preserve formatting, use Paste Special > Values and then reapply the desired format, or use Paste Special > Values and Number Formats.
Is there a way to convert a text formula to a value without making it a live formula?
Yes – if you want the text to remain text but show the result, you would need to evaluate it manually. There is no built-in function that does this. You can copy the text, paste it into a cell, and then use the F9 trick only if you first make it a formula. Otherwise, you must convert it to a live formula and then copy-paste as values.
What does the FORMULATEXT function do?
It returns the formula in a cell as a text string. For example, if cell A1 contains =B1*2, =FORMULATEXT(A1) returns the text =B1*2. This is the opposite of converting text to a formula – it shows the formula as text.
Can I convert a whole column of formulas to values at once?
Yes – select the entire column, copy, then Paste Special > Values in place. This works for any range, including entire columns or rows.
Why does Find & Replace not work for converting text formulas?
If the cells are formatted as Text, Excel will still treat the result as text even after replacement. You must first change the cell format to General, then perform Find & Replace. Also, ensure that the cell does not contain a leading apostrophe, which forces text.