Function Problems

Copy Excel Formulas to Notepad Without Losing Formula Text

John WilsonJohn Wilson Nov 18, 2026 870 views

Question details

Copy formulas from Excel to Notepad as text and restore them as formulas later.

Copy Excel Formulas to Notepad Without Losing Formula Text
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user wants to keep formula text in Notepad instead of copying only calculated results.
Observed behavior
Copying cells may put their calculated values in Notepad rather than their formula text.
Before you start

Select a source cell and check the formula bar to confirm it contains a formula beginning with =. Decide whether you need to copy one formula or several formulas from a range.

Solution 1Recommended

Copy a Formula Directly From the Excel Formula Bar

Use this method to preserve the exact text of an individual formula.

1
Select the formula cell

In Excel, click the cell containing the formula and check that the formula appears in the formula bar.

2
Copy the formula text

Click inside the formula bar, select the entire formula beginning with =, and press Ctrl+C. Press Esc to leave the cell unchanged.

3
Paste into Notepad

Open Notepad and press Ctrl+V to paste the formula text. Save the text file if needed.

4
Restore the formula

Copy the formula from Notepad, select the destination cell in Excel, click the formula bar, and paste the text. Press Enter to apply it as a formula.

Copy a Formula Directly From the Excel Formula Bar
Cell references: Pasting formula text preserves the references as written. Unlike a normal cell copy, it does not automatically adjust relative references for the destination.
Work with formulas in WPS

Copy Spreadsheet Formulas as Text With WPS Office

Use the formula bar in WPS Spreadsheets to copy an individual formula to Notepad and paste it back without replacing it with its calculated result.

  1. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your Excel workbook.
  2. 2. Copy the formula: Select a formula cell, click the formula bar, select the complete formula, and press Ctrl+C. Press Esc to leave the cell unchanged.
  3. 3. Save the text: Open Notepad, paste the formula with Ctrl+V, and save the text file if needed.
  4. 4. Restore the formula: Copy the formula from Notepad, select a destination cell in WPS Spreadsheets, paste it into the formula bar, and press Enter.
Copy formula text directly from the formula barOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork with spreadsheets using the free WPS Office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does Notepad show a value instead of my Excel formula?

Copying a cell may transfer its calculated result as text. To copy the formula itself, select the formula text in Excel's formula bar and copy it from there.

Can I use Show Formulas to copy formulas to Notepad?

Ctrl+` displays formulas in the worksheet, but it does not always put formula text on the clipboard. Copy from the formula bar or use FORMULATEXT for a helper range instead.

Why does FORMULATEXT show an error?

The referenced cell may not contain a formula. Select that source cell and check the formula bar, then update the cell reference in your FORMULATEXT formula if needed.

Will cell references change when I paste a formula back from Notepad?

No. Pasting formula text into the formula bar keeps the references as written. Edit the references before pressing Enter if the destination needs different cells.