Document Editing Problems

Can You Overwrite an Excel Cell Without Losing Its Formula?

Natalie TaylorNatalie Taylor Dec 2, 2026 868 views

Question details

The user wants to enter a replacement value without losing the formula already in an Excel cell.

Can You Overwrite an Excel Cell Without Losing Its Formula?
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.
Before you start

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.

Solution 1Recommended

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.

1
Choose an override cell

Select an unused cell, such as B2, and leave it blank until you need to override the result.

2
Wrap the original calculation

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)).

3
Enter or clear the override

Type a replacement value in B2 to display it in A2. Clear B2 to show the original calculation again.

Use an override cell with a conditional formula
Blank overrides: This example treats a blank B2 as no override, so it cannot use an intentionally blank value as the override.
WPS Spreadsheet

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. 1. Open your spreadsheet: Open WPS Spreadsheet and use Open to select your Excel workbook.
  2. 2. Choose an override cell: Select an unused cell, such as B2, and leave it blank.
  3. 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. 4. Test the override: Enter a value in B2 to display it in the formula cell, then clear B2 to restore the calculated result.
Keep a calculation available while displaying an overrideOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet cells and formulasShow calculated and manually entered values in separate cells
microsoft office alternative - wps office

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.