Sub topic 1
Starting a Formula with =
Prerequisites
This chapter assumes that you can open and edit a Google Sheets spreadsheet, enter values into cells, and use basic arithmetic operators: +, -, *, and /.
Starting every formula with =
A formula is an instruction that tells Google Sheets how to calculate a result. Every formula starts with an equals sign (=). The equals sign tells Sheets to evaluate what follows instead of treating the entry as ordinary text.
For example, this formula adds the values in two cells:
=A2+B2If A2 contains 12 and B2 contains 8, the cell containing the formula displays 20. The formula remains =A2+B2, even though the displayed result is 20.
You can combine cell references with arithmetic operators:
=B2*C2This multiplies the value in B2 by the value in C2. Use * for multiplication and / for division. Parentheses control the order of calculation:
=(B2+C2)*D2When you enter a formula, select an empty cell, type =, enter the rest of the formula, and press Enter. You can type cell names manually, or click cells while building the formula. Clicking can reduce typing errors.
Naming cells with A1 notation
A1 notation is the system Google Sheets uses to identify cells. A column is represented by one or more letters, and a row is represented by a number. The letter comes first.
| Reference | Meaning |
|---|---|
| `A1` | Column A, row 1 |
| `C7` | Column C, row 7 |
| `D2` | Column D, row 2 |
| `B2:B10` | Cells from B2 through B10 |
The intersection of a column and a row is one cell. For example, C7 means the cell in column C and row 7. A reference points to the cell's location, not directly to its current value. If the value in C7 changes, a formula that uses C7 recalculates automatically.
A range is a group of cells. The colon (:) means “through,” so B2:B10 includes B2, B3, and every cell down to B10. You will use ranges with functions such as SUM:
=SUM(B2:B10)This adds all values in the range.
Follow a formula from input to result
Consider a small order table:
| Cell | Value |
|---|---|
| B2 | 6 |
| C2 | 4 |
| D2 | `=B2*C2` |
The formula in D2 reads the quantity in B2, reads the price in C2, multiplies them, and displays 24.
Check the reference before pressing Enter
A formula can calculate successfully while still pointing to the wrong cells. Before accepting a result, confirm each column letter and row number. Check whether you intended a single cell, such as B2, or a range, such as B2:B10.
For a quick test, change one input value and verify that the result changes as expected. This confirms that the formula refers to the intended cells.
Exercise
Cells B2 and C2 contain 9 and 5. Write a formula for their product in D2, then write a formula that adds B2 through B10.
Show answer
Enter =B2*C2 in D2 and =SUM(B2:B10) in the cell where you want the total.