How to Paste an Excel Formula as Text into an Adjacent Cell
Question details
The user needs to paste an existing Excel formula as raw text into an adjacent cell to display it without calculating, but their attempt using an apostrophe to force text formatting is failing.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Copying a formula to display it purely as text for documentation, sharing, or auditing purposes.
- Observed behavior
- Pasting the copied formula fails when an apostrophe is entered first into the destination cell to force text formatting.
Ensure you are copying the exact text of the formula directly from the formula bar, rather than copying the cell itself, to prevent Excel from automatically adjusting relative cell references.
Format the Destination Cell as Text Before Pasting
Pre-formatting the destination cell as Text prevents Excel from trying to calculate the formula, allowing you to paste the string exactly as copied without needing an apostrophe.
This is the most reliable method for pasting formulas as text because it changes the inherent property of the destination cell before any data is entered, eliminating the need for manual prefixing.
Click on the adjacent cell where you want the formula to appear as text.
Navigate to the 'Home' tab on the ribbon. In the 'Number' group, click the dropdown menu and select 'Text'.
Select the original cell containing the formula, highlight the entire formula text in the formula bar, and press Ctrl+C to copy.
Double-click the formatted destination cell (or click into the formula bar) and press Ctrl+V to paste the formula text. Press Enter.

Use the Apostrophe Prefix Correctly
If you prefer using an apostrophe to force text formatting, you must paste the formula in edit mode rather than pasting over the cell.
Use the FORMULATEXT Function
For a dynamic and automated approach, use the FORMULATEXT function to extract and display the formula from an adjacent cell as text.
Effortlessly Manage and Display Formulas with WPS Office
WPS Spreadsheet provides robust formatting tools and built-in functions like FORMULATEXT, making it incredibly easy to extract, audit, and display your formulas as text without running into calculation errors.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open your workbook.
- 2. Format cell as text: Select your destination cell, go to the Home tab, and choose 'Text' from the number format dropdown.
- 3. Copy and paste safely: Copy the text directly from the formula bar of the source cell and paste it into the pre-formatted destination cell.

Frequently Asked Questions
Why does my pasted formula still calculate even after adding an apostrophe?
This happens if you paste the entire copied cell rather than the raw text, which overwrites the apostrophe. To fix this, copy the formula text directly from the formula bar, double-click the new cell, type the apostrophe, and paste the text immediately while still in edit mode.
What is the fastest way to show all formulas in a worksheet instead of their values?
You can toggle the display of all formulas in your worksheet by pressing the shortcut key combination Ctrl + ` (the grave accent key, usually located below the Escape key). Press it again to return to showing the calculated values.
Can I prevent Excel from changing my cell references when I copy a formula?
Yes. If you copy the entire cell and paste it elsewhere, relative references will shift. To prevent this, copy the exact text from the formula bar and paste it, or add a dollar sign ($) before the column letters and row numbers in your original formula to make them absolute references.




