Copy Excel Formulas to Notepad Without Losing Formula Text
Question details
Copy formulas from Excel to Notepad as text and restore them as formulas later.

- 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.
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.
Copy a Formula Directly From the Excel Formula Bar
Use this method to preserve the exact text of an individual formula.
In Excel, click the cell containing the formula and check that the formula appears in the formula bar.
Click inside the formula bar, select the entire formula beginning with =, and press Ctrl+C. Press Esc to leave the cell unchanged.
Open Notepad and press Ctrl+V to paste the formula text. Save the text file if needed.
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.

Extract Multiple Formulas With a FORMULATEXT Helper Range
Use a helper range to collect formula text from several cells without changing the original formulas.
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. Open the workbook: Open WPS Spreadsheets and choose Open to select your Excel workbook.
- 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. Save the text: Open Notepad, paste the formula with Ctrl+V, and save the text file if needed.
- 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.

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.




