Ghost Sheet

Excel SUM not including new rows: why the total stops moving

Your formula adds a fixed range, such as =SUM(D2:D6), and the new rows were pasted below row 6, outside it.

This is the formula from this page. It opens on a live sheet in your workspace: fix it so it stays right when new data arrives.
G2=SUM(D2:D29)

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDEFG
1SupplierInvoiceDateAmount
2Brightline ChemicalsINV-410111/031,600Total owed
3Calder PaperINV-410211/03560
4Marlow PrintINV-410311/03730
5Calder PaperINV-410411/041,500
6Calder PaperINV-410511/05460
7Osprey PackagingINV-410611/062,220
8Calder PaperINV-410711/06520
9Marlow PrintINV-410811/072,290
10Marlow PrintINV-410911/07700
11Osprey PackagingINV-411011/08710
12Tidewater FreightINV-411111/08750
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Excel shows no error; the total is just short. Point the formula at the whole column, =SUM(D:D), or turn the list into an Excel Table so the range grows with it.

See it happen

InvoicesG2=SUM(D2:D6)
ABCDEFG
1SupplierInvoiceDateAmountTotal owed
2Calder Paper4101Nov 312005220
3Osprey Packaging4102Nov 3850
4Fenwick Tools4103Nov 4430
5Marlow Print4104Nov 52100
6Calder Paper4105Nov 6640
Monday: five invoices, and the total in G2 is right: 5,220.
InvoicesG2=SUM(D2:D6)
ABCDEFG
1SupplierInvoiceDateAmountTotal owed
2Calder Paper4101Nov 312005220
3Osprey Packaging4102Nov 3850
4Fenwick Tools4103Nov 4430
5Marlow Print4104Nov 52100
6Calder Paper4105Nov 6640
7Tidewater Freight4106Nov 10900
8Osprey Packaging4107Nov 11310
Next week two invoices are pasted into rows 7 and 8. The formula still reads D2:D6, so G2 stays at 5,220. The real total is 6,430.

Three ways to make the total keep up

Whole column
=SUM(D:D) returns 6,430 here and keeps up with any row you add. SUM ignores the text header in D1. Two conditions: the formula must sit outside column D (inside it, it would add itself), and nothing else numeric may sit lower in column D
Excel Table
Select the list, Insert → Table, name the table Invoices, then write the total as =SUM(Invoices[Amount]). Rows pasted directly under a table join it. We could not run this one in our engine, which has no Tables; check it in your Excel
Stretch the range
=SUM(D2:D1000) works until row 1001. It is the fix people reach for first, and the one that breaks again later

Ghost Sheet’s first task is exactly this case. Write the total, and it is checked on next week’s invoices too.

How to catch it in your own file

  • After you paste new rows, see whether the total moved. If it did not, look at where its range ends.
  • Select column D and read the Sum in the status bar at the bottom of the window. If it differs from your total, a row is outside the range.
  • Double-click the total (or select it and press F2): Excel draws a colored box around each range in the formula. If new rows sit below the box, they are not counted.

It is not only a beginner’s mistake

In the Reinhart–Rogoff economics paper, an averaging range ended five rows too early, so five countries were left out of a figure later cited in the debate on austerity. No error was shown. In a survey of 1,597 spreadsheet users by a university research project, 17.1% said they never test their spreadsheets and another 31.9% only sometimes.

What Ghost Sheet doesn’t do

It cannot open your workbook or check your formulas. It gives you tasks where this break happens on purpose, so you notice it in your own file.

How we checked

We ran the formulas on this page on the example data in the formula engine Ghost Sheet uses (Univer) on November 24, 2026, except where the page says we could not, and the sheets show the values it returned. That engine is not Microsoft Excel, and we have not re-run these examples in desktop Excel. One known difference: where Excel shows TRUE or FALSE, our engine shows 1 or 0.

Updated