logo
search
Document Editing Problems

How to Delete Old Excel Rows Without Losing Formulas

John WilsonJohn Wilson Oct 9, 2026 870 views

Question details

The user needs to remove historical data entries from a financial worksheet without breaking existing calculation formulas or affecting recent data.

How to Delete Old Excel Rows Without Losing Formulas
Product
Microsoft Excel
Device & OS
not provided
Scenario
Updating a financial worksheet for a new year by clearing out old historical row entries from previous years.
Observed behavior
The goal is to safely remove outdated rows while ensuring that all remaining calculated formulas update their references properly and remain fully functional.
Before you start

Before deleting any rows, check your formulas to ensure they do not explicitly reference specific cells within the historical data you plan to remove, and consider saving a duplicate copy of your file.

Solution 1Recommended

Select and Delete Entire Rows

This standard method ensures that you remove old records completely while allowing the spreadsheet software to automatically adjust formula references for the remaining rows.

Deleting entire rows rather than just clearing cell contents is the most efficient way to clean up old data. When a whole row is deleted, the software automatically shifts the remaining rows upward and dynamically adjusts any relative formula references so that calculations remain intact.

1
Locate the retention point

Scroll through your financial worksheet and identify the first row of data you want to keep (for example, the first entry for the year 2021).

2
Select historical rows

Click and drag the row numbers on the far left-hand side of the screen to highlight all the rows above your retention point containing the historical data.

3
Delete the selected rows

Right-click anywhere on the highlighted row numbers and choose 'Delete' from the context menu to remove the old entries entirely.

4
Verify formula integrity

Click on several cells containing formulas in your remaining data to confirm that their references have updated correctly and no #REF! errors are displayed.

Select and Delete Entire Rows
Handling #REF! Errors: If you see #REF! errors after deletion, it means a remaining formula explicitly referenced a cell inside a deleted row. Immediately press Ctrl+Z to undo the action, and update the formula to use a broader range before trying again.
Smart Spreadsheet Management

Safely Manage Your Spreadsheet Data with WPS Office

WPS Spreadsheet provides a robust and reliable environment for managing large financial datasets. You can easily delete historical rows, audit complex formulas, and update your yearly records with complete confidence.

  1. 1. Open your worksheet: Launch WPS Spreadsheet and open your financial workbook.
  2. 2. Select old data: Click and drag across the row numbers on the left side to select the historical data you wish to remove.
  3. 3. Delete the rows: Right-click the selected row headers and choose 'Delete Rows' from the menu.
  4. 4. Validate calculations: Check your summary cells to ensure formulas have seamlessly adapted to the new worksheet structure.
Fully compatible with Microsoft Excel (.xlsx) formats and formula syntax.Intuitive row management and smart auto-adjustment for cell formulas.Lightweight software footprint with a familiar, easy-to-navigate interface.
QA img-9

Frequently Asked Questions

Why do I get a #REF! error when deleting worksheet rows?

A #REF! error occurs when a formula in your remaining data explicitly references a specific cell that was located inside the row you just deleted. To fix this, you must adjust the formula to reference a dynamic range or a cell outside of the deletion zone before removing the row.

Can I clear the data without deleting the rows entirely?

Yes. Select the cells containing the old historical data, right-click, and choose 'Clear Contents' (or press the Delete key on your keyboard). This empties the data from the cells but leaves the blank rows in place, ensuring that the spreadsheet structure and absolute references do not shift.

Do absolute references ($A$1) change when rows are deleted?

If you delete rows that are located above the cell with the absolute reference, the spreadsheet will automatically shift the absolute reference up to match its new position. However, if you delete the exact row containing the absolute referenced cell, the formula will break and return a #REF! error.