Confident CellsExcel practice Start free

Fixing SUM formulas: practice exercises

find and fix: ranges, subtotals, text numbers, running totals, percentages. 5 exercises on real-looking data, each checked as you go. The full lesson is part of Pro.

In the lesson

Each exercise starts with a broken formula to find and fix, so they open in the lesson rather than here.

Open the Fixing SUM formulas lesson

How it works

A total that's wrong usually looks right. Check: does the range cover every row? Does it add in a subtotal twice? Are some numbers really text? Does a running total start from the first row each time?

Numbers stored as text are left out by SUM. Multiplying by 1 turns them back into numbers: =SUM(C2:C9*1). That works as shown in Excel 365 and 2021; in older Excel, use =SUMPRODUCT(C2:C9*1).

Excel can help you find these: Trace Precedents draws arrows from the cells a formula uses, and green triangles mark formulas that don't match their neighbours. The lessons in Checking formulas show how.

=SUM(B2:B4*1) =SUMIF(A2:A9,"Month",B2:B9) =SUM($C$2:C2)

Things to check in a total

  • The range: does it reach the last row? A row added at the bottom is easy to miss.
  • Subtotals: if the list already has subtotal rows, adding the whole column counts everything twice.
  • Numbers as text: SUM quietly skips them. Text numbers often sit on the left of the cell.
  • Copying: a running total needs its starting cell locked, $B$2, so it always adds from the top.
  • Percentages: you can't add percentages from different-sized groups. Add the parts, then divide.

Worked example: a number stored as text

AB
1ItemCost
2Pens4
3Pads6
4Tape3
5Total
  1. =SUM(B2:B4) in B5. This should be 13, but it gives 7. The 6 for pads was typed as text, so SUM leaves it out.
  2. =SUM(B2:B4*1) in B5. Multiplying the range by 1 turns text numbers back into real numbers before they're added: 13. This works as shown in Excel 365 and 2021. In older Excel it gives #VALUE!, so use =SUMPRODUCT(B2:B4*1) there, which works in every version.

Running totals

A running total adds everything from the first row down to this one. In D2, =SUM($C$2:C2). Copied down to D5, it becomes =SUM($C$2:C5): the start stays put and the end moves.

Without the $, the start moves too, and each row only adds up itself.

Leaving out subtotal rows

ABC
1MonthTypeSales
2AprilMonth£300.00
3MayMonth£200.00
4Quarter 1Subtotal£500.00
5JuneMonth£400.00
6
7YearTotal
  1. =SUM(C2:C5) in C7. The months add up to 300 + 200 + 400 = £900, but adding the whole column also counts the £500 subtotal, giving £1,400.
  2. =SUMIF(B2:B5,"Month",C2:C5) in C7. SUMIF only adds the rows that match. It looks down column B for Month and adds the sales on those rows: £900. The parts are where to look, what to match, then what to add up.

What you'll practise

  1. The total in B15 looks fine, but it's less than it should be. Fix it.
  2. The year's total in C19 is double what it should be, because it adds up the quarter subtotals as well as the months. Fix it with SUMIF so it only adds the rows marked Month.
  3. Some of these costs came in as text, so the SUM in B13 leaves them out. Fix it so every cost is counted, without changing column B.
  4. Column C should show the running total: everything sold so far this year. The formula in C2 gives the right answer for April, but not when it's copied down. Fix it.
  5. Column D holds each team's attendance. The overall figure in D8 adds up the percentages, giving over 400%. Fix it so it gives the attendance for all the teams together.

Guide with worked examples: Excel formula not calculating: showing as text, or adding to 0