Sub topic 2
Mixed References in Excel
Prerequisites: you should know how to enter formulas, select ranges, and copy formulas with the fill handle.
Locking only the row or column
A mixed reference locks one part of a cell address and lets the other part move.
A1is relative. Both the column and row can change.$A$1is absolute. Neither part can change.$A1locks column A, but the row can change.A$1locks row 1, but the column can change.
Mixed references are useful when one formula must work across both rows and columns. For example, suppose row headings are in A2:A10 and column headings are in B1:J1. Enter this formula in B2:
=$A2*B$1When you fill it across and down:
$A2always uses column A, while its row changes.B$1always uses row 1, while its column changes.
The formula in C3 becomes =$A3*C$1.
Switching reference types quickly with F4
While editing a reference, place the cursor inside or next to the reference and press F4. Excel cycles through these forms:
A1$A$1A$1$A1
On some laptops, you may need to press Fn+F4. Check the formula bar after each press. This avoids manually adding a dollar sign in the wrong position.
Expanding ranges and running totals
An expanding range anchors only its first cell. In C2, enter:
=SUM($B$2:B2)When filled down, the formulas become:
C2: =SUM($B$2:B2)
C3: =SUM($B$2:B3)The starting cell stays fixed, while the ending cell moves. Each row therefore includes all values from B2 through the current row.
Exercise
What formula should you place in B2 of a multiplication table if row labels are in A2:A10 and column labels are in B1:J1?
Show answer
=$A2*B$1. The column in $A2 is locked, and the row in B$1 is locked.