Relative vs Absolute Cell References: The Dollar Sign Explained

A cell reference tells a formula where to find its data. A relative reference shifts when the formula is copied to another cell, and a dollar sign stops that shift. Place $ before the column letter, the row number, or both, and that part of the address stays fixed. Most beginner errors that look like random wrong numbers come from getting this one choice wrong.

The rule is simple to state. Lock whatever should stay the same when the formula is copied, and leave relative whatever should change from row to row or column to column.

Overview and Glossary of Terms

This section defines the terms used throughout the module. Use it as a reference when a later section assumes one of them.

  • Cell reference: The address of a cell, written as a column letter followed by a row number, such as B2.
  • Relative reference: An address that adjusts when the formula is copied. B2 becomes B3 when copied one row down.
  • Absolute reference: A fixed address written with a dollar sign on both parts, such as $B$2.
  • Mixed reference: A partly fixed address. $B2 locks the column, and B$2 locks the row.
  • Anchor: An informal term for placing a dollar sign to fix part of a reference.
  • Fill handle: The small square at the bottom-right corner of a selected cell. Dragging it copies the formula into adjacent cells.
  • Range: A block of cells described by its corners, such as B2:B6.
Cell Rangers: Google Sheets Lessons for Kids

Skip the setup

Cell Rangers: Google Sheets Lessons for Kids

Self-checking spreadsheet activities that teach formulas, sorting and charts step by step.

See it on Taskdale →

SOP 1.1: How Relative References Behave

A relative reference is the default in every major spreadsheet application. When you type =B2*2 into cell C2, the spreadsheet does not really store “B2”. It stores the instruction “the cell one column to the left and in the same row”, then resolves that instruction for wherever the formula sits.

Copy that formula down to C3 and it becomes =B32. Copy it to C10 and it becomes =B102. The offset stays the same, so the formula always reads from the cell beside it.

This behaviour is what makes relative references useful. A single formula can process a whole column of sales figures, a list of invoice lines or a set of student marks, because each row refers to its own data. The trouble starts when a formula also needs to refer to one cell that never changes, because the relative behaviour will move that reference along with everything else.

SOP 1.2: How the Dollar Sign Creates an Absolute Reference

Adding a dollar sign before the column letter and before the row number creates an absolute reference. $B$2 means “column B, row 2”, full stop. It does not move when the formula is copied.

Absolute references are usually used for single values that many formulas depend on. Examples include a tax rate, a commission percentage, an exchange rate, a fixed threshold, or the cell holding a lookup table’s start point. Put the value in one cell, label it, and point every formula at that cell with an absolute reference.

The dollar sign does not change the result of the formula itself. It only changes what happens when the formula is copied or filled. A formula that reads =B2*$F$1 gives the same answer as =B2*F1 in the cell where you typed it. The difference appears in the next cell down.

SOP 1.3: How Mixed References Lock One Dimension

A mixed reference locks only the column or only the row. This matters for grids, where a formula has to read across a header row and down a header column at the same time.

Consider a multiplication table. Put the numbers 1 to 5 across row 1 (B1:F1) and the numbers 1 to 5 down column A (A2:A6). In cell B2, enter:

=$A2*B$1

  • $A2 keeps the column fixed at A, so the row-header value is always taken from column A, but the row number moves with the formula.
  • B$1 keeps the row fixed at 1, so the column-header value is always taken from row 1, but the column letter moves with the formula.

Fill this formula right and down across the grid and every cell produces the correct product. Without the dollar signs, the formula would drift into empty cells and return zeros or wrong values.

Mixed references are the most efficient tool for two-way grids, budgets by month and category, and any layout where headers run along both edges.

SOP 1.4: Entering and Toggling the Dollar Sign

You can type the dollar sign by hand, but there is a faster method. Select the cell reference inside the formula bar, or place the cursor directly on it, then press the shortcut that cycles through the reference types.

ApplicationShortcutAction
Excel for WindowsF4Cycles through B2, $B$2, B$2, $B2 and back to B2
Excel for MacCommand+TCycles through the same reference types
Google Sheets on WindowsCtrl+4Cycles through the same reference types
Google Sheets on MacCommand+4Cycles through the same reference types

Press the shortcut once per step and check the formula bar after each press. The cycle can feel unpredictable at first, but it always moves through the same four states. If you press it one time too many, press it again until the reference shows the state you want.

SOP 1.5: Decision Rule for Choosing a Reference Type

Use this procedure each time you write a formula you plan to copy. It takes less than a minute and prevents most reference errors.

  1. List every input the formula uses, such as a sales figure, a rate, a header or a range.
  2. For each input, ask whether its position changes as the formula moves to the next row or column.
  3. If the input is a single shared value, such as a rate or threshold, lock both the column and the row, for example $F$1.
  4. If the input belongs to the same column but changes by row, lock the column only, for example $A2.
  5. If the input belongs to the same row but changes by column, lock the row only, for example B$1.
  6. If the input changes in both directions, leave it fully relative, for example B2.
  7. Write the formula in one cell, then fill it in both directions and check at least three results against manual calculations.

Step 7 is the step beginners skip, and it is the one that catches mistakes. Checking results is faster than tracing a broken formula after it has spread across a sheet.

Lapis Ledger Annual Budget

Ready-made template

Lapis Ledger Annual Budget

Monthly and annual budget tabs for Excel and Google Sheets, with category totals that add themselves up.

See it on Taskdale →

SOP 1.6: Worked Example: Commission Schedule

This example shows the same formula built two ways. It uses a sales team of five people, each with a sales figure, and one commission rate.

Set up the sheet as follows.

  • A1: Rep. B1: Sales. C1: Commission.
  • A2:A6: Five names.
  • B2:B6: Sales of 12,000, 8,500, 15,250, 4,000 and 9,750.
  • E1: Commission rate. F1: 5%.

In cell C2, enter the formula with the rate locked:

=B2*$F$1

The result is 600. Fill the formula down to C6. Each row multiplies its own sales figure by the single rate in F1:

CellFormulaResult
C2=B2*$F$1600.00
C3=B3*$F$1425.00
C4=B4*$F$1762.50
C5=B5*$F$1200.00
C6=B6*$F$1487.50

The total commission is 2,475.00, which matches 49,500 in total sales multiplied by 5%. You can check this by placing =SUM(C2:C6) in C7.

Now enter the same formula without the dollar signs, in C2 as =B2*F1, and fill it down. The results change:

CellFormulaResult
C2=B2*F1600.00
C3=B3*F20.00
C4=B4*F30.00
C5=B5*F40.00
C6=B6*F50.00

Only the first row is correct. Each copy moved the rate reference down one row, so it pointed at empty cells F2 to F5. The formulas did not show an error, and the zeros look plausible at a glance. This is the characteristic failure of a missing lock, and it is why checking more than one row matters.

SOP 1.7: Common Mistakes

The following mistakes account for most reference errors in working spreadsheets. Each one can be detected by checking a formula in two or three adjacent cells.

Locking Too Much

Locking a value that should change produces the opposite problem. If C2 reads =$B$2*$F$1, every row multiplies the first rep’s sales figure, so all five commissions show 600. The formula looks consistent, and the error is easy to miss because the column of results is uniform. Lock the rate, not the sales figure.

Forgetting the Lock Until Results Drift

A missing dollar sign often appears only after a formula has been filled across a large range. Build the lock into the formula before you fill, not after. If you find a drifting formula, fix the first cell, then fill again over the existing results.

Locking the Wrong Dimension

In the multiplication table in SOP 1.3, writing $B$1 instead of B$1 would lock the header to a single cell. Every cell would then multiply by the value in B1, which is 1, and the grid would show the first column repeated. Check whether your header runs across a row or down a column, then lock the correct direction.

Placing the Dollar Sign in the Wrong Position

The dollar sign must go directly before the part it locks. $B2 and B$2 are valid, and both locks work as described above. A dollar sign after the number, such as B2$, is not a valid lock. Spreadsheets will either reject it or treat it as text, so the formula will show an error or fail to fill properly.

Expecting Copy and Paste to Behave Differently

Copying a formula with Ctrl+C and pasting it with Ctrl+V adjusts relative references in the same way as the fill handle. The reference shifts by the distance between the source and the destination. Cutting and pasting a formula is different, because the references inside it keep pointing at the same cells, which can surprise anyone who expects them to shift.

SOP 1.8: Costs and Trade-offs

Each reference style has a price. Absolute references are fast and easy to read, but they tie formulas to specific cell addresses. The table below compares the main options for a shared value.

OptionBehaviour when copiedError riskReadabilityMaintenance effortBest used for
Relative (B2)Shifts with the formulaHigh if the formula should hold a valueGood for row-by-row workLowPer-row data and calculations
Absolute ($F$1)Stays fixedLow for shared valuesModerate, because the reader must find F1Low, but the cell must be kept in placeSingle shared inputs
Mixed ($A2 or B$1)Locks one axisModerate, because each axis needs checkingLower for newcomersLowGrids and two-way lookups
Named range (Rate)Stays fixedLowHigh, because the name describes the valueModerate, because names must be created and kept consistentShared inputs in larger models
Typed constant (*0.05)Stays fixedHigh, because the value is hidden in each formulaHigh at first, poor laterHigh, because every formula needs editing when the rate changesAlmost never, except fixed mathematical constants

Typing the rate directly into formulas is the least recommended choice. A formula such as =B2*0.05 is easy to write, but if the commission rate changes to 6%, every formula must be found and edited. Missing one leaves a sheet that partly uses the old rate, and the error may go unnoticed for months.

Named ranges give the best readability, because =B2*CommissionRate explains itself. They have a cost of their own. Names must be defined in a manager, the names must not conflict with cell addresses, and the people you share the sheet with must understand what the names refer to. For a single sheet with one rate, an absolute reference is usually enough. For a larger model with many shared inputs, named ranges repay the setup time.

Absolute references are also brittle in one specific way. They protect against copying errors, but they do not protect against someone deleting the cell they point to, or typing a new value over a labelled input cell by accident. Protect input cells where the sheet will be shared, and colour them so they are easy to find.

Checklist Before Copying a Formula

Run through this list before filling a formula across a range. It takes under a minute on a typical formula.

  • Each input has been identified and labelled as shared or per-row.
  • Shared values are locked on both the column and the row.
  • Per-row values are relative in the direction they change.
  • Header rows and columns are locked in the correct direction.
  • Ranges used for totals or lookups have both corners locked.
  • The formula has been checked in at least three cells, including the first and last.
  • Any input cell that others may change is labelled and, where possible, protected.

Next Steps

Work through the commission example in a blank sheet before moving on. Change the rate in F1 and confirm that every commission updates. Then build the multiplication table from SOP 1.3, and check that each product matches the value you would calculate by hand.

  • Practise the F4 or Ctrl+4 cycle until you can switch states without looking at the formula bar.
  • Read the reference lock’s role in lookup functions, including VLOOKUP and XLOOKUP, since their table arguments depend on absolute ranges.
  • Review named ranges as the next step when a sheet has more than a few shared inputs.

This module is one part of the wider pillar on Essential Spreadsheet Formulas and Functions. The reference rules here apply to every function in that set, so treat the decision rule in SOP 1.5 as a habit to build before writing any formula you intend to copy.

Profit Loom Pricing Calculator

Get the finished file

Profit Loom Pricing Calculator

Work out cost, markup, margin and platform fees for each product, so every price you set leaves a profit.

See it on Taskdale →

Scroll to Top