Home  /  Blog  /  Formula Basics & Fixes
Formula Basics & Fixes

Absolute Reference in Excel (Keep a Cell Constant)

By admin 26 November 2026 Formula Basics & Fixes

You wrote a formula that works in the first row, copied it down, and the answers went wrong. The prices are right, the quantities are right — but the tax rate moved. It was in one cell, and now it is in a different cell on every row, pointing at empty cells and turning the answers to 0. The fix is one character, the dollar sign, in front of the part of the reference that should not move. This guide shows you the failure first, with real numbers, then the four reference types in one table, the F4 key that does the typing for you, and the multiplication table that proves the mixed references work — plus the mistake everyone makes next, locking too much.

Quick takeaway: one $ locks one thing — column, row, or both.

  • $A$1 locks both — the cell never moves.
  • $A1 locks the column only — the row still moves.
  • A$1 locks the row only — the column still moves.
  • A1 locks nothing — both move. This is the default.
  • Press F4 while editing a reference to cycle through all four.
Absolute Reference in Excel (Keep a Cell Constant)

The Problem — The Tax Rate Walked Down the Column

The tax rate 1.17 (17% tax) sits in cell D1. Prices are in column B. The formula in C2 is =B2*D1, and you copy it down.

Price (B)Formula (C)What Excel actually calculatesResult
100=B2*D1100 × 1.17117
250=B3*D2250 × (empty D2)0
400=B4*D3400 × (empty D3)0

The first row is right: 100 × 1.17 = 117. The second row is wrong: the formula moved to =B3*D2, and D2 is empty — Excel treats a blank as 0 in multiplication, so 250 × 0 = 0. The third row is wrong the same way. The B reference was supposed to move (each row has its own price). The D1 reference was not supposed to move — the rate is one cell, and it should stay put on every row. That is what an absolute reference is for. This is the same blank-as-zero lesson as in the multiplication formula guide, and the same fix as in the how to copy formula guide — this article teaches the fix properly.

The Fix — Lock the Rate With Dollar Signs

=B2*$D$1

The $ before the D locks the column. The $ before the 1 locks the row. Together, $D$1 never moves, no matter where the formula is copied.

Price (B)Formula (C)What Excel actually calculatesResult
100=B2*$D$1100 × 1.17117
250=B3*$D$1250 × 1.17292.50
400=B4*$D$1400 × 1.17468

Check it: 250 × 1.17 = 292.50. 400 × 1.17 = 468. The B reference moved to each row’s price, and $D$1 stayed exactly where it was. One character, twice, and the whole column is fixed.

The Four Reference Types

ReferenceExampleWhat moves when copiedWhen to use it
RelativeB2Both row and column moveThe value that changes per row or column — the price, the quantity
Absolute$B$2Nothing movesThe value that never changes — a tax rate, a discount, an exchange rate
Mixed (column locked)$B2Row moves, column staysCopying across and down, the column must stay — see the multiplication table below
Mixed (row locked)B$2Column moves, row staysCopying across and down, the row must stay — see the multiplication table below

The rule: put a $ in front of the part that should not move. No $ on the part that should move. That is all there is to it.

The F4 Key — Let Excel Type the Dollar Signs

You do not have to type the $ signs by hand. While you are editing a formula, click inside the reference you want to lock and press F4. Excel cycles through all four types:

  1. D1 → press F4 → $D$1 (locks both)
  2. $D$1 → press F4 → D$1 (locks the row only)
  3. D$1 → press F4 → $D1 (locks the column only)
  4. $D1 → press F4 → D1 (back to relative)

Stop pressing when you see the type you need, then press Enter.

On a Mac: press Fn+F4, or Cmd+T on newer Excel for Microsoft 365 builds. The cycle is identical; only the key combination differs.

In Excel for the web: F4 usually works in Chrome and Edge. If the browser intercepts it, type the dollar signs manually.

Mixed References — The Multiplication Table Proof

Mixed references are for when a formula is copied both down and across, and one direction must stay fixed while the other moves. The proof is a multiplication table, built with one formula.

Numbers 2 to 6 run down column A (A2:A6) and across row 1 (B1:F1). One formula in B2, copied across to F2 and down to F6:

=$A2*B$1
  • $A2 locks the column (A) but lets the row move — as the formula goes down, A2 becomes A3, A4, and so on.
  • B$1 locks the row (1) but lets the column move — as the formula goes right, B$1 becomes C$1, D$1, and so on.
BCDEF
24681012
369121518
4812162024
51015202530
61218243036

Check the corners: top-left B2 is $A2*B$1 = 2 × 2 = 4. Top-right F2 is $A2*F$1 = 2 × 6 = 12. Bottom-left B6 is $A6*B$1 = 6 × 2 = 12. Bottom-right F6 is $A6*F$1 = 6 × 6 = 36. One formula, twenty-five answers, and every one of them is right because each part moves exactly as far as it should and no further.

When to Lock, and When to Leave It Alone

SituationLock it?Why
A tax rate, discount, exchange rate or bonus percentage in one cellYes — $D$1Every row uses the same rate
The price or quantity on the same row as the formulaNo — B2Each row has its own price
A lookup table that never movesYes — $A$2:$B$10The table stays put while the lookup value changes
A running total that should grow row by rowNo — and use a mixed reference, B$2:B2The start stays, the end grows (see below)
A formula you will never copy anywhereDoes not matterNothing moves, so nothing needs locking

The running-total trick deserves one line: =SUM(B$2:B2) in C2, copied down, becomes =SUM(B$2:B3) in C3 and =SUM(B$2:B4) in C4. The start of the range is locked to row 2, the end moves with the row — so the total grows by one row each time. That is a mixed reference doing real work.

The $ in a Formula Is Not the $ for Money

The dollar sign in $D$1 has nothing to do with money. It is a lock. The dollar sign you see in a cell formatted as $117.00 is currency formatting — it changes how the number looks, not what it is. A cell can hold $D$1 as a locked reference and display as $117.00 as currency, and the two $ signs mean completely different things. If you are locking a cell, you are using the formula $. If you are showing money, you are using the format $.

Common Mistakes

MistakeWhat happensFix
You locked nothing — =B2*D1The rate moves down with the formula and the answers become 0Lock it: =B2*$D$1
You locked everything — =$B$2*$D$1Every row gives the same answer — the price never moves to the next rowLock only the rate: =B2*$D$1
You locked the column but not the row — =B2*D$1Copying down still moves the rate (D1 becomes D2)Lock both: $D$1
You locked the row but not the column — =B2*$D1Copying across moves the rate to the next columnLock both: $D$1
You pressed F4 and nothing happenedOn a laptop, F4 may need Fn, or the browser took itUse Fn+F4 (or Cmd+T on a Mac), or type the $ signs by hand
You locked a reference in a formula you never copyNothing breaks — but the $ signs confuse the next person who reads itLock only what will actually be copied
You copied the formula to another sheetThe $ locks the cell on the original sheet, not the new oneCopy the rate cell too, or point the formula at the new sheet’s rate

Frequently Asked Questions

How do I keep a cell constant in an Excel formula? Put a dollar sign before the column letter and the row number: $D$1 instead of D1. The reference never moves when the formula is copied.

What is the difference between $A$1, $A1 and A$1? $A$1 locks both — nothing moves. $A1 locks the column only — the row still moves. A$1 locks the row only — the column still moves. A1 locks nothing — both move.

Why is $ used in an Excel formula? The $ locks a reference so it does not shift when the formula is copied. It has nothing to do with money — that is currency formatting, a different thing.

How do I lock a cell with F4? While editing the formula, click inside the reference and press F4. Each press cycles: D1 → $D$1 → D$1 → $D1 → D1. Stop when you see the type you need.

How do I keep a row constant but let the column change? Use A$1 — the $ before the 1 locks the row, and the column is free to move.

How do I keep a column constant but let the row change? Use $A1 — the $ before the A locks the column, and the row is free to move.

Does F4 work on a Mac? Yes — press Fn+F4, or Cmd+T on newer Excel for Microsoft 365. The cycle is the same.

Should I lock every reference in my formula? No. Lock only the cells that must not move — a rate, a table, a fixed input. Locking everything gives every row the same answer.

That is the whole method: a $ in front of the part that should not move, and nothing in front of the part that should. It works for a tax rate in one cell, a lookup table that never moves, and a multiplication table built from a single formula, and the only cases that need extra care are locking too much — which freezes the price as well as the rate — and the F4 key on a laptop or a Mac, where Fn or Cmd+T does the job instead. Try it on your own sheet now, with the tax-rate table above, and when the formula you are locking is one you will copy down a long column, the next guide to read is the how to copy formula guide — it is the same copying, taught from the other side, with the fill handle, Ctrl+D and Paste Special.


About admin

Author of Excel formula guides on this blog.

View all guides by admin →

Keep Learning

Related guides