VLOOKUP Fixed Lookup Range: Detailed Explanation of Absolute Reference Syntax
Explain why the lookup range shifts after you copy a VLOOKUP formula, and how to lock the lookup range with absolute references, the F4 key, and whole-column references. Also provide a item-by-item checking method.
Key Points of This Article
- The lookup range in VLOOKUP should be fixed with absolute references, such as $B$2:$D$100, while the lookup value keeps a relative reference, such as A2.
- When you copy the formula down, a relative lookup range shifts down row by row, so later rows may search the wrong range or return #N/A.
- After selecting a range address, press F4 to quickly switch reference types. On a Mac the key may differ, or you can type the dollar signs manually.
- If data will be appended to the lookup table, use whole-column references or Excel table structured references, which are more convenient than fixed row numbers.
- After writing a formula, spot-check a few rows for their addresses, error values, and returned columns, and only hand it to others once you've confirmed it is correct.
Many people use VLOOKUP to find the first record, then drag the formula down, only to find that the rows below start showing #N/A, or the numbers returned are clearly wrong. The problem usually lies not in the function itself, but in the fact that the lookup range shifts along with the formula. This article is written for people who often do data reconciliation, quotation matching, and score summarization. It explains how to fix the lookup range in the VLOOKUP function, so that wherever the formula is copied, it always points to the same lookup table.
After reading this, you will be able to do three things: decide which parameters should be fixed, quickly add dollar signs using the F4 key or by typing them manually, and check the results item by item after dragging to fill. The principle is not complicated, but choosing the wrong parameter will cause results to go wrong silently, so each step below explains the reasoning.
How to fix the lookup range in VLOOKUP? One-sentence answer
Use absolute references: add dollar signs before the column letters and row numbers of the lookup range, for example change B2:D100 to $B$2:$D$100; keep the lookup value as a relative reference, such as A2, so that each row can find its own corresponding content.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| Lookup table range is fixed; only copy the formula downward. | The lookup range is written as $B$2:$D$100 | When copying, the area address does not move down along with it. |
| A lookup table keeps appending new rows. | Use the entire column reference, such as $B:$D | Newly added rows are automatically included in the lookup range |
| The lookup table has been converted to an Excel table | Structured references in tables | After the table is expanded, the references are updated accordingly. |
| The lookup value must change with each row. | Keep relative references like A2 in lookup values | Each row can be searched using its own keyword. |
Before You Begin: Confirm These Points
- The lookup column must be on the left of the lookup range. VLOOKUP can only search from the left end of the range and look to the right. If the key field is in the middle or on the right, the formula returns a wrong result or #N/A. In that case, adjust the range or use a different lookup function.
- Check whether the lookup table will grow. If the table currently has only 99 rows but the range is fixed as $B$2:$D$100, a row 101 added later will not be found. When the data may grow, a whole-column reference or an Excel table is more reliable.
- Check the data types on both sides. If the lookup value is text while the lookup table holds numbers (or the reverse), no result will be found even when the two look identical. This often happens with data copied from web pages or PDFs, which may contain extra spaces or inconsistently formatted numbers. If the data comes from a table in a PDF, you can first export it to Excel format with the PDF editor in the OmniDoc desktop client, then process it in the spreadsheet. Content recognized by OCR should be checked item by item.
- Decide on the match type. For an exact match, set the fourth argument to FALSE or 0. If this argument is omitted, the function defaults to an approximate match, and when the lookup table is not sorted, the results are very likely to be wrong.
Steps to Fix the Lookup Range in Excel
- In the first cell of the result column, type
=VLOOKUP(, then click the lookup value for the current row, for example A2. - Type a comma, then drag to select the lookup table range with the mouse, for example B2:D100. The formula bar now shows relative addresses.
- Keep the cursor on the range address and press F4. The address will cycle through different reference types until it shows $B$2:$D$100. On some Mac versions, F4 may be reserved for a system function. In that case, press Fn+F4, or type the dollar signs manually.
- Continue by typing the column index and match mode, for example
2,FALSE), then press Enter. The column index specifies which column of the returned range to return. Here, 2 corresponds to column C. - Check that the lookup value A2 is still written without dollar signs. If dollar signs were added to it by mistake, it will not change as the formula moves to other rows.
- Drag the fill handle or double-click it to copy the formula to other rows.
- Click into the formulas of a few rows and confirm that the lookup range is always $B$2:$D$100, not a shifting address such as $B$3:$D$101.
- If the lookup table is in another worksheet, write the range in the form "SheetName!$B$2:$D$100", and add the dollar signs in the same way.
Check each item after finishing
| Check item | How to check | What to do if there's a problem |
|---|---|---|
| Check lookup range address | Open the multi-row formula and see whether the range is always $B$2:$D$100 | If the address changes, it means the dollar signs were missed; go back to the first row, fix it, and fill down again |
| Error value | Does #N/A appear in the entire column | Check whether the lookup value exists in the leftmost column of the lookup table, remove extra spaces, and unify data types |
| Returned column | Compare the extracted rows against the original table manually | If the column index is counted wrong, adjust the third argument in the formula |
| Duplicate keyword | Checks whether the lookup value is duplicated in the table | VLOOKUP only returns the first matching item, so duplicate data needs to be organized first |
| Data coverage range | Whether formula results remain correct after new data is added | If not covered, switch to whole-column references or an Excel table |
📊 Core Comparison
Several common reference styles used when writing formulas, each suited to different scenarios:
| Writing method | Example | Behavior after copying the formula | Suitable scenarios |
|---|---|---|---|
| Relative reference | B2:D100 | Rows in the area shift down one by one, and the later rows then look up the wrong range. | Only query one row, no need to copy |
| Absolute reference | $B$2:$D$100 | The region address remains fixed and unchanged. | Lookup table range stability |
| Mixed citation | $B2:$D100 | Only the columns are locked; row numbers will still change. | When copying horizontally, the columns need to remain unchanged. |
| Aligned citation | $B:$D | Area covers the entire column, automatically including newly added rows | Data continuously appended |
❓ Frequently Asked Questions (FAQ)
1. Is it OK to add just one dollar sign?
Yes, but it depends on the direction of copying. $B2:$D100 locks only the column, which suits copying left and right; when copying downward, you usually also need to lock the row number, so in most cases you should write $B$2:$D$100.
2. The range is locked, so why am I still getting #N/A?
Locking the range solves the problem of the range shifting, but #N/A usually means the lookup value cannot be found in the leftmost column of the lookup table. First check both sides for extra spaces, and whether text and numbers match, then confirm that the match type is set to FALSE.
3. What if the lookup table gets many more rows later on?
Use whole-column references, such as $B:$D; or convert the data range into an Excel table and use structured references. This way, newly added rows are automatically included in the lookup range, so you don't have to keep modifying the formula.
4. Are search results reliable for tables copied from a PDF?
Content copied from a PDF or recognized by OCR may have misaligned columns, missing characters, or misread digits. Before searching, spot-check key figures, and compare important data item by item against the original file.
📝 Summary
VLOOKUP errors after copying are mostly caused by the lookup range shifting along with the formula. Add absolute references to the lookup range, keep the lookup value as a relative reference, and each row will find the correct data. When the data may grow, switch to whole-column references or an Excel table.


