Sub topic 5
Absolute references with $ to pin a cell
Assume you can enter formulas, use A1 notation, and copy or fill formulas in Google Sheets. This chapter focuses on keeping one cell reference fixed while other references change.
Why pin a cell?
A relative reference changes when you copy a formula. For example, =B2*C2 becomes =B3*C3 when copied down one row. This behavior is useful when each row has its own inputs.
Sometimes every row must use the same cell. A tax rate, discount, exchange rate, or target value might be stored in F1. If you write =B2*F1 and fill it down, the reference changes to F2, F3, and so on. The formula then uses the wrong rate.
An absolute reference keeps a cell fixed. Add a dollar sign before both the column and row:
=B2*$F$1Here, B2 is relative, so it changes to B3, B4, and so on. $F$1 is absolute, so it always points to cell F1.
A worked example
Suppose a sheet contains this data:
| A | B | C | F |
|---|---|---|---|
| Item | Price | Tax | Tax rate |
| Notebook | 10 | 0.08 | |
| Pen | 3 | ||
| Folder | 5 |
To calculate tax in C2, enter:
=B2*$F$1Press Enter, then fill the formula from C2 through C4. The formulas behave like this:
| Cell | Formula |
|---|---|
| C2 | `=B2*$F$1` |
| C3 | `=B3*$F$1` |
| C4 | `=B4*$F$1` |
The price reference follows the row. The tax-rate reference remains fixed.
You can type the dollar signs manually or select a reference while editing a formula and press F4. Repeatedly pressing F4 cycles through relative, absolute, and mixed forms. The exact key behavior can vary by keyboard and browser, so check the formula bar before confirming the formula.
Absolute versus mixed references
An absolute reference locks both parts:
=$F$1A mixed reference locks only one part:
$F1locks column F but allows the row to change.F$1locks row 1 but allows the column to change.$F$1locks both the column and row.
Mixed references are useful in tables that calculate values across both rows and columns. For example, =$A2*B$1 keeps using column A for the row input and row 1 for the column input.
Common mistakes
If the tax rate is accidentally entered as F1, filling down changes it to F2 and may produce incorrect results. If you write $F1, the column stays fixed but the row changes. If you write F$1, the row stays fixed but the column changes when you fill right.
Check the copied formula in the formula bar, not only the displayed result. Also confirm that the pinned cell contains a numeric value such as 0.08, not text such as 8 percent.
Exercise
Cell F1 contains a discount rate, and prices are in B2:B10. What formula should you enter in C2 and fill down so every price uses F1?
Show answer
Enter =B2*(1-$F$1). B2 changes by row, while $F$1 remains fixed.