Ravindra BagaleCourses & study guides Track your progress

Guides

$ Signs in Excel: Relative, Absolute and Mixed References (F4)

Zoya writes =B2*F1 to work out a rep's commission with the rate in F1. She copies it down and every other row shows 0. In row 3 the formula has become =B3*F2, and F2 is empty. Adding two dollar signs, =B2*$F$1, fixes all six rows.

A relative reference (B2) changes when you copy the formula. An absolute reference ($F$1) never changes. A mixed reference locks only the column ($A3) or only the row (B$2). Press F4 while the cursor is on a reference to cycle through the four types.

Download the practice file (absolute-relative-references.xlsx)

Excel file, 7 KB. It has the sample data used below. All numbers in this workbook are fictional teaching data, not real company figures.

Quick answer

  1. Type the formula with normal references, for example =B2*F1.
  2. Click inside F1 in the formula bar and press F4. It becomes $F$1.
  3. Press Enter and copy the formula down.
  4. Press F4 again to cycle: $F$1 → F$1 → $F1 → F1.
  5. For a grid, lock the column of the row labels and the row of the column labels: =$A3*B$2.
=B2*$F$1
=$A3*B$2

The four types

ReferenceWhen you copy downWhen you copy rightUse it for
B2row changescolumn changesValues on the same row
$F$1fixedfixedOne setting cell: a rate, a target
F$1fixedcolumn changesA header row
$A3row changesfixedA label column

Example 1: one commission rate

F1 holds the rate 5%. C2 holds =B2*$F$1 and is copied to C7.

RepSalesCommission (=B2*$F$1)
Amir₹1,82,000₹9,100
Zoya₹96,000₹4,800
Raja₹1,43,000₹7,150
Rani₹2,10,000₹10,500
Salman₹77,000₹3,850
Ravina₹1,58,000₹7,900

Change F1 to 6% and all six commissions change. The total in C8 is ₹43,300 at 5%.

Example 2: a price × quantity grid with one formula

Prices are down column A (A3:A6) and quantities across row 2 (B2:E2). In B3 type =$A3*B$2 and copy it to the whole grid B3:E6.

  • $A3: the column A is locked, so every cell reads a price from column A; the row changes as you go down.
  • B$2: row 2 is locked, so every cell reads a quantity from row 2; the column changes as you go right.
  • E6 becomes =$A6*E$2 = 35 × 25 = 875.

Shortcuts and traps

  • F4 works while editing a formula. On some laptops press Fn + F4.
  • Select a whole reference such as B2:B7 before F4 to lock both ends at once.
  • Inside an Excel Table you rarely need $: =[@Sales]*Rate with a named cell Rate stays correct.
  • Cutting and pasting (Ctrl + X) moves a formula without changing its references; copying (Ctrl + C) changes the relative parts.

Ravindra Bagale's Tip

Before you copy a formula, ask one question for each reference: "Should this move when I copy?" If the answer is no, press F4 right then. Fixing 500 copied formulas later is much slower.

Practice task

  1. Open the Commission sheet. Check C2 holds =B2*$F$1.
  2. Change F1 to 6% and see all commissions change.
  3. In D2 type =B2*F1 without $ and copy it down. Look at the zeros and the formula in D3.
  4. Open the Grid sheet. Check B3 holds =$A3*B$2 and that E6 shows 875.
  5. Delete the grid formulas, type the formula once in B3 and copy it to B3:E6 yourself.

Frequently asked questions

What does $ mean in an Excel formula?

It locks the column letter or row number after it, so it does not change when the formula is copied.

What is the shortcut for absolute reference?

F4 while the cursor is on the reference (Fn + F4 on many laptops). On a Mac, use Cmd + T.

Why does VLOOKUP give #N/A after copying down?

The table range moved with the formula. Lock it: $E$2:$F$20.

Is a named range absolute?

Yes. A name like Rate always points to the same cell, so it behaves like $F$1.