Sub topic 4
Absolute references: locking a cell with $
Assume you can enter values and formulas in Google Sheets, read A1-style addresses such as A1, and use basic arithmetic operators. This chapter focuses on what happens to a cell reference when you copy a formula and how the dollar sign controls that behavior.
A cell reference is the address of a cell used in a formula. For example, A2 refers to column A, row 2. By default, Google Sheets treats this as a relative reference. A relative reference changes when you copy the formula to another cell.
An absolute reference stays fixed when you copy a formula. You create one by placing a dollar sign before the column, the row, or both:
| Reference | What stays fixed? | What can change? |
|---|---|---|
| `A2` | Nothing | Column and row |
| `$A$2` | Column A and row 2 | Nothing |
| `$A2` | Column A | Row |
| `A$2` | Row 2 | Column |
Why a copied formula changes
Suppose cell A2 contains a price. In B2, enter this formula:
=A2*0.2The formula calculates 20% of the price in A2. If you copy B2 to B3, Google Sheets adjusts the relative reference because the formula moved down one row:
Cell B2: =A2*0.2
Cell B3: =A3*0.2This behavior is useful when each row contains a separate price. It becomes a problem when every formula should use one fixed input cell.
Locking a cell with the dollar sign
Place a dollar sign before both parts of the address to lock the complete reference:
=$A$2*0.2When you copy this formula to another cell, it still refers to A2. Neither the column nor the row changes.
The dollar sign does not change the value in the cell. It changes how Google Sheets adjusts the reference during copying. You can type the signs manually or select the reference in the formula and press F4. On some keyboards, you may need to press Fn+F4. Pressing the shortcut cycles through relative, absolute, and mixed forms.
Worked example: one tax rate for many prices
Create this small price list:
| A | B | E |
|---|---|---|
| Price | Tax | Tax rate |
| 25 | formula | 0.2 |
| 40 | formula | |
| 75 | formula |
The tax rate is stored in E2. In B2, enter:
=A2*$E$2The reference A2 is relative, so it changes for each row. The reference $E$2 is absolute, so every formula uses the tax rate in E2. Copy B2 down to B4. The formulas become:
Cell B2: =A2*$E$2
Cell B3: =A3*$E$2
Cell B4: =A4*$E$2The results are 5, 8, and 15. If you change E2 from 0.2 to 0.25, all three results update because they share the same fixed input cell.
When a missing dollar sign causes wrong results
This formula looks similar:
=A2*E2After copying it from B2 to B3, Google Sheets changes it to:
=A3*E3If E3 is empty, the result may be zero or otherwise incorrect. The tax rate reference drifted because it was relative. The corrected formula is:
=A2*$E$2Check each reference when copied results look wrong:
- Should the column change?
- Should the row change?
- Should both remain fixed?
- Did a range or input cell move to an empty or unrelated location?
An absolute reference can also point to a cell on another sheet. If the tax rate is in cell B1 on a sheet named Settings, use:
=A2*Settings!$B$1The sheet name and cell remain fixed as you copy the formula.
Exercise
Cell A2 contains 50, and cell E1 contains 0.1. Write a formula for B2 that calculates the tax and keeps E1 fixed when copied down.
Show answer
=A2*$E$1