Skip to content

Lesson 14 of 92 · Free Excel Course

Excel

Excel Absolute Reference: When to Use $A$1 (and How F4 Adds It)

Why a copied Excel formula gives 0 or the wrong answer, and how absolute ($A$1), relative (A1) and mixed (A$1, $A1) references and the F4 key fix it.

You write a formula, it works, you drag it down the column, and suddenly the rows below show $0.00 or a number that makes no sense. This is the single most common surprise in Excel, and it has nothing to do with your maths. It's about how Excel copies cell references. By default, references move when you copy a formula. Most of the time that's exactly what you want. When it isn't, you add dollar signs to lock the reference in place: an absolute reference. This lesson walks through a tax-rate example where copying goes wrong, then shows the fix, the F4 shortcut, mixed references and references to other sheets.

Relative references: why copying usually just works

Every reference you've written so far, like B2 or D5, is a relative reference. Excel doesn't really remember "B2". It remembers a direction: "the cell one column to my left", for example. When you copy the formula somewhere else, that direction stays the same, so the address changes.

You saw this in Subtract, multiply, divide. Put =B2*C2 in D2, fill it down, and D3 gets =B3*C3, D4 gets =B4*C4, and so on. Each row multiplies its own price by its own quantity. Nobody had to type a new formula for each row. That's the whole point of relative references, and it's why Excel uses them by default.

The trouble starts when one cell in the formula should not move.

The tax-rate problem: when copying breaks a formula

Here's a shopping list with prices in column B. The sales tax rate, 8%, sits on its own in E1, with a $15 delivery charge below it in E2. Column C should show the tax on each item.

  1. Click C2 and type =B2*E1. Press Enter. You get $3.20, which is right: $40 × 8%.
  2. Click C2 again and drag the fill handle (the small square at its bottom-right corner) down to C5.

Here's what you get:

C3=B3*E2
ABCDE
1ItemPriceTaxTax rate8%
2Lamp$40.00$3.20Delivery$15.00
3Chair$85.00$1,275.00
4Desk$210.00$0.00
5Rug$125.00$0.00
The broken copy. C3 multiplied the chair by the $15 delivery charge, and C4 and C5 multiplied by empty cells.

Click C3 and read the formula bar: =B3*E2. Excel moved both references down one row. B2 becoming B3 is correct, since the chair's price is in B3. But E1 becoming E2 is wrong. E2 is the delivery charge, so the chair's "tax" is 85 × 15 = $1,275.00. In C4, the formula is =B4*E3. E3 is empty, and Excel treats an empty cell as 0 in a calculation, so the tax is $0.00. The same happens in C5 with E4.

This is the classic pattern. A copied formula that shows 0 usually points at empty cells, and one that shows a wildly wrong number usually points at some other value that happened to be there. Excel doesn't show an error in either case, which is what makes it dangerous.

The fix: an absolute reference with $E$1

You want B2 to keep moving (each row has its own price) but E1 to stay put (every row uses the same rate). Put a dollar sign in front of both the column letter and the row number: $E$1.

  1. Click C2.
  2. Change the formula to =B2*$E$1. You can type the dollar signs, or click E1 in the formula bar and press F4 (more on that below).
  3. Press Enter. C2 still shows $3.20.
  4. Drag the fill handle from C2 down to C5 again. Excel replaces the broken formulas.
C5=B5*$E$1
ABCDE
1ItemPriceTaxTax rate8%
2Lamp$40.00$3.20Delivery$15.00
3Chair$85.00$6.80
4Desk$210.00$16.80
5Rug$125.00$10.00
Fixed. Every row now reads the rate from E1: 85 × 8% = 6.80, 210 × 8% = 16.80, 125 × 8% = 10.00.

Click C5 and the formula bar shows =B5*$E$1. The B part moved; the $E$1 part didn't. A nice bonus of keeping the rate in its own cell: change E1 to 10% and every tax figure updates at once. That's much safer than typing =B2*0.08 in every row, where a rate change means editing every formula. (For checking real sales tax figures, the tax calculator is handy.)

A good rule: any single cell that a whole column of formulas depends on, such as a rate, a price, a target or an exchange rate, should be an absolute reference.

The four types of reference

The dollar sign locks whatever comes right after it. $E locks the column and $1 locks the row. That gives four combinations. Here's what each one becomes if you copy a formula from one cell to the cell two rows down and two columns to the right, as in Microsoft's own example:

ReferenceWhat's lockedCopied 2 down and 2 right, it becomes
A1Nothing (relative)C3
$A$1Column and row (absolute)$A$1
A$1Only the row (mixed)C$1
$A1Only the column (mixed)$A3

You only need the mixed ones when a formula gets copied in two directions, across and down. If you only ever fill down a column, $E$1 is all you need.

The F4 shortcut

Typing dollar signs is fiddly. Excel will add them for you.

Windows:

  1. Click the cell with the formula, or double-click it to edit in the cell.
  2. In the formula bar, click inside the reference you want to change (for example, anywhere in E1), or select it.
  3. Press F4. E1 becomes $E$1.
  4. Press F4 again for E$1, again for $E1, and once more to go back to plain E1.
  5. Press Enter when it shows the type you want.

Mac: Microsoft's Mac steps use Cmd+T to move through the same four types, and its shortcut list gives F4 as well. On many Mac keyboards the top-row keys control brightness or volume, so if F4 doesn't work, hold Fn and press F4, or just use Cmd+T.

Excel for the web: Microsoft lists F4 for this in Excel for the web too. If your browser or laptop grabs the key for something else, type the dollar signs by hand; they work exactly the same.

Two tips. If you select a whole range in the formula bar, like B2:B5, one press of F4 turns it into $B$2:$B$5. And F4 only does this while you're editing a formula; pressed at other times it does something else, so make sure your cursor is in the formula first.

Mixed references: a multiplication table

Here's where A$1 and $A1 earn their keep. Say you want a 5 × 5 multiplication table, with the numbers 1 to 5 across row 13 and down column A, and one formula that fills the whole grid.

In B14, type =$A14*B$13 and press Enter. Then fill it right to F14, and fill that row down to row 18.

  • $A14 locks the column. Copied across, it still reads column A (the row numbers); copied down, it moves to A15, A16 and so on.
  • B$13 locks the row. Copied down, it still reads row 13 (the column numbers); copied across, it moves to C13, D13 and so on.
E17=$A17*E$13
ABCDEF
13×12345
14112345
152246810
1633691215
17448121620
185510152025
E17 reads its row number from column A (4) and its column number from row 13 (4): 4 × 4 = 16.

Try it without the dollar signs, as =A14*B13, and the copies drift off: C15 would multiply B15 by C14, two cells inside the table, and the numbers grow out of control. With $A$14*$B$13, every cell would show 1. Only the mixed version works in both directions.

References to other sheets

Rates and settings often live on their own sheet. To use one in a formula, put the sheet name, then an exclamation mark, then the cell: =B21*Rates!$B$1. If the sheet name has spaces or other non-letter characters, wrap it in single quotes: ='Tax Rates'!$B$1. Quotes around a simple name, as in ='Rates'!$B$1, are fine too.

The easy way to build it:

  1. Click the cell for the answer and type =B21*.
  2. Click the Rates sheet tab, then click B1.
  3. Press F4 (Cmd+T on a Mac) so it reads Rates!$B$1.
  4. Press Enter. Excel takes you back to the first sheet.

Clicking a cell on another sheet gives a normal relative reference, so step 3 is the one people forget. Skip it and you're back to the tax-rate problem, just on another sheet. For more on moving between sheets, see Workbooks and sheets.

A brief aside: you can also give a cell a name, like TaxRate, and write =B2*TaxRate. Microsoft notes that names use absolute references by default, so a named cell never drifts when you copy. Named ranges get their own lesson later.

Try it yourself

Download the practice workbook and open the Practice sheet. Yellow cells are where you type.

  1. In C2, type =B2*E1 and fill down to C5. See the $1,275.00 and $0.00 results, and read C3's formula.
  2. Fix C2 to =B2*$E$1 with F4 (Cmd+T on a Mac) and fill down. You should get $3.20, $6.80, $16.80 and $10.00.
  3. Change E1 to 10% and watch column C update. Change it back.
  4. In B14, type =$A14*B$13, fill right to F14, then down to row 18. F18 should be 25.
  5. In C21, build =B21*Rates!$B$1 by clicking the Rates tab, and fill down to C24. You should get $2.40, $5.10, $12.60 and $7.50.

Compare with the Answers sheet, which keeps a broken copy in rows 8 to 11 so you can see the difference.

Common mistakes

  • Forgetting the $ on a fixed cell. The first row looks right, so you don't notice until the rows below show 0 or nonsense. Always check a row or two below the first after filling.
  • Locking everything. =$B$2*$E$1 filled down gives the lamp's tax in every row. Lock only the part that should stay put.
  • Half-locking by accident. =B2*E$1 works when you fill down but breaks if you ever fill across. If in doubt for a single fixed cell, use $E$1.
  • Pressing F4 outside the formula. Click inside the reference in the formula bar first.
  • Forgetting F4 after clicking another sheet. Rates!B1 is relative and will drift.
  • Hard-coding the rate. =B2*0.08 works today but means editing every formula when the rate changes. Keep it in one cell and lock it.

What's next

Before this came AVERAGE, MIN, MAX, COUNT, and you'll often use $ signs with those, for example =B2/MAX($B$2:$B$9). Next up is IF and IFS, where formulas start making decisions. Keep the Excel shortcuts cheat sheet handy for F4, or go back to the full Excel course.

Frequently asked questions

What is an absolute reference in Excel?

A cell reference with dollar signs, like $E$1, that stays pointing at the same cell when you copy or fill the formula. A normal reference like E1 is relative: it shifts by one row for every row you copy it down.

What does the $ sign mean in an Excel formula?

It locks whatever comes right after it. $E locks the column, $1 locks the row. $E$1 locks both, E$1 locks only the row and $E1 locks only the column. The $ has nothing to do with money here.

What is the shortcut for absolute reference in Excel?

On Windows and in Excel for the web, click inside the reference while editing the formula and press F4. On a Mac, press Cmd+T (Microsoft also lists F4; you may need Fn+F4 if your F keys control brightness or volume). Each press moves to the next type: $A$1, A$1, $A1, then back to A1.

Why does my formula show 0 when I drag it down?

Almost always because a reference that should stay put moved. If row 2 uses =B2*E1, row 3 becomes =B3*E2, and E2 is empty, which counts as 0. Change E1 to $E$1 in the first formula and fill down again.

What is the difference between relative and absolute references?

A relative reference (A1) changes when the formula is copied, keeping the same distance from the new cell. An absolute reference ($A$1) never changes. Use relative for the values on each row and absolute for one fixed value, like a tax rate, that every row needs.

What is a mixed reference?

A reference with one $ sign, so only half of it is locked: A$1 keeps the row fixed, $A1 keeps the column fixed. They're handy for grids, like a multiplication table, where a formula is copied both across and down.