Sum A1 and A2 with a formula

Easy Math
Description
Hints 0/3
Solutions 1
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

Your shop just opened and its first two months of revenue are recorded in A1 and A2. Fill the A3 A3 with the total revenue for both months.

SUM adds negatives as they are — case 3 is a refund month, so 120 + (−30) = 90, not 120.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
A
1 10
2 20

Notes

SUM is the foundation of spreadsheet math. Prefer ranges (A1:A2) over listing every cell so the formula still works when you insert rows later.

How to approach

Your answer goes in A3. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Start with an equals sign: =
  2. The function name is SUM
  3. Pass the range A1:A2 as the only argument

Official solutions

Show 1 solution — try it yourself first

Approach 1: Contiguous range SUM

=SUM(A1:A2)

Calculates the sum of cells from A1 through A2. Using a range reference allows formulas to remain robust if rows are inserted.

Function guide

Related practice

FAQ

How do I sum two cells with a formula?

Write =SUM(A1:A2) (or =A1+A2). Prefer SUM with a range so inserts later still work.

Why is the sheet read-only on SheetDo?

Practice cells stay locked so you focus on writing the formula in the console. The engine applies your formula to the target cell and grades the result.

How do I add a whole range instead of two cells?

Write =SUM(A1:A10) — a colon means "everything between these two cells". SUM accepts the range directly, so you never have to type each cell.