Formula Errors

Fix Excel Running-Balance Formulas After Inserting Table Rows

John WilsonJohn Wilson Nov 12, 2026 870 views

Question details

The user needs to restore a checkbook table's running-balance formula so it remains accurate when rows are inserted.

Fix Excel Running-Balance Formulas After Inserting Table Rows
Product
Microsoft Excel table formulas
Device & OS
not provided
Scenario
A running-balance column combines structured references such as [@Amount] with a reference to the cell above, and new table rows cause the formula to fail or calculate incorrectly.
Observed behavior
The running-balance formula can return an error such as #VALUE! or fail to adjust correctly after rows are inserted, especially when the opening row contains text such as "Balance".
Before you start

Select a cell in the running-balance column, such as D18, and confirm that the cell directly above it is the balance source for the next row. Identify the table's exact amount-column name, such as Amount, before editing the calculated-column formula.

Solution 1Recommended

Create a relative CellAbove name for the running-balance column

Use this fix when inserted rows break a formula that combines the previous balance with the current table row's amount.

A workbook-level name can point to the cell above the active cell without locking the reference to a fixed row. The SUM function also ignores text such as "Balance" in the opening row, avoiding the #VALUE! error that direct addition may produce.

1
Select the balance column

Click a data cell in the table's running-balance column, such as D18, so the relative reference is created from the correct position.

2
Open the name manager

In Excel, open the Formulas tab, select Name Manager, click New, and enter CellAbove in the Name box.

3
Set the relative reference

In the Refers to box, enter =!D17. Do not add dollar signs or a sheet name, because the reference must remain relative to the active cell.

4
Apply the calculated-column formula

Select the table's running-balance column and enter =SUM(CellAbove,[@Amount]), replacing Amount with the exact name of the table's amount column if it differs.

5
Test an inserted row

Insert a new row within the table and verify that the running balance uses the previous row's balance plus the new row's amount.

Create a relative CellAbove name for the running-balance column
Why this works: CellAbove adjusts with the table position, while SUM handles the text opening balance and the structured [@Amount] reference follows each inserted row.

Build resilient running-balance formulas in WPS Spreadsheets

WPS Spreadsheets supports workbook names, table formulas, and compatible XLSX files, allowing you to create a relative CellAbove reference and use SUM with the current row's Amount value.

  1. 1. Open the workbook: Launch WPS Spreadsheet, open the checkbook XLSX file, and click a running-balance cell such as D18.
  2. 2. Create the workbook name: Open the Formulas tab, choose Name Manager, select New, name the reference CellAbove, and enter =!D17 in Refers to.
  3. 3. Enter the table formula: In the running-balance calculated column, enter =SUM(CellAbove,[@Amount]) and confirm the formula for the table column.
  4. 4. Verify row insertion behavior: Insert a row inside the table and check that the new balance adds the current Amount to the balance immediately above it.
Keeps running-balance formulas aligned when table rows are insertedUses a relative named reference instead of fragile fixed cell addressesHandles text in the opening balance row with the SUM functionSupports Microsoft Excel XLSX format for easy file sharing and migration
microsoft office alternative - wps office

Frequently Asked Questions

Why does direct addition return #VALUE! in the first running-balance row?

If the cell above contains text such as "Balance," a formula using direct addition may try to add text to a number. Use =SUM(CellAbove,[@Amount]) because SUM ignores text values.

Should the CellAbove reference include dollar signs?

No. Enter =!D17 without dollar signs or a sheet name. This keeps the reference relative to the active balance cell and allows it to adjust when rows are inserted.

Where do I create the CellAbove name in Excel?

Select a cell in the running-balance column, open Formulas > Name Manager, click New, enter CellAbove as the name, and put =!D17 in the Refers to box.

What formula should I use for the calculated balance column?

Use =SUM(CellAbove,[@Amount]). If your table uses a different amount-column name, replace Amount with that exact structured-reference name.

Will the formula continue working after inserting a row?

Yes, when CellAbove is defined as a relative reference and the formula is used in the table's calculated column. The named reference and structured Amount reference adjust with the inserted row.