Formula Errors

How to Preserve Excel Formulas and Values When Deleting Source Data

Olivia MillerOlivia Miller Nov 10, 2026 869 views

Question details

The user wants to keep the calculated total in a worksheet intact even after the source data used in the calculation formula is deleted.

How to Preserve Excel Formulas and Values When Deleting Source Data
Product
Excel
Device & OS
not provided
Scenario
Tracking stock dividends where old dividend rates are deleted or updated, but historical total values need to remain unchanged.
Observed behavior
Deleting the source dividend value causes the formula calculating the total to return zero or an error, erasing the historical result.
Before you start

Ensure you clearly identify which cells contain your historical formulas and which contain the source data you plan to delete. If you are going to use VBA, remember to save your workbook as a Macro-Enabled Workbook (.xlsm).

Solution 1Recommended

Convert Formulas to Static Values (Recommended)

The simplest way to preserve a calculated result before deleting its source data is to convert the formula itself into a static number.

1
Select the calculated cells

Highlight the column or specific cells containing your calculated totals (e.g., Column D).

2
Copy the selection

Press Ctrl+C to copy the selected cells to your clipboard.

3
Paste as values

Right-click the same selection and choose "Paste as Values" (the clipboard icon with 123) from the context menu. The formulas are now replaced by their static calculated results.

4
Clear the source data

You can now safely select and delete the source data in the other columns without affecting your preserved totals.

Convert Formulas to Static Values (Recommended)
Quick Tip: When new dividend values are ready, you can manually re-enter the multiplication formula into the total column to resume automatic calculations.
Free Microsoft Office alternative

Manage Your Financial Spreadsheets with WPS Office

Looking for a lightweight, free alternative to Microsoft Excel for tracking stocks and dividends? WPS Spreadsheet offers a highly compatible, easy-to-use interface that supports advanced formulas, lookup tables, and even VBA macros. Transition seamlessly without losing your formatting or data.

Fully compatible with Microsoft Excel (.xlsx, .xls, and .xlsm) formats.Supports advanced lookup formulas like XLOOKUP and VLOOKUP for historical data tracking.Free to use with a familiar tabbed interface.Built-in tools for pasting values and managing complex financial models.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my total change to zero when I delete a cell referenced in the formula?

Excel formulas recalculate automatically based on the current values in their referenced cells. If you delete a value, Excel treats that empty cell as a zero. In a multiplication formula, anything multiplied by zero results in zero.

How can I paste values using keyboard shortcuts?

After copying your cells with Ctrl+C, you can use the keyboard shortcut sequence Alt > H > V > V to paste them as static values. This instantly removes the underlying formulas while keeping the numbers.

Can I keep the formula but hide the zero if the source data is empty?

Yes, you can use the IF function to handle blank cells. For example, `=IF(ISBLANK(C3), "", B3*C3)` will display an empty cell instead of a zero if the dividend cell (C3) is cleared. However, this will not preserve your historical totals.

Will pasting values permanently delete my formulas?

Yes, once you paste as values, the selected cells will contain static numbers instead of formulas. You will need to manually re-enter or copy the formula back into the cell when you are ready to perform dynamic calculations again.