To turn a formula into text in Excel, you can either convert the result into a static value using "Paste Values" or display the actual formula syntax as text using an apostrophe or the FORMULATEXT function. Converting a formula to a static value is the most common requirement, as it "freezes" the result and prevents it from changing when the source data is edited.
What You'll Need
- A computer with Microsoft Excel installed (works across Windows and macOS).
- An existing Excel worksheet containing formulas you wish to convert.
Step-by-Step
Depending on whether you want to keep the calculated result as a permanent value or show the formula itself as a label, choose one of the following methods. Note that menu labels may differ slightly depending on your version of Excel or region.
Method 1: Convert Formula Results to Static Values (Paste Values)
Use this method when you want to remove the underlying calculation but keep the final answer in the cell.
- Select the cell or range of cells containing the formulas you want to convert.
- Copy the selection by pressing Ctrl + C (Windows) or Cmd + C (Mac), or by right-clicking and selecting Copy.
- Without clicking anywhere else, right-click on the first cell of the selected range.
- Under the Paste Options menu, click the Values icon (represented by a clipboard with the numbers "123").
- The formulas are now gone, and only the resulting text or numbers remain.
Method 2: Display the Formula Syntax using an Apostrophe
Use this method if you want Excel to treat the formula as a literal string of text rather than a calculation.
- Select the cell where you want the formula to appear as text.
- Type a single quotation mark/apostrophe (') at the very beginning of the cell.
- Type your formula immediately after the apostrophe (e.g.,
'=SUM(A1:A10)). - Press Enter.
- Excel will display the formula exactly as written, and the leading apostrophe will remain invisible in the cell view.
Method 3: Using the FORMULATEXT Function
Use this method to keep the original formula active in one cell while displaying that formula as text in another cell (ideal for documentation).
- Click on an empty cell next to the cell containing your formula.
- Type
=FORMULATEXT(followed by the cell reference of the formula you want to display. For example, if your formula is in cell A1, type=FORMULATEXT(A1). - Close the parenthesis and press Enter.
- The cell will now display the text of the formula located in the referenced cell.
Method 4: Using "Show Formulas" Mode
Use this method to see every formula in your entire sheet at once without changing any cell data.
- Go to the Formulas tab in the top ribbon.
- In the Formula Auditing group, click the Show Formulas button.
- Excel will expand all columns and display the formulas instead of the results.
- To return to normal view, click the Show Formulas button again.
Common Mistakes
- Forgetting to Copy: When using Paste Values, users often right-click and select "Paste Values" without copying the data first, which results in an error or no change.
- Applying Paste Values to the Wrong Area: If you copy a range and then click a different cell before pasting, you may overwrite unrelated data. Always ensure your active selection is correct.
- Confusing Text with Values: Adding an apostrophe turns the cell into a "Text" format. If you later try to use that cell in another calculation, Excel may ignore it because it is no longer a number.
- Over-reliance on Show Formulas: Remember that "Show Formulas" is a view setting, not a permanent change. If you send the file to someone else, they will see the results unless they also toggle this setting.
Tips
- Keyboard Shortcut for Paste Values: On Windows, after copying, you can press Alt + E, S, V, Enter in sequence to perform a Paste Special Values operation.
- Mass Conversion: If you have a massive dataset, converting formulas to values can significantly reduce the file size and increase the speed of the workbook because Excel no longer has to recalculate thousands of cells every time a change is made.
- Documentation: Use the FORMULATEXT method when creating templates for other users so they can see exactly how a specific result is being calculated without having to click into the cell.
Troubleshooting
If the formula does not turn into text or the value does not "freeze," try these steps:
- Check for Protected Sheets: If the "Paste" options are greyed out, your worksheet may be protected. Go to the Review tab and check if there is an option to Unprotect Sheet.
- Verify Cell Formatting: If you used an apostrophe but the formula is still calculating, ensure you didn't accidentally put a space before the apostrophe. The apostrophe must be the very first character in the cell.
- Refresh Calculation: If Paste Values seems to have failed, press F9 to recalculate the sheet. If the numbers change, the formula is still active and the Paste Values step was not completed.
- Check for Circular References: If your formulas are showing errors (like #REF! or #VALUE!) before you convert them to text, the "text" result will simply be that error message. Fix the formula errors first before converting to static values.
Frequently Asked Questions
Can I convert text back into a formula?
Not automatically. If you have converted a formula to a static value using Paste Values, the original logic is gone. You must rewrite the formula or undo the action immediately (Ctrl+Z).
Will converting formulas to text break my links to other workbooks?
Yes. If the formula was pulling data from an external file, converting it to a value removes that link. The cell will keep the last known value, but it will no longer update when the external file changes.
Does the apostrophe method work for all versions of Excel?
Yes, the leading apostrophe is a legacy feature of Excel and works across all versions, including Excel Online and mobile apps.
Is there a way to convert only some formulas in a range?
Yes. Hold the Ctrl key (Windows) or Cmd key (Mac) while clicking individual cells to select a non-contiguous range, then follow the Paste Values steps.
Why does my number look different after I convert the formula to text?
This usually happens due to cell formatting. The formula may have been rounding the display (e.g., showing 10.00), but the actual value was 10.0042. When converted to text, the full precision may be revealed. Adjust the decimal places in the Home tab to fix this.