Hands-On Excel

Hands-On Excel Challenges Mixed references

Excel mixed reference practice

=$A2*B$1 locks only the column of the first reference and only the row of the second. Copied right, it keeps using column A. Copied down, it keeps using row 1. One formula fills the whole grid.

AdvancedAbout 3 minutesFree, no sign-upBy Updated

Try it yourself

05 · Mixed references · Advanced

Lock just the row or the column

Fill in the tip chart: each cell is the bill in column A times the tip rate in row 1. Write one formula in B2 that still works when you copy it right and down, then fill it across B2:E6.

$A2 locks only the column, so the bill stays in column A as you copy right. B$1 locks only the row, so the rate stays in row 1 as you copy down. Select B2:E2 and press Ctrl+R to fill right, then select B2:E6 and press Ctrl+D to fill down.

tips.xlsx
Ready

Write in the green cells, then press Check. Click a cell while typing to insert it, drag to select a range, F4 adds $, Esc cancels.

The guide · Mixed references

When one kind of $ isn't enough

In the absolute reference challenge, every row used the same tax rate, so $F$1 locked it completely. A chart is different. Each cell needs its own bill, from column A on its row, and its own rate, from row 1 in its column. Lock both references fully and every cell shows the same number. Lock nothing and the references wander off. You need to lock half of each.

Read the $ as "stay"

The $ sits in front of the part that must not change: the column letter, the row number, or both.

ReferenceCopied rightCopied down
$A2stays in column Arow changes
B$1column changesstays in row 1
$A$2stays A2stays A2
A2column changesrow changes

Worked example: a tip chart

The bills are in A2:A6 and the tip rates in B1:E1. In B2, =$A2*B$1 is the $20 bill at 10%: $2.00. Copy it to D4 and it becomes =$A4*D$1, the $50 bill at 18%: $9.00. The $ before the A keeps the bill in column A. The $ before the 1 keeps the rate in row 1. Everything else moves with the cell.

How to fill a grid

  1. Write the formula in the top-left cell, B2.
  2. Select B2:E2 and press Ctrl+R to fill right.
  3. Select B2:E6 and press Ctrl+D to fill down.

Dragging the fill handle right and then down does the same. Then click the cell in the far corner and read its formula. E6 should say =$A6*E$1.

F4 cycles through all four

While editing a formula, put the cursor on a reference and press F4 (on a Mac, ⌘+T in Excel). Each press moves on: A2 → $A$2 → A$2 → $A2 → A2. It works in this practice sheet too.

Common mistakes

FAQ

What is a mixed reference in Excel?
A reference with one dollar sign. $A2 locks the column and lets the row change; A$2 locks the row and lets the column change.
When do I use $A1 and when A$1?
Ask which way the formula is copied. A value in a column you must stay in as you copy right, like bills in column A, needs the column locked: $A1. A value in a row you must stay in as you copy down, like rates in row 1, needs the row locked: A$1.
How do I make a multiplication table in Excel?
Put 1 to 10 in A2:A11 and again in B1:K1. In B2 write =$A2*B$1, then fill right to K2 and fill down to row 11.
Why does my formula show the same number in every cell?
Both references are fully locked, like $A$2*$B$1, so every copy points at the same two cells. Lock only the column of one and the row of the other: =$A2*B$1.

All challenges

  1. 01 Add it upSUM Starter · 3 min
  2. 02 Find the averageAVERAGE Starter · 3 min
  3. 03 Write once, fill downRelative references Starter · 3 min
  4. 04 Lock it with $Absolute references Core · 3 min
  5. 05 Lock just the row or the columnMixed references Advanced · 3 min
  6. 06 Percent of a totalPercentages Starter · 3 min
  7. 07 Up or down by how much?Percent change Core · 3 min
  8. 08 Select to the end in one moveCtrl + Shift + arrow Core · 3 min
  9. 09 Pass or fail?IF Core · 3 min
  10. 10 Both or either?AND, OR Core · 3 min
  11. 11 Grade bands with nested IFNested IF Core · 3 min
  12. 12 Count the ones that matchCOUNTIF Core · 3 min
  13. 13 Add up the ones that matchSUMIF Core · 3 min
  14. 14 Use a cell as the conditionCriteria in a cell Core · 3 min
  15. 15 Count with two conditionsCOUNTIFS Core · 3 min
  16. 16 Add up with two conditionsSUMIFS Core · 3 min
  17. 17 Look it upVLOOKUP Core · 3 min
  18. 18 Find the right bracketVLOOKUP approximate match Core · 3 min
  19. 19 XLOOKUP, the modern wayXLOOKUP Core · 3 min
  20. 20 Where is it in the list?MATCH Core · 3 min
  21. 21 INDEX and MATCH togetherINDEX + MATCH Advanced · 3 min
  22. 22 Catch the error, not the bugIFERROR Core · 3 min
  23. 23 Split first and last namesLEFT, MID + FIND Core · 3 min
  24. 24 Mistake hunt: #N/A everywhereFixing #N/A Core · 3 min
  25. 25 Mistake hunt: hard-coded numbersReferences instead of typed numbers Core · 3 min
  26. 26 Mistake hunt: numbers stored as textNumbers stored as text Core · 3 min

Pro · coming soon

From first formula to job-ready.

100+ challenges on lookups, pivot tables, dates and text cleanup, an interview track modeled on the Excel tests employers use, and your progress saved across devices.

$29 one-time · early-bird price

You won't be charged today.

You're early!

Pro isn't open yet. We're building it right now. Leave your email and we'll hold the $29 early-bird price for you and tell you the day it launches.

We'll email you a link to confirm, then one email when Pro launches. Privacy