Absolute references: percent of total

Lesson 6 of 54

An absolute reference like $B$6 stays fixed when you copy or fill a formula, while a relative reference like B2 shifts. Add $ signs to lock the cell, or press F4 while editing to cycle through them.

In cell C2, write a formula that shows Laptops sales as a share of the Total in B6. It must still work when filled down to C3 and C4, so lock the total with $.

C2
ABC
1ProductSalesShare of total
2Laptops5,000
3Phones3,000
4Tablets2,000
5
6Total10,000

Type in the formula bar above and press Enter to check.

Skip

How absolute references work

Syntax

B2 (relative)   $B$2 (absolute)   $B2 (column locked)   B$2 (row locked)
B2
Relative: moves with the formula. Filled down one row, it becomes B3.
$B$2
Absolute: never moves. Use it for a single rate, total or setting.
$B2
Mixed: the column stays B, the row moves.
B$2
Mixed: the row stays 2, the column moves. Handy across a table.

Example

Prices are in B2:B20 and a tax rate of 8% is in E1. You want the tax for every row.

=B2*$E$1

Filled down, B2 becomes B3, B4... but $E$1 keeps pointing at the tax rate.

Common mistakes

  • Filling down =B2*E1 without $. The next row reads E2, which is empty, so the results drop to 0.
  • Locking everything with $. Then the formula can't move along the rows at all.
  • F4 doing nothing on a laptop. Try Fn+F4; on a Mac in Excel it is Cmd+T.

Questions people ask

What does the $ sign mean in Excel?

It locks the column letter or row number after it, so that part doesn't change when the formula is copied.

Do absolute references work the same in Google Sheets?

Yes, the $ signs and the F4 shortcut work the same.

Practice it above: type the formula in the formula bar and press Enter to check.