Sub topic 4
Absolute references: locking a cell with $
This chapter assumes you can enter values and formulas in a Google Sheets cell, read addresses such as A1 and B2, and use basic arithmetic operators. It also assumes you know that a copied formula usually changes its references, which the previous chapter on relative references explained. Here you learn how to stop that change on purpose.
The problem: a reference that must not move
A relative reference such as E1 is stored as an offset from the cell that holds the formula. When you copy the formula, Sheets keeps the offset and recalculates the address. That is helpful for a price in column A, because each row should read its own price. It is harmful when every row should read the same cell, such as a single tax rate.
An absolute reference is a cell address that does not change when the formula is copied or filled. You make a reference absolute by putting a dollar sign $ before the column letter and before the row number.
| Written as | Type | Meaning when copied |
|---|---|---|
| `E1` | Relative | Column and row both shift |
| `$E$1` | Absolute | Column and row both stay fixed |
| `$E1` | Mixed | Column fixed, row shifts |
| `E$1` | Mixed | Row fixed, column shifts |
This chapter focuses on $E$1. The mixed forms get their own chapter.
What the dollar sign does
Read $E$1 as two separate locks. The first $ locks the column (E). The second $ locks the row (1). Sheets applies each lock independently, so a dollar sign guards only the part that comes right after it.
The dollar sign does not change the value of the cell or how the formula calculates in its original location. It only changes what happens when the formula is copied, filled, or moved by a paste operation that adjusts references.
Cell E1: 0.2 (tax rate)
Cell B2: =A2*$E$1
Cell B3 (after fill down): =A3*$E$1In B2, A2 is relative and $E$1 is absolute. After fill down, A2 becomes A3, because the formula moved one row. $E$1 stays $E$1, so every row multiplies its own price by the same rate.
Seeing the difference side by side
The most reliable way to understand the lock is to see the failure first. Suppose the rate sits in E1 and you write the formula without dollar signs.
Cell B2: =A2*E1
Cell B3 (after fill down): =A3*E2B2 works. B3 now points at E2, which is empty, so Sheets treats it as 0 and the result is 0. B4 points at E3, and so on. The first row looks correct, which is why this mistake is easy to miss.
Now compare the corrected version:
Cell B2: =A2*$E$1
Cell B3 (after fill down): =A3*$E$1Both rows read E1. Nothing else about the formula changed.
How Sheets decides: offsets and anchors
A working model helps you predict results without testing every time. Sheets treats each reference in a formula as one of two things.
- A relative reference is stored as a distance from the formula cell. Moving the formula down 3 rows moves the reference down 3 rows.
- An absolute reference is stored as a fixed address. Moving the formula changes nothing about it.
So when you copy B2 to D7, the formula has moved 2 columns right and 5 rows down. Every relative part shifts by that same amount. Every absolute part ignores it.
Cell B2: =A2*$E$1
Cell D7: =C7*$E$1Here A2 became C7 (two columns right, five rows down). $E$1 did not move. The pattern holds for any copy distance, including copies to other sheets in the same spreadsheet.
Copying methods and when the lock matters
The lock applies to all the common ways of copying a formula.
- Drag the fill handle, the small square at the bottom-right corner of the selected cell.
- Double-click the fill handle to autofill down as far as the adjacent column has data.
- Copy with Ctrl+C (Cmd+C on Mac) and paste with Ctrl+V into other cells.
- Select a range, then press Ctrl+D to fill down or Ctrl+R to fill right.
In every case, relative parts shift and absolute parts stay. Cutting and pasting (Ctrl+X, then Ctrl+V) is different. A cut moves the formula without adjusting its references, so the formula keeps pointing at the same cells it did before.
Locking a single input cell
The most common reason to use $E$1 is one input cell that many formulas depend on, such as a tax rate, an exchange rate, or a discount. You keep the number in one place and refer to it everywhere.
This design has a practical benefit. When the tax rate changes from 0.2 to 0.25, you edit E1 once. Every formula that uses $E$1 recalculates, with no need to rewrite any of them.
Place such input cells where they are easy to find and label them. A label in D1 such as "Tax rate" next to the value in E1 makes the sheet readable to others and to you later.
Editing a formula that already uses $
You can add the dollar signs in two ways. Typing them is always possible. Pressing F4 while the cursor is on or inside a reference cycles through the types, as the toggling chapter covers in detail. For now, one fact is enough: with the cursor on E1 in the formula bar, pressing F4 turns it into $E$1.
If you have already filled a column with the wrong formula, fix the first cell and fill again. Dragging the fill handle over cells that already hold formulas overwrites them with the corrected pattern.
Edge cases and gotchas
Inserting rows or columns. An absolute reference follows the cell it points to, not the literal address. If you insert a row above row 1, the rate moves to E2, and $E$1 in your formulas updates to $E$2. The lock prevents shifting during copying, not during structural edits.
Deleting the referenced cell. If you delete the row or column that holds E1, formulas that point to it return #REF!. Clear the cell's contents instead if you only want to change the value.
Sorting. Sorting a range that contains formulas can move rows. Relative references to other cells in the same row usually stay correct. Absolute references to a cell outside the sorted range stay correct too. A formula that refers to a cell inside the sorted range can break, so keep input cells outside the data you sort.
Cut and paste. As noted above, cutting does not adjust references. If you cut E1 and paste it elsewhere, formulas pointing to it follow the cell. If you cut a formula, its references stay as written.
Locking too much. Adding $ everywhere is a common habit and it causes its own errors. If a reference should change as you fill, an absolute lock freezes it, and every row returns the same result.
Cell B2: =$A$2*$E$1
Cell B3 (after fill down): =$A$2*$E$1Every row now multiplies the first price by the rate. Lock only what must stay fixed.
A quick checklist before you fill
Before filling a formula across many cells, ask these questions about each reference.
- Should this reference change from row to row? If yes, leave it relative.
- Should it always point at one specific cell? If yes, make it absolute.
- Does it need to stay fixed in only one direction? That is a mixed reference, covered next.
A fast check is to fill two rows, click the second, and read the formula. If the second row looks wrong, the fill will be wrong everywhere.
Summary
An absolute reference uses $ before the column letter and the row number, as in $E$1. It stays fixed when you copy, fill, or paste a formula, while relative references shift by the distance moved. Use it for any value that many formulas must share, and lock only the parts that need to stay put.
Exercise
Cell E1 holds a discount of 0.1. Column A (A2:A20) holds prices. In B2 you write =A2*(1-E1) and fill down to B20. B2 is correct, but B3 returns the full price from A3 with no discount. Why does this happen, and what formula should be in B2 so that the fill works?
Show answer
When filled down, E1 is relative, so B3 reads E2, which is empty and counts as 0. The result is A3(1-0), the full price. Write B2 as =A2(1-$E$1), then fill down. A2 still shifts row by row, and $E$1 stays fixed on the discount.
Exercise
B2 contains =A2*$E$1. You copy B2 and paste it into D7. What formula appears in D7?
Show answer
=C7*$E$1. The paste moves the formula 2 columns right and 5 rows down, so the relative A2 becomes C7. The absolute $E$1 does not change.
Exercise
You inserted a new row above row 1 of a sheet where the tax rate is in E1 and formulas use $E$1. What do the formulas refer to afterward, and why?
Show answer
They refer to $E$2. Inserting a row is a structural edit, and Sheets updates references so they keep pointing to the same cell, which has moved from E1 to E2. The $ lock only prevents changes caused by copying or filling.