ΣBasics & math11 min read ·

Absolute vs Relative References in Excel ($A$1)

Learn relative, absolute and mixed references in Excel with real examples. What $A$1 means, the F4 shortcut, copying formulas and the mistakes to avoid.

Quick answer

A relative reference like A1 changes when you copy a formula, and an absolute reference like $A$1 always points at the same cell. Mixed references lock only the column ($A1) or the row (A$1), and F4 adds the dollar signs for you.

On this page ⌄
  1. The four types of cell reference
  2. Relative references: the default
  3. Absolute references: lock a cell with $A$1
  4. How to use F4 to add dollar signs
  5. Mixed references: lock only the row or the column
  6. Copying across vs copying down
  7. Lock the ranges in VLOOKUP, SUMIF and COUNTIF
  8. Common mistakes with cell references
  9. Frequently asked questions about cell references
  10. Do references work the same in every version of Excel?
  11. Key takeaways

The dollar signs in a reference like $A$1 tell Excel what to keep fixed when you copy a formula. Without them, a reference is relative: copy =F2/E2 one row down and it becomes =F3/E3. With them, it's absolute, and it points at the same cell wherever the formula goes. A dollar sign in front of only the column or only the row makes a mixed reference, which locks just that part.

Relative references are the default, and most of the time they're what you want. You need dollar signs when every copy of a formula has to use the same cell, such as a tax rate, a total or a lookup table.

The examples use this sales log in A1:F11:

A: DateB: RegionC: RepD: ProductE: UnitsF: Revenue
2Jan 4, 2026NorthAvaLaptop3$3,600
3Jan 9, 2026SouthLeoMonitor5$1,250
4Jan 15, 2026NorthMayaLaptop2$2,400
5Jan 22, 2026EastSamKeyboard12$720
6Feb 3, 2026WestZoeMonitor4$1,000
7Feb 11, 2026NorthAvaKeyboard8$480
8Feb 19, 2026SouthIvyLaptop4$4,800
9Feb 27, 2026EastSamMonitor6$1,500
10Mar 6, 2026WestNoahLaptop1$1,200
11Mar 14, 2026NorthMayaMonitor7$1,750

The four types of cell reference

A dollar sign before the column letter locks the column. A dollar sign before the row number locks the row. Here's what happens to each type when a formula in B2 is copied one cell down and one cell right, to C3:

ReferenceTypeWhat's lockedAfter copying from B2 to C3
A1RelativeNothingB2
$A$1AbsoluteColumn and row$A$1
$A1MixedColumn only$A2
A$1MixedRow onlyB$1

The dollar sign has nothing to do with currency. It means "don't change this part", and it's the same in every language version of Excel.

Relative references: the default

When you click a cell while writing a formula, Excel adds a relative reference. That's exactly right for row-by-row math. How much did each order charge per unit? In G2:

=F2/E2→ 1200

Now copy G2 down to G11. Drag the fill handle, the small square at the bottom-right corner of the cell, or double-click it to fill down as far as the data goes. Each copy points at its own row:

=F3/E3→ 250
=F5/E5→ 60
=F11/E11→ 250

Laptops come out at 1200 per unit, monitors at 250 and keyboards at 60. You typed one formula and got ten answers.

This works because Excel doesn't really remember "F2". It remembers a direction: "the cell one column to the left, divided by the cell two columns to the left". From G3, those directions lead to F3 and E3, so the copied formula still makes sense.

Dollar signs only matter when a formula is copied or filled. A formula you type once and never copy works the same with or without them.

Your turn. This exercise uses the same Revenue column, but it asks for one answer that covers all ten orders, so the formula isn't copied anywhere. Drag across the cells to insert the range, and notice that the formula gets a relative reference.

Try it yourself

A live spreadsheet. Type a formula and press Enter to check it.

Exercise 1 of 11SUM

What was the total revenue for all orders?

Write your formula in the green cell, I2.

q1-orders.xlsx
fx
1DateRegionRepProductUnitsRevenue
2Jan 4, 2026NorthAvaLaptop3$3,600.00Total revenue
3Jan 9, 2026SouthLeoMonitor5$1,250.00
4Jan 15, 2026NorthMayaLaptop2$2,400.00
5Jan 22, 2026EastSamKeyboard12$720.00
6Feb 3, 2026WestZoeMonitor4$1,000.00
7Feb 11, 2026NorthAvaKeyboard8$480.00
8Feb 19, 2026SouthIvyLaptop4$4,800.00
9Feb 27, 2026EastSamMonitor6$1,500.00
10Mar 6, 2026WestNoahLaptop1$1,200.00
11Mar 14, 2026NorthMayaMonitor7$1,750.00
12
13

Click a cell to add it to your formula, drag to select a range, or click a column letter for the whole column.

Absolute references: lock a cell with $A$1

Say each rep earns a 5% commission. Type 5% in H1, above the commission column, and in H2 multiply the revenue by it:

=F2*H1→ 180

That's right for the first order. Copy it down, though, and H1 moves down a row, just like F2 does. Here's what H3 gets:

=F3*H2→ 225000

Instead of the rate, Excel multiplies by H2, the commission above, so the $1,250 order earns a commission of 225,000. Each row multiplies by the result above it, and the numbers keep growing. The first row was correct, which is why this mistake is easy to miss.

The fix is to lock H1, so every copy uses it:

=F2*$H$1→ 180
=F3*$H$1→ 62.5
=F11*$H$1→ 87.5

F2 still moves down a row each time, but $H$1 stays put. Change H1 to 6% and every commission updates. Format column H as currency to show 62.5 as $62.50.

Lock a cell like this whenever every row has to use the same one: a tax or commission rate, an exchange rate, a target, or the total you divide by for a percentage of total. If E12 holds the total units, =E2/$E$12 copied down gives each order's share.

How to use F4 to add dollar signs

You can type the dollar signs yourself, but F4 is quicker. While you're editing a formula, click inside a reference, or just after it, and press F4. Each press moves to the next type:

Press F4H1 becomes
Once$H$1
TwiceH$1
Three times$H1
Four timesH1 again

To lock a whole range, select it in the formula bar, such as F2:F11, and press F4. It becomes $F$2:$F$11.

F4 works the same way in Excel for the web. In Excel for Mac, press Cmd+T or F4. If F4 changes the volume or brightness instead, on a Mac or a Windows laptop, hold Fn and press F4.

Mixed references: lock only the row or the column

Now compare three commission rates side by side. Put 5%, 8% and 10% in H1, I1 and J1, and fill H2:J11 with a single formula. Every cell needs the revenue from column F on its own row, and the rate from row 1 in its own column. So lock the column of the revenue and the row of the rate:

=$F2*H$1→ 180

Type it in H2, fill it right to J2, then fill H2:J2 down to row 11. Here's how the first three rows come out:

H: 5%I: 8%J: 10%
2=$F2*H$1 → 180=$F2*I$1 → 288=$F2*J$1 → 360
3=$F3*H$1 → 62.5=$F3*I$1 → 100=$F3*J$1 → 125
4=$F4*H$1 → 120=$F4*I$1 → 192=$F4*J$1 → 240

$F2 always reads column F but moves down the rows. H$1 always reads row 1 but moves across the columns. It's the same trick that builds a times table: with 1 to 10 in A2:A11 and in B1:K1, type =$A2*B$1 in B2 and copy it across and down to fill the grid.

Get one dollar sign wrong and the grid is wrong, with no error to warn you. Here's what I2 shows when each version is filled right from H2, with the prices per unit from earlier still in column G:

Formula in H2Becomes in I2I2 shows
=$F2*H$1=$F2*I$1288, which is correct
=F2*$H$1=G2*$H$160, 5% of the laptop's unit price
=$F2*$H$1=$F2*$H$1180, still the 5% rate
=F2*H1=G2*I196, 8% of the unit price

If column G were empty, the second and fourth versions would show 0 instead.

Copying across vs copying down

Which dollar signs you need depends on which way the formula is copied:

  • Copying down changes the row numbers. The column letters stay the same.
  • Copying across changes the column letters. The row numbers stay the same.
  • Copying diagonally changes both.

So you only need to lock the part that would otherwise move. The single commission column is only copied down, and its column letter can't change, so =F2*H$1 works just as well as =F2*$H$1. $H$1 is still a good habit for one fixed cell, because the rate stays put even if someone later copies the formula sideways.

A few ways of copying don't change references at all:

  • Moving a formula, with cut and paste or by dragging the cell's border, keeps every reference exactly as it was. Only copying adjusts them.
  • Copying the text of a formula from the formula bar and pasting it into another cell pastes it as typed.
  • Whole columns like B:B have no row number, so they stay the same when copied down. Copied across, B:B becomes C:C, so write $B:$B if the formula goes sideways.

Lock the ranges in VLOOKUP, SUMIF and COUNTIF

Lookups and conditional formulas are where missing dollar signs do the most damage, because the wrong answers still look believable. The rule is simple. The value you look up, or the condition you test, changes on every row, so leave it relative. The range you search never changes, so lock it.

Say you want the number of orders for each region, with East, North, South and West in L2:L5. In M2:

=COUNTIF($B$2:$B$11, L2)→ 2

Copied down, L2 becomes L3, L4 and L5, but the range stays B2:B11. Without the dollar signs, the range slides down a row with each copy and drops orders from the top:

L: RegionLocked: =COUNTIF($B$2:$B$11, L2)Not locked: =COUNTIF(B2:B11, L2)
2East22
3North43, because it counts B3:B12
4South21, because it counts B4:B13
5West22

The unlocked version misses Ava's order in row 2 and Leo's in row 3, and West only comes out right by luck. SUMIF and SUMIFS go wrong the same way, so lock every range and leave the criteria cell relative. For revenue by region, in N2:

=SUMIF($B$2:$B$11, L2, $F$2:$F$11)→ $2,220

The SUMIF and SUMIFS guide and the COUNTIF guide cover the conditions themselves.

Lookup tables need the same treatment. Here's a price list in P1:Q4, with the per-unit prices worked out earlier:

P: ProductQ: Price
2Laptop$1,200
3Monitor$250
4Keyboard$60

To show each order's list price, put this in K2 and copy it down:

=VLOOKUP(D2, $P$2:$Q$4, 2, FALSE)→ $1,200

Without the dollar signs, the table slides down too. Row 3 still finds Monitor in P3:Q5, but row 4 looks for Laptop in P4:Q6, which only holds Keyboard:

=VLOOKUP(D4, P4:Q6, 2, FALSE)→ #N/A

XLOOKUP and INDEX and MATCH work the same way. Lock both ranges:

=XLOOKUP(D2, $P$2:$P$4, $Q$2:$Q$4)→ $1,200
=INDEX($Q$2:$Q$4, MATCH(D2, $P$2:$P$4, 0))→ $1,200

The VLOOKUP, XLOOKUP and INDEX and MATCH guides cover each function in detail.

Common mistakes with cell references

ProblemWhat's going onFix
Only the first row is right, the rest show 0 or huge numbersThe rate cell moved down as you copiedLock it: $H$1
Every row shows the same answerA reference that should move is locked, like $F$2 or $D$2Take the dollar signs off the row-by-row reference
#N/A from a VLOOKUP that works in the first rowsThe lookup table slid down past the valueLock the table: $P$2:$Q$4
COUNTIF or SUMIF results are too low further downThe ranges slid down and dropped the top rowsLock the ranges: $B$2:$B$11
A grid is right in its first column but wrong in the othersThe formula needs mixed references, and one is locked the wrong wayLock the column of the values down the side ($F2) and the row of the values across the top (H$1)
F4 formats a cell or deletes a rowYou weren't editing a formula, so F4 repeated your last actionDouble-click the cell first

Frequently asked questions about cell references

What does the $ sign mean in an Excel formula?

It locks the part of the reference that comes right after it. $H$1 locks both the column and the row, $H1 locks only the column, and H$1 locks only the row. It doesn't change the value or the formatting, and it doesn't mean dollars.

Does $A$1 change when I insert or delete rows?

Yes. Dollar signs stop a reference from changing when you copy a formula, but Excel still updates it when the sheet changes shape. Insert a row above row 1 and $H$1 becomes $H$2, so it keeps pointing at the rate. If you delete the row that holds the cell, the formula returns #REF!.

Why didn't my references change when I moved the formula?

Moving isn't copying. Cut and paste, or dragging a cell by its border, keeps the formula exactly as it was. Copy and paste, the fill handle and Ctrl+D in Excel for Windows all adjust the relative references.

Is there a way to avoid dollar signs?

Two. You can name the cell: click H1, type a name such as CommissionRate in the Name Box to the left of the formula bar, and press Enter. Then =F2*CommissionRate copies down without any dollar signs, because a name always points at the same cell.

In Microsoft 365 and Excel 2021 or later, you can also skip copying. One formula in H2 works on the whole column and spills the results into the cells below:

=F2:F11*H1→ 180, 62.5, 120, 36, 50, 24, 240, 75, 60, 87.5

Do references work the same in every version of Excel?

Yes. Relative, absolute and mixed references work the same way in every version of Excel, on Windows and Mac, and in Excel for the web. Google Sheets uses the same A1, $A$1, $A1 and A$1 references, and they change the same way when you copy a formula. For Microsoft's own examples, see Switch between relative, absolute, and mixed references.

For more practice, the basics topic has a free average order size exercise on the same sales data, plus Premium exercises on revenue per unit and share of the total. The free SUMIF exercise is a good next step for working with ranges.

Key takeaways

  • A relative reference like A1 changes when you copy a formula. An absolute reference like $A$1 doesn't.
  • $A1 locks only the column and A$1 only the row. Use them when a formula is copied both down and across.
  • Press F4 while editing a reference to cycle through the four types. In Excel for Mac, Cmd+T works too.
  • Lock rates, totals, lookup tables and criteria ranges, and leave the reference to the current row relative.

Practice

Keep going with SUM exercises

Reading gets you started. Solving a few of these is what makes it stick.

  1. 1Total revenueFreeWhat was the total revenue for all orders?→
  2. 2Average order sizeFreeOn average, how many units were sold per order?→
  3. 3Revenue per unit PremiumWhat was the average revenue per unit across all orders? Round it to 2 decimal places.→
  4. 4Share of the total PremiumWhat share of all the items sold over the six months were pastries?→
  5. 5Revenue for one regionFreeWhat was the total revenue from the North region?→
All basics & math exercises →
Brian Millot

About the author

Brian Millot

Brian Millot is an indie hacker based in France who builds small, focused web products. He built and runs Excel Formula Practice, from the in-browser spreadsheet that checks your formulas to the exercise library, and he writes the formula guides.

Related guides

Practice makes formulas

Stop reading. Start typing formulas.

Every exercise is a real spreadsheet with instant feedback. The first two in every topic are free, no sign-up needed.