Sum A1 and A2 with a formula
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)
| 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.
- Start with an equals sign: =
- The function name is
SUM - 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
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.