How to Preserve an Excel Cell Value Before Overwriting It
Question details
The user needs to preserve a value from column AC before its source cell is cleared or overwritten, so a formula can use it later.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A calculated value in column AC must remain available after the cell is cleared or replaced.
- Observed behavior
- Once the source cell is overwritten, an Excel formula cannot recover its previous value unless it was stored elsewhere.
Choose an unused cell or column to hold the saved value; the examples below use column AD. If the value has already been overwritten, check Undo or the workbook's version history before proceeding.
Save the current value with Paste Special
Use this method when you can save the value manually before clearing or replacing the source cell.
Select the cell in column AC, such as AC2, and choose Home > Copy.
Select an unused cell, such as AD2, and choose Home > Paste > Paste Special > Values. This stores the displayed result rather than copying its formula.
In a separate cell, enter =IF(AC2<>"",AC2,AD2) to use the current AC2 value when it is available, or the saved value in AD2 when AC2 is blank.
Select AC2 and clear or replace its contents after confirming that AD2 contains the value you want to keep.

Use a VBA macro to save and clear a column AC cell
Use this method to capture a selected cell's current value in column AD immediately before clearing it.
Preserve a cell value with WPS Spreadsheets
Use Paste Special in WPS Spreadsheets to store the current result in another cell before clearing or replacing the source, then reference the saved value in a formula.
- 1. Open the workbook: Open your Excel workbook in WPS Spreadsheets and locate the value in column AC.
- 2. Copy the source cell: Select AC2, or the relevant cell, and choose Copy.
- 3. Store the value: Select an unused cell such as AD2, then use Paste Special > Values to store the current result.
- 4. Reference the saved value: In a separate cell, enter =IF(AC2<>"",AC2,AD2), then clear or replace AC2 after checking the saved value.

Frequently Asked Questions
Can an Excel formula recover a value after a cell is overwritten?
No. A formula cannot retrieve the previous value from the overwritten cell. If the change was recent, try Undo; otherwise, check File > Info > Version History if version history is available for the workbook.
Why should I paste values instead of copying the formula?
Paste Special > Values stores the current result as a fixed value. Copying the formula may cause the pasted cell to recalculate or refer to different cells.
How can I show the saved value when AC2 is empty?
After saving the previous value in AD2, enter =IF(AC2<>"",AC2,AD2) in a separate cell. It displays AC2 when AC2 is not blank and otherwise displays AD2.
Will the VBA macro capture a value if I type directly over it?
No. The sample macro captures the value only when you select a single cell in column AC and run SaveAndClearAC before entering the replacement.




