logo
search
Formula Errors

How to Paste an Excel Formula as Text into an Adjacent Cell

Emma BrownEmma Brown Oct 16, 2026 869 views

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.

How to Paste an Excel Formula as Text into an Adjacent Cell
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the destination cell

Click on the adjacent cell where you want the formula to appear as text.

2
Change the number format

Navigate to the 'Home' tab on the ribbon. In the 'Number' group, click the dropdown menu and select 'Text'.

3
Copy the formula

Select the original cell containing the formula, highlight the entire formula text in the formula bar, and press Ctrl+C to copy.

4
Paste the formula

Double-click the formatted destination cell (or click into the formula bar) and press Ctrl+V to paste the formula text. Press Enter.

Format the Destination Cell as Text Before Pasting
Format Retained: Because the cell is pre-formatted as text, the pasted formula will not execute and will safely display exactly as copied.
Display Formulas as Text in WPS Spreadsheet

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. 1. Open your spreadsheet: Launch WPS Spreadsheet and open your workbook.
  2. 2. Format cell as text: Select your destination cell, go to the Home tab, and choose 'Text' from the number format dropdown.
  3. 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.
Instantly format cells as text from the intuitive Home tab interfaceFully compatible with Microsoft Excel (.xlsx) formats and functionsIncludes advanced formula auditing tools at no extra costLightweight, fast, and works seamlessly across multiple operating systems
microsoft office alternative - wps office

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.