Sub topic 2
Absolute References and Copying Formulas in Google Sheets
Worked example: one tax rate cell for a whole price list
Suppose prices sit in A2:A6 and the tax rate of 0.2 (20%) sits in cell E1. To find the tax on each price, enter this formula in B2:
=A2*$E$1The dollar signs lock E1. When you fill B2 down to B6, the price reference moves to A3, A4, and so on, but $E$1 stays fixed. Without the dollar signs, the rate reference would shift to E2, E3, and so on. Those cells are empty or hold other data, so the results would be wrong.
Mixed references: locking only the row or the column
A mixed reference locks one part of an address and leaves the other part free to move. The dollar sign goes in front of the part you want fixed.
| Reference | Column fixed | Row fixed | Effect when copied |
|---|---|---|---|
| $A2 | Yes | No | Always reads column A, row changes |
| B$1 | No | Yes | Column changes, always reads row 1 |
| $E$1 | Yes | Yes | Never changes |
Mixed references build a table from one formula. Suppose row 1 holds multipliers in B1:E1 and column A holds multipliers in A2:A5. Enter this in B2:
=$A2*B$1Copy B2 across to E2, then copy B2:E2 down to B5:E5. Each cell multiplies its row header by its column header.
Exercise
Exercise
In a two-way table with row headers in column A and column headers in row 1, which formula in B2 fills correctly across and down: =A2B1 or =$A2B$1?
Show answer
=$A2*B$1. The $A2 keeps column A fixed for the row header, and B$1 keeps row 1 fixed for the column header.