Menu
Coddy logo textTech

The SUM Function

Part of the Fundamentals section of Coddy's Excel journey — lesson 23 of 42.

SUM adds up every number in a range. Give it the range in parentheses and it does the rest:

=SUM(B2:B6)

That means: add whatever numbers live in B2, B3, B4, B5 and B6. If any of those values change, the total recalculates instantly, no retyping.

A classic layout is a column of numbers with a Total row underneath. The label goes in one column, the SUM formula next to it, pointed at the data above it:

A7: Total
B7: =SUM(B2:B6)

One caution: make sure your range covers exactly the data rows. =SUM(B2:B7) placed in B7 would ask the cell to include itself, Excel calls that a circular reference and refuses to play. Stop the range one row above the total.

challenge icon

Challenge

Beginner

The sheet tracks snack-stand sales for one week: days in column A, amounts in B2:B6.

The label Total is already waiting in A7. In B7, write a SUM formula that totals the week's sales.

Your formula will be tested with different sales numbers, so it must use the range, not the values.

Try it yourself

Sheet1
ABCDEFG
1DaySales
2Mon120
3Tue80
4Wed95
5Thu130
6Fri75
7Total
8
9
10
11
12
13
14
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals