Practice problems / Lookup & Reference

Fix #REF!: the freight lookup points at a deleted sheet

Medium Lookup & Reference Debug
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

Diagnose before you fix

Symptom F2 shows #REF! even though the zone table is visible on the sheet.
Cause The second argument of VLOOKUP names a sheet that was deleted, so the range it points at no longer exists.
Repair Point the range argument at the pasted copy A2:C6 on this sheet. Keep the exact-match setting.

The problem

Problem statement

The freight cost in Freight cost cell F2 shows #REF! instead of a number. The zone table is right there in A2:C6 — a copy of the rates sheet that was deleted this morning. Diagnose the dead reference and aim the formula at the copy that survived.

Repair the formula only — the deleted sheet cannot be restored.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABCEF
1 ZoneRegionCost per shipmentZoneFreight cost
2 N-1North45S-1
3 S-1South58
4 E-1East62
5 W-1West71
6 C-1Central54

Notes

#REF! means a formula points at a range that no longer exists. This VLOOKUP still names Rates!$A$2:$C$6, a sheet that was deleted after the report was built, so the second argument is dead and the lookup never runs. The same table was pasted into A2:C6 of this sheet; aiming the range there revives the formula. The 3 in the third argument counts columns inside the new range: Zone → Region → Cost.

How to approach

Your answer goes in F2. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Target cell is F2 — the current formula returns #REF!
  2. A deleted reference means the range argument no longer exists
  3. The zone table survived on this sheet, even if the sheet the formula names did not
  4. Shape: =VLOOKUP(E2, ?, 3, FALSE)

Official solutions

Show 2 solutions — try it yourself first

Approach 1: locked local range

=VLOOKUP(E2,$A$2:$C$6,3,FALSE)

The pasted copy covers A2:C6 on this sheet. Pointing the second argument at it revives the lookup; $ keeps the range fixed if the formula is copied down.

Approach 2: relative range

=VLOOKUP(E2,A2:C6,3,FALSE)

The same repair without $. Fine for a single cell; add the locks once you fill the formula down.

Function guide

Related practice

FAQ

What does #REF! mean?

A reference in the formula points at something that no longer exists — a deleted column, row, sheet or range. The formula is structurally valid, but its target is gone.

Why not bring the deleted sheet back?

Sometimes you cannot: the sheet was deleted in a shared file and nobody kept a copy of its original layout. Re-aiming the range at the surviving table is the portable fix, and it is what this exercise asks for.