SUM

Fixing a broken total

Spreadsheet in your browser
Lesson concept What you'll do
1 / 5

Fix a total that comes out wrong.

Find what SUM is missing or counting twice, then change the formula to deal with it.

Typing formulas is easiest on a computer with a keyboard.

A1
ABCDEF
1ItemAmountGiven total985
2Monitor Stand85Correct total
3Headset230
4Office Chair45
5Bookshelf190
6USB-C Hub350
7Notebook A5140
8Filing Cabinet100
9Desk Organiser35
10
11
12
13
Type to enter a value or a formula starting with =. F2 edits, F4 adds $ to a reference.
Study notes

How SUM and SUMIF works

  • Why can a total be wrong with no error?

    Excel only adds up what you point it at. If the range or the data is wrong, you get a confident, wrong number. Three causes cover most broken totals.

  • 1. Does the range cover every row?

    Click the total and look at the coloured outline. Rows added under the range, or a range typed by hand, are left out. Fix it with a range that covers every row, or turn the list into an Excel table (Ctrl+T) so totals grow with it.

  • 2. Are any numbers stored as text?

    Text numbers sit on the left of the cell and SUM skips them. =SUM(VALUE(B2:B9)) counts them without touching the data, or fix the column itself with VALUE in a helper column. In Excel 2019 and older, use =SUMPRODUCT(VALUE(B2:B9)) instead (or press Ctrl+Shift+Enter).

  • 3. Is anything counted twice?

    A column with subtotals in it adds each item twice if you SUM the lot. Skip the subtotal rows by their label:

    =SUMIF(A2:A11,"<>*Subtotal",B2:B11)

    Or add up only the subtotals. Excel's SUBTOTAL(9,...) also ignores other SUBTOTAL formulas in its range.

  • How do I check a total?

    Select the cells: the status bar at the bottom of Excel (and of the grid here) shows their Sum and Count. If Count is higher than Numerical Count (right-click the status bar to show it), some cells hold text. Totals of lookups have their own traps: see SUM with VLOOKUP.

Know someone fighting with a spreadsheet? Send them this page.