The AI got the total right, until you added a row: Excel SUM not including new rows, and how to check AI formulas
AI assistants in Excel can write a SUM formula in seconds. Most of the time, for a simple request, the formula is correct. The trouble starts later, when your data grows and the total quietly stops telling the truth.
In this post you'll see a real example of that happening, learn a four-step check for any total an AI writes for you, and set up your sheet so the problem of Excel SUM not including new rows can't catch you again.
Round one: the AI gets it right
Nomsa handles online orders for a small appliance shop in Cape Town. Her sheet looks like this:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Qty | Price (R) | Total (R) |
| 2 | Kettle | 3 | 320 | 960 |
| 3 | Toaster | 5 | 210 | 1 050 |
| 4 | Blender | 2 | 450 | 900 |
| 5 | Mixer | 4 | 650 | 2 600 |
| 6 | Air fryer | 1 | 899 | 899 |
| 7 | Total |
She asks the AI assistant to put the total of the Total (R) column in D7. It suggests:
=SUM(D2:D6)
That's right. The range starts at the first order (row 2) and ends at the last one (row 6). The answer is R6 409.
Nomsa still checked before she clicked Insert, and that habit is the point of this post. A correct answer that you didn't check was luck. A correct answer that you did check is something you can stand behind.
Round two: a new order arrives
The next morning another order comes in: two more kettles at R320, so R640. Nomsa inserts it as row 7, and the Total row moves down to row 8.
She asks the assistant again for the total, this time in D8. The suggestion:
=SUM(D2:D6)
It looks tidy. It even gives a believable number, R6 409. But the range still stops at row 6. The new kettle order in D7 is left out. The correct formula is =SUM(D2:D7), which gives R7 049.
Nothing about the result looks wrong at first glance. There's no error message and no strange symbol. The total is just R640 short. Mistakes like this get pasted into reports and emails without anyone noticing.
Why SUM doesn't include new rows
This isn't only an AI problem. People run into it all the time with formulas they typed themselves.
A range like D2:D6 covers exactly those five cells. Microsoft's own SUM help page explains that SUM adjusts when you insert rows inside the range it refers to. A row added after the last cell, or between the data and the total, sits outside the range, and Excel doesn't reliably pull it in.
An AI assistant can make the same mistake for a similar reason. It may reuse the range it worked out earlier instead of looking again at where your data now ends. So the formula that was right yesterday gets copied into today's answer.
How to check an AI formula's range in four steps
You don't need to be an expert to catch this. You need a routine.
1. Read the range out loud. D2:D6 means "D2 down to D6". Now look at your sheet: where do the orders start, and where do they end? If the last order is in row 7, the range should end at 7.
2. Look at the coloured border. Double-click the cell with the formula (or click it and look in the formula bar). Excel draws a coloured border around the range the formula uses. If the border stops one row above your last entry, you've found the gap.
3. Compare with the status bar. Select the whole column of numbers, D2 to D7, with your mouse. The status bar at the bottom of the Excel window shows their Sum. If it says R7 049 and the formula says R6 409, one of them is missing something, and it isn't the status bar.
4. Do a rough sense check. You added an order worth R640. The total should have gone up by R640. If it stayed the same, the new row isn't included.
If any check fails, don't insert the suggestion. Reject it and tell the assistant exactly what's missing, for example: "Include row 7 in the total" or "Total D2:D7". Then check the new suggestion the same way.
Fix it for good with an Excel Table
Checking catches the problem. An Excel Table stops it happening in the first place.
- Click any cell inside your data (not the Total row).
- Press Ctrl+T (Windows) or Cmd+T (Mac).
- Make sure "My table has headers" is ticked, then click OK.
Now type a new order in the first empty row directly below the table. The table grows to include it automatically.
The real benefit shows up in your formulas. If you name the table Orders (on the Table Design tab), your total can refer to the whole column by name:
=SUM(Orders[Total (R)])
That formula always covers every row in the table, however many orders you add. No range to update, and nothing for you or an AI assistant to get out of date.
You can also switch on the table's Total Row from the Table Design tab. Excel adds a row at the bottom and uses SUBTOTAL(109, …) for the sum, which also ignores rows you've hidden with a filter.
The same applies to AutoSum (Alt+= on Windows, Cmd+Shift+T on Mac) outside a table. It's quick, but it only guesses a range from the cells it can see, so give its suggestion the same four checks.
Can AI write Excel formulas you can trust?
Yes, often. For everyday totals, averages and counts, AI assistants in Excel usually get a clear request right. That makes them useful.
But "usually" isn't the same as "always", and your name is on the spreadsheet, not the assistant's. Treat an AI suggestion like a formula from a helpful new colleague. It's probably fine, but you check it before it goes to your manager.
That habit is worth something at work, too. Plenty of people can type a question into an AI assistant. Fewer can look at the answer and say, in ten seconds, "that range is one row short". If you can explain how you check AI output, mention it in an interview. It shows you understand the work, not just the tool.
Practise catching it
Lesson 10 on ExcelyourTraining recreates Nomsa's situation. The AI assistant totals the column correctly the first time. Then a new order is added, and the assistant keeps the old range. Your job is to spot it, reject it and get the right total.
- Lesson 10: Summaries with AI
- New to SUM? Start with Lesson 6: SUM and AutoSum
Try lesson 10 in your browser now. It's free, there's no sign-up and nothing to install.