Absolute vs relative references in Excel ($A$1 explained)

Updated · DeskHowTo

In Excel for Microsoft 365 / Excel 2021–2024 (verified 2026-10-24), a relative reference like A1 shifts when you copy a formula, while an absolute reference like $A$1 stays fixed. Press F4 (Mac: Cmd+T in some layouts, or fn+F4) after clicking a cell in the formula bar to cycle $A$1 → A$1 → $A1 → A1.

Use absolute references for constants (tax rate, unit price, lookup table) and relative references for the values that should change row by row.

Jump to

Applies to Excel for Microsoft 365, Excel 2021 and 2024, Excel for Mac and Excel for the web. Most "my formula broke when I dragged it" problems are relative references doing exactly what Excel designed them to do.

Lock a cell reference with F4

Example: sales in column B should all multiply by a tax rate stored once in cell E1.

Write the first formula

  1. In C2, type =B2* then click E1 so the formula reads =B2*E1.
  2. With the cursor still on E1 in the formula bar, press F4 until it becomes $E$1.
  3. Press Enter. The formula is =B2*$E$1.

Copy it down

  1. Drag the fill handle from C2 down the column.
  2. Each row keeps $E$1 and advances B2 → B3 → B4. Without the dollar signs, Excel would have shifted E1 to E2, E3, and so on - usually blanks or wrong values.

Cycle the four styles

  1. Click a reference in the formula bar and press F4 repeatedly:
  2. $A$1 - column and row locked (fully absolute).
  3. A$1 - row locked (column shifts when copied sideways).
  4. $A1 - column locked (row shifts when copied down).
  5. A1 - fully relative.

Which lock do you need?

SituationReference styleExample
One tax rate / constant used by every row$A$1=B2*$E$1
Copy across columns but keep the same header rowA$1Running totals against a fixed header
Copy down rows but keep the same input column$A1Each row multiplies by column A's factor
Normal row-by-row calculationsA1=B2-C2
VLOOKUP / XLOOKUP table that must not slide$A$2:$C$100See VLOOKUP / XLOOKUP
Entire column (careful with performance)$A:$APrefer Tables when possible

Our take: name the constant, then lock it

Dollar signs are easy to miss when you revisit a sheet months later. Put constants in a clearly labelled cell (or a small Inputs block), give that cell a defined name (Formulas > Define Name, for example TaxRate), and use =B2*TaxRate instead of =B2*$E$1. Named references stay readable and behave like absolute references when you copy formulas.

If you inherit a sheet full of $ signs and no labels, use Formulas > Trace Precedents on a broken cell before changing anything.

If it fails

  • F4 does nothing: you are not editing inside the formula bar, or a laptop needs fn+F4. Click the reference first.
  • Mac: depending on Excel version and System Settings for function keys, use Cmd+T or fn+F4 while editing the reference.
  • Table columns break your absolutes: structured references like [@Sales] use different syntax. Convert to a range or use absolute structured references carefully.
  • Copied to another sheet and still wrong: the absolute reference may point to the original sheet. Prefixed names like Sheet1!$E$1 make that explicit.
  • Need the same idea in Sheets: Google Sheets uses the same $ syntax; see Sheets VLOOKUP.

Worked patterns you will reuse

  • Percentage of total: =B2/$B$10 where B10 is the total.
  • IF with a threshold: =IF(B2>=$E$1,"Yes","No") - see IF formula.
  • SUMIF criteria range that must not move: lock both ends, $A$2:$A$100 - see SUMIF / COUNTIF.
  • Conditional formatting formula rules often need absolute columns and relative rows (=$A2="Yes") so the rule applies across a row - see conditional formatting.

Keyboard and fill-handle habits

After you lock $E$1, copy with the fill handle or double-click it when the column beside it is filled. If a neighbour column is empty, the double-click fill stops early - that looks like a broken absolute reference when it is really a fill-range issue. Also watch pasted formulas from the web: they often arrive with relative references even when the article showed dollar signs.

Tables vs absolute ranges

Excel Tables (Ctrl+T) auto-expand and use column names, which reduces the need for $A$2:$A$500 guesses. For one-off constants sitting outside the table, keep $E$1 or a defined name. Mixing Tables with old absolute ranges is fine; just do not paste a formula that expects E1 to shift inside a Table column.

Frequently asked questions

What does $ mean in an Excel formula?

It locks that part of the reference. $A$1 locks both column and row; A$1 locks the row; $A1 locks the column.

What is the shortcut for absolute reference?

F4 while editing a reference in the formula bar (Mac: often Cmd+T or fn+F4).

Why did my formula change when I copied it?

Relative references shifted. Lock the cells that should stay fixed with $ or a defined name.

Do absolute references work in Excel for the web?

Yes - type the $ characters or use the same F4 behaviour where supported.

Absolute vs mixed reference?

Absolute locks both parts ($A$1). Mixed locks only one (A$1 or $A1).