Can You Overwrite an Excel Cell Without Losing Its Formula?
Question details
The user wants to enter a replacement value without losing the formula already in an Excel cell.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet needs to show an entered value while retaining the original calculation.
- Observed behavior
- Entering a value directly into a formula cell replaces the formula.
Select the formula cell and check its contents in the formula bar. Identify an unused cell for an override value or a separate calculation, and check that it is not already used elsewhere.
Use an override cell with a conditional formula
Use this approach when one cell should show either an entered override or the original calculation.
A cell cannot hold both a directly entered replacement and its original formula. Instead, keep a formula in the display cell and enter overrides in a separate cell.
Select an unused cell, such as B2, and leave it blank until you need to override the result.
Select the display cell, such as A2, and edit its formula in the formula bar. If its original formula is =SUM(C2:C10), replace it with =IF(B2<>"",B2,SUM(C2:C10)).
Type a replacement value in B2 to display it in A2. Clear B2 to show the original calculation again.

Keep the formula and replacement in separate cells
Use separate cells when both the calculated result and the entered value need to remain visible.
Preserve a formula while entering an override in WPS Spreadsheet
Use a separate override cell and an IF formula in WPS Spreadsheet to switch between an entered value and the original calculation.
- 1. Open your spreadsheet: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Choose an override cell: Select an unused cell, such as B2, and leave it blank.
- 3. Edit the display formula: Select the formula cell and edit its formula in the formula bar. For example, change =SUM(C2:C10) to =IF(B2<>"",B2,SUM(C2:C10)).
- 4. Test the override: Enter a value in B2 to display it in the formula cell, then clear B2 to restore the calculated result.

Frequently Asked Questions
What happens if I type a value directly into an Excel formula cell?
The entered value replaces the formula. To retain the calculation, enter the value in another cell and use a conditional formula to display it.
Can a single Excel cell store both a formula and a manually entered value?
No. A cell holds one formula or value at a time. Use a separate override cell or keep the calculated result and entered value in separate cells.
How do I switch back to the calculated result?
If you used =IF(B2<>"",B2,SUM(C2:C10)), select B2 and clear its contents. The formula cell will then display the SUM result.
Can I show the original result and the replacement at the same time?
Yes. Leave the formula in its original cell and enter the replacement value in another cell. Label both cells so their purposes are clear.




