What SUM does
SUM adds numbers and returns the total. Type =SUM(B2:B5) and Excel adds every number from B2 down to B5, then updates the total by itself whenever one of them changes, so the sheet stays right when the figures move. AutoSum can write the formula for you, as how to sum a column in Excel shows.
It sits at the bottom of most lists at work, from a month of expenses to the hours on a timesheet. When the numbers are in one block, one range covers them. When they’re spread out, SUM takes several ranges and cells at once.
Inside a range, SUM adds only real numbers. It skips empty cells and text, so a label or a note in the column doesn’t break the total.
Syntax
number1Required- The first thing to add. Usually a range such as
B2:B13, but it can be one cell likeB2or a number you type, like100. number2Optional, can repeat- More cells, ranges or numbers, separated by commas. SUM takes up to 255 arguments in all, and each one can be a range of thousands of cells.
Example: total an expense claim
Four costs from a business trip are in B2 to B5. The total goes in B6.
Read the formula as “the sum of B2 to B5”. The colon joins the first and last cell of the range, so B2:B5 means all four cells. Change the hotel to 260.00 and the total becomes 422.55 without touching the formula.
Example: add two blocks and skip a subtotal
A monthly budget has an office section with its own subtotal in B5, then two more costs below it. Adding B2:B7 would count the office costs twice, once on their own and once in the subtotal. Give SUM the two blocks separately instead:
Each argument can be a range, a single cell or a number, and you can mix them: =SUM(B2:B4,B6:B7,250) would add 250 on top.
Practice this in ProExcel
Total six months of sales in B8 with SUM, in a real practice sheet.
Checking your answers needs a free account.
Common mistakes
- Figures pasted from another system are sometimes text that only looks like a number. SUM skips them without a warning, so the total comes out short. They usually sit at the left of the cell, often with a small green triangle in the corner, and the total corrects itself once you convert them to numbers.
=SUM(B2:B6)typed in B6 includes itself, and Excel warns about a circular reference instead of showing a total. The range has to stop above the total.- A range doesn’t grow by itself. Add a row under the data and
B2:B5still ends at B5, so insert new rows above the total row, or format the list as a table so formulas follow it. - SUM adds rows you’ve hidden or filtered out. To total only the rows you can see, use
=SUBTOTAL(109,B2:B50). =B2+B3+B4stops with#VALUE!as soon as one cell holds text such as “n/a”, while SUM skips that cell and keeps going.
Frequently asked questions
Why is my SUM formula not working?
SUM skips numbers stored as text, so the total comes out as 0 or too low until you convert them. A cell that shows the formula itself was formatted as Text before you typed it: set it to General and enter the formula again. If the total doesn’t change when the numbers do, go to the Formulas tab, select Calculation Options and choose Automatic.
Does SUM ignore text and blank cells?
Inside a range, yes: SUM adds only the cells that hold numbers. A number you type straight into the formula as text, like =SUM("5",1), is still counted, which is rarely what you meant.
How do I sum only the rows that meet a condition?
Can SUM add a whole column?
Yes. =SUM(B:B) adds every number in column B and keeps working as rows are added. Put that formula in another column, or it would include itself.
How many numbers can SUM add?
SUM takes up to 255 arguments, and each argument can be a range of any size. One formula like =SUM(B2:B5000) already adds thousands of cells.