Relative vs absolute references
Lesson 1 of 75 in Excel Interview Mastery. Free to read, no account needed.
Relative and absolute references
A cell reference is the address a formula uses to point at a cell, such as E2. Every reference in a formula is either relative or absolute. A relative reference is the default: it moves along with the formula when the formula is placed in another row or column. An absolute reference stays pinned to one cell. This matters in a sales ledger, where each row needs its own Qty times Rate, but some values must be shared by every row.
=E2*F2 (Amount for row 2: Qty times Rate)Relative references shift
A relative reference shifts by the same number of rows and columns as the formula's new position. The Amount formula in G2 is =E2*F2, which multiplies row 2's Qty by row 2's Rate. Placed one row lower, in G3, the same formula reads =E3*F3, because it moved down one row, so every reference moved down one row. Each row therefore multiplies its own figures.
| Cell | Formula text | Result |
|---|---|---|
| G2 | =E2*F2 | 5400.00 (12 times 450.00) |
| G3 | =E3*F3 | 5000.00 (4 times 1250.00) |
In row 4 the same pattern gives =E4*F4, using row 4's Qty and Rate.
Dollar signs lock references
A dollar sign before the column letter and before the row number makes a reference absolute. $K$2 always means column K, row 2, wherever the formula sits. You type the dollar signs directly into the formula text. Suppose cell K2 holds the rate 0.05, which every row must use. In L2, the formula =G2*$K$2 gives 5400.00 times 0.05, which is 270.00. In row 3, the same formula keeps $K$2 and gives 5000.00 times 0.05, which is 250.00.
| Cell | Formula text | Result |
|---|---|---|
| L2 | =G2*$K$2 | 270.00 |
| L3 | =G3*$K$2 | 250.00 |
Choosing which cells to lock
Before you write a formula, ask whether a cell belongs to every row or only to its own row. Values that belong to one row, such as that row's Qty and Rate, stay relative so they follow the row. A single shared value, such as the rate in K2, should be absolute so that every row points at the same cell. Locking the wrong cells is a common reason a formula gives wrong answers.
| Reference in the formula | What it holds | Type |
|---|---|---|
| E2 | This row's Qty | Relative |
| F2 | This row's Rate | Relative |
| $K$2 | The one shared rate | Absolute |
Predicting a missing dollar sign
Suppose you want each row's amount multiplied by the shared rate in K2, but you type the formula without dollar signs: =G2*K2 in L2. That reference is relative, so when the formula is placed in row 3, it moves down one row and reads =G3*K3. Cell K3 is empty, so the multiplication gives 0. Excel shows a number with no error, so the mistake is easy to miss.
| Formula typed in L2 | Formula in row 3 | Row 3 result |
|---|---|---|
| =G2*$K$2 | =G3*$K$2 | 250.00 |
| =G2*K2 | =G3*K3 | 0 |
Practice questions
- 1.
In a sales ledger, the formula =E4*$K$1 is typed in G4 and then placed in G5. E5 holds 6 and K1 holds 300.00, a shared charge per unit. What value does G5 show?
- A.
0.00
- B.
2700.00
- C.
1800.00
- D.
300.00
Show answer
Answer: C.1800.00
The formula in G5 reads =E5*$K$1. E shifts down one row to E5, which holds 6, and $K$1 stays fixed at 300.00, so the result is 6 x 300.00 = 1800.00. If K1 were not locked, it would shift to K5, which is empty, and the result would be 0.00. The 2700.00 option multiplies 9 by 300.00, and 9 is not in the sheet. The 300.00 option ignores the Qty.
- A.
- 2.
In a sales ledger, the formula
=G2*$K$2sits in L2. If the same formula is placed two columns to the right, in N2, what does it read?- A.
=I2*$K$2 - B.
=I2*K2 - C.
=G2*$K$2 - D.
=I2*$M$2
Show answer
Answer: A.=I2*$K$2The relative reference G2 moves two columns right to I2, while the absolute reference $K$2 keeps its original address. The option showing G2 unchanged ignores the shift entirely. The option shifting $K$2 to $M$2 wrongly moves the absolute reference. The option with I2 and K2 drops the dollar signs, which removes the lock, so the shared rate cell would no longer stay fixed.
- A.
- 3.
A formula in G2 reads =E2*F2. Written in G3 instead, what does it read?
- A.
=E2*F2
- B.
=E3*F3
- C.
=E3*F2
- D.
=F3*G3
Show answer
Answer: B.=E3*F3
Moving the formula down one row shifts every relative reference down one row, giving =E3*F3. The option =F3*G3 wrongly shifts the columns as well. The option =E2*F2 wrongly leaves the references unchanged. The option =E3*F2 shifts only the Qty reference and leaves the Rate reference behind.
- A.
- 4.
Each row's Qty in column E must multiply the one shared rate in K2. A learner types =$E$3*K2 in row 3. What is wrong with this formula?
- A.
Dollar signs must be placed before the equals sign in the formula.
- B.
Both references are relative, so nothing in the formula is locked.
- C.
The rate in K2 is locked, while Qty in E3 can shift.
- D.
Qty in E3 is locked, while the rate in K2 can shift.
Show answer
Answer: D.Qty in E3 is locked, while the rate in K2 can shift.
The dollar signs sit on E3, the per-row Qty, so that reference stays fixed to row 3 in every row. K2 has no dollar signs, so when the formula is copied down it shifts to K3, K4 and so on. Option 3 reverses which reference is locked. Option 2 is false because $E$3 is absolute. Option 1 is false because dollar signs go inside each reference, not before the equals sign.
- A.
- 5.
In Excel, how do you make the reference C1 absolute in a formula?
- A.
Type the cell address in capital letters only, such as C1 in capitals
- B.
Type a dollar sign before the column letter and before the row number
- C.
Type a dollar sign in front of the whole formula, before the equals sign
- D.
Enter the formula into a cell in row 1, so that the reference stays fixed
Show answer
Answer: B.Type a dollar sign before the column letter and before the row number
Typing a dollar sign before the column letter and before the row number, giving $C$1, makes the reference absolute. A dollar sign in front of the whole formula does nothing to the reference. Capital letters do not change how a reference behaves, and the row a formula is placed in does not make a reference absolute.
- A.
- 6.
In a sales ledger, cell L2 holds
=G2*$K$2. The formula is placed in row 4. What does it read?- A.
=G2*$K$2 - B.
=G4*$K$4 - C.
=G4*$K$2 - D.
=G4*K4
Show answer
Answer: C.=G4*$K$2The relative part G2 shifts two rows to G4, while the absolute $K$2 stays pinned to K2. The option keeping G2 wrongly assumes the whole formula stays on the original row. The option moving $K$4 wrongly assumes the dollar-locked reference also shifts. The option dropping the dollar signs to K4 wrongly assumes a locked reference becomes relative once placed elsewhere.
- A.
- 7.
In a sales ledger, each row has its own Qty in column E and its own Rate in column F. Which formula in G2 gives each row its own Amount when copied down the column?
- A.
=E3*F3
- B.
=E2*F2
- C.
=E2*$F$2
- D.
=$E$2*$F$2
Show answer
Answer: B.=E2*F2
=E2*F2 is correct because both Qty and Rate differ per row, so both must be relative and shift to each row's own cells. =$E$2*$F$2 locks both inputs to row 2, so every row would reuse row 2's Qty and Rate. =E2*$F$2 locks the Rate, so every row would multiply by row 2's Rate instead of its own. =E3*F3 points at row 3 from row 2, so the formula would read the wrong row's values.
- A.
- 8.
In a sales ledger, I2 holds =$K$1*E2*F2, where K1 holds 0.05, E2 holds 12 and F2 holds 450.00. The same formula is placed in I3, where E3 holds 4 and F3 holds 1250.00. What does I3 show?
- A.
250.00
- B.
750.00
- C.
90.00
- D.
270.00
Show answer
Answer: A.250.00
The formula in I3 reads =$K$1*E3*F3, because E and F are relative and shift down one row while $K$1 stays fixed. That gives 0.05 x 4 x 1250.00 = 250.00. The 270.00 option assumes the whole formula stays unchanged, which ignores that E and F shift. The 90.00 option multiplies row 3's Qty by row 2's Rate, so it wrongly keeps F2 fixed. The 750.00 option multiplies row 2's Qty by row 3's Rate, so it wrongly keeps E2 fixed.
- A.
- 9.
In a sales ledger, Qty is in column E and Rate is in column F, with each row's own values. One tax rate in cell K1 applies to every row. Which formula in row 2 gives the correct Amount in every row when placed further down?
- A.
=$E$2*$F$2*$K$1
- B.
=E2*$F$2*$K$1
- C.
=E2*F2*K1
- D.
=E2*F2*$K$1
Show answer
Answer: D.=E2*F2*$K$1
The formula =E2*F2*$K$1 keeps E2 and F2 relative so each row uses its own Qty and Rate, and locks K1 so every row uses the one shared tax rate. The option with K1 unlocked shifts to K2, K3 and so on, which are empty, so later rows show 0. The option locking E2 and F2 makes every row reuse row 2's Qty and Rate. The option locking only F2 makes every row reuse row 2's Rate, so the Amounts are wrong.
- A.
- 10.
In a sales ledger, L2 holds
=G2*$K$2with G2 at 5400.00. K2 is changed from 0.05 to 0.10. What does L2 show?- A.
540.00
- B.
5400.00
- C.
270.00
- D.
0.00
Show answer
Answer: A.540.00
G2 holds 5400.00 and $K$2 now holds 0.10, so the formula gives 5400.00 x 0.10 = 540.00. The 270.00 option uses the old 0.05 rate, and 5400.00 ignores the rate altogether. The 0.00 option has no basis in the formula, because K2 holds a value.
- A.
Lessons in Excel Foundations
- Relative vs absolute references
- Mixed references with a dollar sign
- Referencing another sheet
- Copying a formula down a column
- Dates as serial numbers
- Numbers stored as text
- Blank vs zero in aggregates
- Error values and their causes
- Countif vs countifs
- Sumif criteria syntax
- Averageifs with two criteria
75 lessons across 9 topics. See the full course