Sub topic 7
Mixed References: Locking Only the Row or the Column
Assume you can enter basic formulas, use A1 notation, and copy formulas between cells. A mixed reference locks either the column or the row while allowing the other part to change. This is useful when one formula must be filled both across columns and down rows.
The working model
A cell reference has two parts:
- The column letter, such as A or B.
- The row number, such as 1 or 2.
A dollar sign locks the part immediately after it.
| Reference | Locked part | What changes when copied |
|---|---|---|
| A2 | Nothing | The column and row |
| $A$2 | Column and row | Nothing |
| $A2 | Column A | The row |
| A$2 | Row 2 | The column |
A mixed reference is different from both a relative reference and an absolute reference. A relative reference follows the formula's new position. An absolute reference stays fixed. A mixed reference follows the new position in only one direction.
Locking the column
Use a reference such as $A2 when every formula should use column A, but each row should use its own value.
For example, suppose column A contains quantities and column B contains prices. In C2, enter:
=$A2*B2The $ before A keeps the formula connected to column A. If you fill the formula down to C3, it becomes:
=$A3*B3The row changes from 2 to 3, but the reference remains in column A. If you copy the formula right to D2, it becomes:
=$A2*C2The column A reference stays locked, while B2 changes to C2.
Locking the row
Use a reference such as B$1 when every formula should use row 1, but each column should use its own value.
Suppose row 1 contains monthly prices and column A contains quantities. In B2, enter:
=$A2*B$1When you fill this formula across to C2, it becomes:
=$A2*C$1The quantity still comes from column A. The price moves from B1 to C1. When you fill the formula down to B3, it becomes:
=$A3*B$1The quantity changes to row 3, but the price remains in row 1.
Building a multiplication table
This formula creates a table from row labels in A2:A10 and column labels in B1:J1:
=$A2*B$1Enter it in B2, then fill it right and down. The two mixed references work together:
- $A2 always reads the current row's label from column A.
- B$1 always reads the current column's label from row 1.
Common mistakes
If the formula changes the wrong part, check the dollar sign:
- Use $A2 when the column must stay fixed.
- Use A$2 when the row must stay fixed.
- Use $A$2 when neither part should change.
- Do not add a dollar sign to both parts unless the reference truly must never move.
A frequent error is locking the row when you meant to lock the column. Test a formula by copying it one cell right and one cell down. Inspect both results before filling a large table.
Exercise
In B2, write a formula that multiplies the value in column A from the same row by the heading in row 1 from the same column. The formula must work when filled right and down.
Show answer
=$A2*B$1