Sub topic 2
Absolute references with $ to pin a cell
This chapter assumes you can enter a formula, read A1 notation (B2 means column B, row 2), and fill a formula down a column.
Pinning a cell with $
A relative reference shifts when you copy or fill a formula. An absolute reference does not. Put a dollar sign before the column letter, the row number, or both. The reference $F$1 always points to cell F1.
Suppose column B holds prices and F1 holds a tax rate. Enter this in D2:
=B2*$F$1Fill it down to D3, and the formula becomes =B3*$F$1. The price reference moves, and the tax rate stays fixed.
Working with ranges such as B2:B10
A range names a block of cells by its first and last cell, separated by a colon. B2:B10 covers rows 2 through 10 in column B. Functions read ranges as input:
=SUM(B2:B10)Pair ranges with absolute references when a total must keep pointing at the same block after you copy it. =SUM($B$2:$B$10) returns the same total wherever you place it.
Mixed references: locking only the row or the column
A mixed reference fixes one part and lets the other change. $A2 locks the column and lets the row change. B$1 locks the row and lets the column change.
A multiplication table shows both at once. Enter this in B2:
=$A2*B$1Fill it right and down. Filling right changes B to C, but column A stays put. Filling down changes 2 to 3, but row 1 stays put. One formula fills the entire grid.
Exercise
You enter =B2*$F$1 in D2 and fill it down to D4. What does D4 contain?
Show answer
=B4*$F$1. The B reference moves down two rows, and $F$1 stays fixed.