Your First Formulas
Write formulas that start with an equals sign, use arithmetic operators and the order of operations, and link cells so results update themselves.
Welcome back!
Step 1 of 11Learn
The calculator that remembers
Priya plans a team lunch. In her sheet, cell B1 holds the number of people (12), B2 the price per meal ($14) and B3 the tip rate (18%). In B4 she could type the answer she worked out on her phone: 198.24. Or she could type a formula:
=B1*B2*(1+B3)
Both show $198.24. The difference appears ten minutes later when two more colleagues sign up. With the typed number, Priya has to recalculate by hand. With the formula, she changes B1 to 14 and B4 instantly becomes $231.28.
That's the core idea of spreadsheets: formulas remember how a result was calculated, so when the inputs change, the result follows.
Every formula starts with an equals sign (=). Without it, Sheets treats what you type as text: typing B1*B2 just shows the characters "B1*B2." After the equals sign, you can use:
- Numbers: =14*12
- Cell references: =B1*B2, which use whatever is currently in those cells
- Functions: =SUM(B2:B10), which you'll learn in the next lesson
Prefer cell references over typed numbers. =B1*B2 updates automatically; =12*14 is just a calculator that forgets. A good rule: any number that might change, such as a price, rate or quantity, belongs in its own labeled cell, and formulas point to it.
Step 2 of 11Learn
Operators and the order of operations
Sheets uses these arithmetic operators:
| Operator | Meaning | Example | Result |
|---|---|---|---|
| + | Add | =10+5 | 15 |
| - | Subtract | =10-5 | 5 |
| * | Multiply | =10*5 | 50 |
| / | Divide | =10/5 | 2 |
| ^ | Power | =102 | 100 |
| & | Join text | =A2&" "&B2 | First and last name with a space |
When a formula has several operators, Sheets follows the standard order of operations: parentheses first, then powers, then multiplication and division, then addition and subtraction, working left to right within each level.
That's where many errors hide. To average three test scores in A1, A2 and A3:
=A1+A2+A3/3is wrong. Sheets divides only A3 by 3, then adds A1 and A2.=(A1+A2+A3)/3is right. The parentheses force the addition first.
With scores of 80, 90 and 70, the wrong formula gives 80 + 90 + 23.33 = 193.33, an impossible average. Whenever a result looks strange, check whether parentheses are missing.
Percent change is another classic: from an old value in B2 to a new value in C2, the formula is =(C2-B2)/B2. Without the parentheses, =C2-B2/B2 calculates B2/B2 = 1 first, then subtracts 1 from C2.
Step 3 of 11Practice · Work it out
What result does the formula =4+6*22 produce?
Step 4 of 11Try the calculator
Team lunch model
This is Priya's sheet as a live model. Each input is a cell; each output is a formula that points to those cells. Change the headcount or tip and watch every result update.
- Food cost
=B1*B2 - 168 $
- Total with tip
=B1*B2*(1+B3) - 198.24 $
- Cost per person
=B4/B1 - 16.52 $
Step 5 of 11Learn
Building formulas by clicking
You don't have to type cell addresses. Start a formula with =, then click the cell you want; Sheets inserts its address and outlines it in color. Type an operator, click the next cell, and press Enter. Clicking avoids typos like referring to B12 when you meant B21.
To check a formula later, select the cell and look at the formula bar, or double-click the cell: each reference lights up in a different color with a matching outline on the grid. It's the quickest way to see whether a formula points where you think it does.
Formulas don't just calculate numbers. With the & operator you can join text: if A2 holds "Maria" and B2 holds "Lopez," then =A2&" "&B2 produces "Maria Lopez." Text inside a formula always goes in straight double quotes.
A few beginner mistakes to watch for:
- Forgetting the equals sign, so the formula appears as text.
- Using x for multiply instead of *. Sheets doesn't understand =B2xC2.
- Typing results instead of formulas. If one cell in a column of totals is a typed number, it won't update when inputs change, and nobody will notice until the numbers are wrong.
- Circular references: a formula that refers to its own cell, such as =A1+1 typed into A1. Sheets shows an error because the calculation would never end.
If Sheets shows a small red triangle in a cell's corner, hover over it to read the error message.
Step 6 of 11Note
Step 7 of 11Practice · Spot the mistake
Each formula is labeled with what it should calculate. Tap the formulas that will give the wrong result.
Step 8 of 11Note
Step 9 of 11Try the calculator
The gas budget, live
The same three input cells as the example. Change one input and both formula results update, just as they would in the sheet.
- Weekly cost
=B1/B2*B3 - 21.6 $
- Yearly cost
=B4*52 - 1,123.2 $
Step 10 of 11Practice · Fill in the blanks
Fill in the blanks
Every formula in Google Sheets must begin with the character, and the operator for multiplication is .
Step 11 of 11Practice · Choose one
Cell C2 holds an old price of $40 and D2 a new price of $50. Which formula correctly calculates the percent increase?
Lesson complete!