Sub topic 7
Toggling Reference Types Quickly
Assume you can enter formulas, read A1 cell addresses such as A1, and use arithmetic operators. This chapter focuses on changing references while you edit a formula, so you can copy formulas without manually retyping every dollar sign.
Why reference types matter
A cell reference tells Google Sheets which cell to use. When you copy a formula, Sheets normally adjusts the reference based on how far the formula moved.
For example, if B2 contains =A2*0.2 and you fill it down one row, Sheets changes the formula to =A3*0.2. This is a relative reference. It moves with the formula.
Sometimes a reference must stay fixed. If the tax rate is in E1, the formula should use E1 for every product:
B2: =A2*$E$1
B3 after filling down: =A3*$E$1The dollar signs lock both the column and the row. You can add them by typing, or you can toggle reference types with a keyboard shortcut.
The four reference forms
A reference has a column part and a row part. Each part can move or stay fixed.
| Reference | Column | Row | Behavior when copied |
|---|---|---|---|
| `A1` | Relative | Relative | Column and row can change |
| `$A$1` | Absolute | Absolute | Neither part changes |
| `A$1` | Relative | Absolute | Column changes; row stays fixed |
| `$A1` | Absolute | Relative | Column stays fixed; row changes |
An absolute reference is sometimes called a locked reference. A mixed reference locks only one part.
Use F4 while editing
To toggle a reference:
- Double-click the cell containing the formula, or select the formula bar.
- Place the cursor inside the reference you want to change.
- Press F4.
- Press F4 again to cycle through the available forms.
- Press Enter to save the formula.
For a reference that starts as A1, repeated F4 presses generally cycle through these forms:
A1
$A$1
A$1
$A1
A1The exact shortcut behavior can depend on your keyboard and operating system. On some laptops, you may need to press Fn+F4. If F4 changes the computer's brightness or another system setting, type the dollar signs directly.
The shortcut changes the reference where the cursor is located. If a formula contains several references, select or place the cursor in the specific reference first.
Example: lock a tax rate
Suppose column A contains prices and E1 contains the tax rate 0.2. In B2, enter:
=A2*E1If you fill this formula down, B3 becomes:
=A3*E2That is wrong because the tax rate reference moved from E1 to E2. To fix it, edit B2 and place the cursor in E1. Press F4 until the reference becomes $E$1.
The corrected formula is:
=A2*$E$1When copied down, it becomes:
=A3*$E$1The product reference changes by row, while the tax rate remains in E1.
Choosing the right toggle
Use the reference form that matches the direction of copying:
- Use
A1when both the row and column should move. - Use
$A$1when the same cell must be used everywhere. - Use
A$1when formulas move across columns but always use row 1. - Use
$A1when formulas move down rows but always use column A.
This decision is easier if you ask two questions: Should the column move? Should the row move? If the answer is no, add $ before that part.
Check references after toggling
After changing a reference, inspect the formula before copying it. Then test the formula in one additional row or column. If the copied formula points to an empty cell, an unexpected header, or a different input, return to the original formula and check each reference.
A quick diagnostic table can help:
| Symptom | Likely cause | Correction |
|---|---|---|
| The input changes down the list | Missing row lock | Add `$` before the row |
| The input changes across columns | Missing column lock | Add `$` before the column |
| Every result uses the same row and column | Reference is fully absolute | Remove one or both `$` signs |
Exercise
Cell B2 contains =A2*E1. You will fill it down, and E1 contains a fixed tax rate. What should the formula become, and which reference type should you use for E1?
Show answer
Use =A2*$E$1. E1 should be an absolute reference so both its column and row stay fixed.