Learning Objectives

By the end of this lesson, you will be able to:

  • Distinguish relative, absolute, and mixed references and state when each fits
  • Use F4 to cycle reference locks while editing a formula
  • Choose the correct lock for VAT, commission, and two way tables
  • Audit locks with Show Formulas and spot check copied results

Sample file: sales_data_large.csv


Why References Matter

A formula copies well only when the address copies well. Excel shifts addresses by default. That shift is helpful for a row total and harmful for a tax rate. The $ sign controls the shift. Place it on the column, the row, or both, and the copy behaves differently.

Type Notation Column Row Copy Down Copy Across
Relative A1 moves moves shifts to next row shifts to next column
Absolute $A$1 locked locked stays on A1 stays on A1
Mixed column locked $A1 locked moves row moves, column stays column stays
Mixed row locked A$1 moves locked row stays, column moves column moves, row stays

F4 cycles the lock while the reference is selected in the formula bar: A1 to $A$1 to A$1 to $A1 to A1.


1) Relative References - A1

Relative means relative to the position of the formula. Copy down and the row number rises. Copy across and the column letter advances.

A Units B Price Rs. C Revenue Formula Result
10 250 =A2*B2 2,500
8 180 copy down becomes =A3*B3 1,440

Use relative for line by line work: revenue per row, total per row, discount per row. Every row follows the same local pattern.

2) Absolute References - $A$1

Absolute locks both axes. The address never moves.

Place VAT Rate 0.13 in H1. Label G1 as VAT Rate. In E2 write:

=D2*$H$1

Copy down. Every row reads E3 as =D3$H$1 and E4 as =D4$H$1. The D shifts because it is relative, the H1 stays because it is absolute. Change H1 to 0.15 and every VAT cell updates at once, which proves the lock is correct.

Use absolute for a single constant reused in many rows: VAT, service charge, exchange rate, bonus rate, or a threshold in H2 that several IF formulas check.

3) Mixed References - $A1 or A$1

Mixed locks one axis and leaves the other free. This fits two way tables where one direction must hold while the other moves.

Commission matrix:

  • Product bases in A5 to A8, such as 10,000 and 20,000
  • Rates in B4 to E4, such as 5%, 8%, 10%, 12%
  • In B5 write:
=$A5*B$4
  • $A5 keeps the product base when you copy across, because column A is locked
  • B$4 keeps the rate row when you copy down, because row 4 is locked
  • Fill B5 to E8 and the full matrix calculates without editing any formula after the first

Use mixed whenever a row item meets a column rate. Commission, price by size and colour, or marks by subject weight all follow this shape.

4) Choosing the Right Lock

Goal Pattern Correct Lock Why
Same calculation each row A2*B2 copied down Relative Each row needs its own inputs
One rate for all rows D2*$H$1 copied down Absolute $H$1 Rate must not drift
Two way grid product times rate $A5*B$4 filled both ways Mixed Column holds product, row holds rate
Entire column when rows are inserted Table column reference Structured reference via Ctrl+T Range expands without editing

If the list will grow, convert the range to an Excel Table with Ctrl+T. Structured references such as =[@Units]*[@Price] survive insertions better than plain A2 ranges.

5) Build and Audit Workflow

  1. Type the formula for the first row only and verify the arithmetic by hand.
  2. Click each reference in the formula bar and press F4 until the $ signs match the table above.
  3. Drag the fill handle down or across. Spot check two more rows with a calculator.
  4. Toggle Formulas then Show Formulas which is Ctrl+backtick. This reveals every lock at once for a fast audit. Toggle back to normal view after.
  5. Watch for #REF! after deleting cells that formulas still point to. Undo and insert a blank row instead, or update the reference.

Errors and Fixes

Problem Cause Fix
VAT shows different values after copy Tax rate left as relative D2*H1 Use $H$1 and refill
Every row shows revenue of row 2 Revenue locked as $D$2 Keep D2 relative, lock only H1
Matrix copies fail across columns $A$5 used instead of $A5 Lock column only for the base
#REF! after row deletion Deleted a cell that formulas pointed to Undo, or reselect the range
New rows ignored by SUM Range D2:D5 does not expand Use an Excel Table or extend the range to D2:D100

Nepal Worked Example: Invoice With VAT and Commission - BS 2081-09-18

A student prepares an invoice on 2081-09-18 BS for four products. VAT rate is 13% in H1. Commission for a sales summary uses a two way grid.

Invoice block in A1 to F6:

Product Units Price Rs. Revenue VAT 13% Total
Notebook 10 250 2,500 325 2,825
Pen 50 20 1,000 130 1,130
Calculator 4 1,200 4,800 624 5,424
Stapler 6 350 2,100 273 2,373

Formulas used: D2 is =B2C2 relative, E2 is =D2$H$1 absolute, F2 is =D2+E2. Fill down to row 5. Row 6 sums each column: =SUM(D2:D5) gives 10,400, =SUM(E2:E5) gives 1,352, =SUM(F2:F5) gives 11,752. Verification by hand: 2,500 plus 1,000 plus 4,800 plus 2,100 equals 10,400, and 13% of 10,400 equals 1,352, so total 11,752 is correct. Changing H1 to 0.15 raises total VAT to 1,560, which proves the absolute lock.

Commission matrix block:

Bases 10,000 and 20,000 in A10 to A11, rates 5% and 8% in B9 to C9. Formula in B10 is =$A10*B$9. Fill to C11. Results: 500, 800 on the first row, 1,000, 1,600 on the second. Hand check: 10,000 times 5% equals 500, 20,000 times 8% equals 1,600. Show Formulas confirms $A and $9 locks.

Self-check

You copy =D2*H1 down four rows. Only the first VAT is correct. The other three are wrong or zero. Show Formulas shows H1 shifting to H2, H3, H4. What single edit fixes all rows?

Summary

Relative A1 moves with the copy and suits row by row work. Absolute $A$1 stays fixed and suits a single constant such as VAT. Mixed $A1 or A$1 locks one axis for two way tables. F4 applies the lock without typing $. Show Formulas makes every lock visible.

Key Takeaways

  • Use relative for revenue and totals that repeat per row.
  • Use absolute $H$1 for a rate or constant that all rows share. Test by changing the rate.
  • Use mixed $A5 times B$4 for matrices. Fill both directions from one formula.
  • Press F4 to cycle locks. Check two copied rows by hand.
  • Prefer Excel Tables with Ctrl+T when the list will grow.

Discussion

Why does an invoice break when the VAT cell is left as H1? What does the commission matrix teach about choosing which axis to lock? How does Show Formulas help you audit before submission?

Exercises

  1. Relative only (calculable): Build six products with Units and Price. In Revenue write =B2*C2 and fill down. Sum Revenue and report the total.
  2. Absolute VAT: Put VAT 13% in H1. Calculate VAT as =D2*$H$1 for six rows, sum the VAT column, and state both the row one VAT and the column total.
  3. Mixed matrix: Build a 4 by 4 commission grid with bases in A5 to A8 and rates in B4 to E4. Use one formula =$A5*B$4 filled to E8 and report the corner values.
  4. Audit: Turn on Show Formulas, capture the screen, and label one relative, one absolute, and one mixed reference in the capture.

📚 Continue to: Essential Functions