Quick answer
If a VLOOKUP formula works in one row but fails after being copied down, its table range may be shifting. Lock the lookup table with absolute references ($) while leaving the per-row lookup key relative.
=VLOOKUP(E2,$A$2:$C$100,3,FALSE)
When you fill this down one row, E2 becomes E3, but $A$2:$C$100 stays the same. Google recommends absolute references for VLOOKUP ranges.
Why it happens
Spreadsheet references are relative by default. This formula:
=VLOOKUP(E2,A2:C100,3,FALSE)
may become =VLOOKUP(E3,A3:C101,3,FALSE) on the next row. That excludes the first data row and adds a different final row. If the key lives in the removed row, a later lookup can show #N/A.
Correct the range
| Reference | What happens when copying down |
|---|---|
A2:C100 | Both row bounds move |
$A$2:$C$100 | Rows and columns stay fixed |
E2 | The row changes for each lookup |
$E$2 | Always uses exactly the same key cell |
Keep the last one only if every formula intentionally uses the same input. Most row-by-row lookups need E2, E3, E4, and so on.
Step-by-step fix
- Open the first correct formula and identify the lookup range.
- Put
$before the column letters and row numbers of that range. - Keep the first lookup argument relative if it should follow the current row.
- Fill the corrected formula down, then inspect one middle and one bottom row.
- Confirm the
indexstill points to the intended return column.
If the source table grows
A fixed end row such as $A$2:$C$100 will not include new rows beyond 100. Choose a sufficiently maintained range or a deliberate open-ended range such as $A$2:$C, keeping performance in mind for very large sheets. Don’t change to a full-column range without considering calculation cost.
Common mistakes
- Locking everything, including the lookup key, so every copied row returns the same record.
- Locking only the top-left cell and allowing the bottom of the table range to move.
- Forgetting that the return-column index starts at 1 from the selected range’s first column.
Sources
Editorial note: Examples are illustrative and based on the linked documentation; no firsthand product test is claimed.