Menu

Absolute Reference in Excel: $A$1, F4 and Mixed References

An absolute reference like $E$1 stays the same when you copy a formula, while a relative reference like E1 moves with it. Press F4 to add the dollar signs. See the difference on sheets you can edit.

Every sheet on this page is live: change a number or a formula and it recalculates.

An absolute reference keeps a cell fixed when you copy a formula. In =B2*$E$1, the dollar signs lock E1: fill the formula down and every row still multiplies by E1, while B2 moves to B3, B4 and so on. To add the dollar signs, click the reference in the formula and press F4 (on a Mac, Cmd+T).

Commission at one rate
C2
ABCDE
1RepSalesCommissionRate5%
2Ana$12,000$600
3Ben$8,500$425
4Chen$15,200$760
5Dina$9,800$490
6Eli$11,000$550
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

C2 was typed once and filled down. Click C4: its formula is =B4*$E$1. The sales cell moved to row 4, the rate stayed in E1. Change the rate in E1 to 8% and every commission updates.

Relative vs absolute references

ReferenceNameCopied one row down and one column right
A1relativeB2
$A$1absolute$A$1
A$1mixed: row lockedB$1
$A1mixed: column locked$A2

A plain reference like B2 is relative: Excel stores it as "the cell in this position from me", so a copy one row lower points one row lower. That is exactly what you want for per-row data, and it is the default. The $ in front of a column letter or a row number locks that part.

The classic mistake: filling down without $

Here is the commission sheet again, with =B2*E1 in C2 and no dollar signs. The first row is right. The rest are 0.

The same sheet without $
C3
ABCDE
1RepSalesCommissionRate5%
2Ana$12,000$600
3Ben$8,500$0
4Chen$15,200$0
5Dina$9,800$0
6Eli$11,000$0
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

C3 holds =B3*E2: the rate reference moved down to E2, which is empty, and an empty cell counts as 0. Fix it here: click C2, change the formula to =B2*$E$1 and press Enter. The whole column follows, because C3:C6 are copies of C2. When the fixed cell is a divisor, as in =B2/B7 for a share of a total, the same mistake shows #DIV/0! instead of 0 (percentage of total is the usual case).

Press F4 to add the dollar signs

While typing or editing a formula, put the cursor in a reference (or just after it) and press F4. Each press moves to the next form:

E1  ->  $E$1  ->  E$1  ->  $E1  ->  E1

On many laptops F4 controls the screen or the sound, so press Fn+F4. On a Mac, use Cmd+T, or Fn+F4. You can also type the $ signs yourself.

Mixed references: lock only the row or the column

A mixed reference has one dollar sign. $A2 always reads column A but lets the row move; B$1 always reads row 1 but lets the column move. With both in one formula, a single formula filled across a grid builds a multiplication table:

Multiplication table from one formula
B2
ABCDEF
1x12345
2112345
32246810
433691215
5448121620
65510152025
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

B2 holds =$A2*B$1. Click F6: it holds =$A6*F$1, the row number from column A times the column number from row 1, so it shows 25. Remove one dollar sign in B2 and the table falls apart, because the copies start multiplying neighboring cells instead of headers.

The same pattern prices a list at several discounts: =$A2*(1-B$1) with prices down column A and discount rates across row 1.

Running total with a half-locked range

A range can be locked at one end only. =SUM($B$2:B2) starts at B2 forever, while its end moves down as the formula is filled, so each row adds everything up to itself:

Running total
C2
ABC
1MonthSalesTotal so far
2Jan420420
3Feb380800
4Mar5101310
5Apr4501760
6May4702230
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

C6 holds =SUM($B$2:B6) and shows 2230, the total of all five months. The same half-locked range makes =COUNTIF($A$2:A2,A2) count how many times a value has appeared so far, which is how duplicates after the first are flagged.

Practice: one formula for the whole table

Prices at three discounts
B2
ABCD
1Price10%20%30%
2$40.00
3$25.00
4$60.00
5$18.00
Click a cell to see its formula. Change a number or a formula and the sheet recalculates.

Your turn: In B2, write the price of the first product after the discount in B1. Use $ so that the same formula, filled across and down to D5, gives every price in the table.

The sheet copies your formula into every cell of B2:D5, the way the fill handle would, and Check reads all twelve results. Without the right dollar signs, the copies in row 3 or column C read the wrong price or the wrong discount.

Absolute references to another sheet or a lookup table

The dollar signs work the same way with a sheet name: =B2*Settings!$B$1. They matter most in lookups, where the table must stay put while the lookup value moves: =VLOOKUP(A2,$E$2:$F$10,2,FALSE) filled down keeps searching E2:F10, while =VLOOKUP(A2,E2:F10,2,FALSE) slides the table down one row per copy and starts missing the first rows (VLOOKUP). If a fixed cell is used in many formulas, you can also give it a name with Formulas > Define Name and write =B2*Rate; a name defined this way points at the same cell from every formula, like $E$1.

Frequently Asked Questions

What does the $ sign mean in an Excel formula?

It locks the part of the reference that follows it. In $E$1 both the column E and the row 1 are locked, so the reference stays E1 wherever the formula is copied. E$1 locks only the row and $E1 only the column.

What is the shortcut for absolute reference in Excel?

Click inside the reference while editing the formula and press F4 (Fn+F4 on many laptops). Each press cycles through $A$1, A$1, $A1 and A1. On a Mac, press Cmd+T, or Fn+F4.

What is the difference between relative and absolute references?

A relative reference such as B2 moves when you copy the formula: one row down it becomes B3. An absolute reference such as $B$2 stays $B$2. Use absolute references for a single cell every row needs, like a rate or a total.

What is a mixed reference in Excel?

A reference with one dollar sign: $A2 keeps the column and lets the row move, B$1 keeps the row and lets the column move. =$A2*B$1 filled across and down a grid builds a multiplication table.

Why does my formula show 0 or #DIV/0! after I drag it down?

A reference that should stay fixed moved with the copy. If row 2 has =B2/B7, row 3 gets =B3/B8, and B8 is empty. Lock the total with =B2/$B$7 and fill again.

Coddy programming languages illustration

Learn to code with Coddy

GET STARTED