Absolute vs relative references in Excel: when to use $

Updated October 29, 2026 · 3 min read

A relative reference like B2 shifts when you copy a formula. An absolute reference like $B$2 stays fixed. Use $ for anything every row should point to, like a total, a rate or a lookup table.

The examples use this small sales table, the same one in the practice box below.

A RepB SalesD TargetE Region
2Dana1,2501,000East
3Luis8301,000West
4Priya2,1001,000East
5Marcus4751,000North
6Jen9901,000West
7Omar1,6001,000East

The four kinds of reference

ReferenceCopy downCopy across
B2Row changesColumn changes
$B$2Stays B2Stays B2
$B2Row changesColumn stays B
B$2Row stays 2Column changes

Example: share of the total

To show each rep's share of team sales, put this in C2: =B2/SUM($B$2:$B$7). For Dana that's 17.3% once you format it as a percent.

Copy it down to C3 and Excel writes =B3/SUM($B$2:$B$7). The B3 moved, which is what you want. The total range stayed put.

Without the $ signs, C3 would become =B3/SUM(B3:B8). That divides by the wrong total, and every row below gets worse.

The F4 shortcut

In Excel, click inside a reference in the formula bar and press F4. It cycles through B2, $B$2, B$2 and $B2. On a Mac, use Command + T. In Google Sheets, it's also F4.

Where tests check this

  • Percent of total, like the example above.
  • Commission using one rate cell for every row.
  • The table range in VLOOKUP.
  • A report date used in DATEDIF for every employee.

Try it: Dana's share of total

In C2, show Dana's sale as a fraction of total team sales. Write it so it could be copied down to C3 through C7.

C2

Graded live, like a real Excel test. Press New numbers to prove you didn't memorize the answer. More practice

Questions people ask

What does the $ sign mean in Excel?

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

When should I use a mixed reference like B$2?

When you copy a formula both down and across, like a multiplication table, and need one part to stay fixed in only one direction.

Practice on a real spreadsheet

CellReady grades your formula the moment you press Enter and tells you why a wrong answer is wrong. The first 7 lessons are free, with no sign-up to start.

Start lesson one

Related guides

Excel VLOOKUP function: find a value in a table

How VLOOKUP works in Excel, why you should always end it with FALSE, how to lock the table with $, its limits, and a live exercise.

Excel SUM function: how to add a range

How to use SUM in Excel with a real example, the mistakes that cost points on Excel tests, and a live exercise to practice.

Excel formulas cheat sheet for job tests

A one-page cheat sheet of the Excel formulas that show up on pre-employment tests, with the syntax, a real example and the mistake to avoid for each.