logo
search
Function Problems

How to Fill a VLOOKUP Formula Down a Column in Excel

Maira MehtabMaira Mehtab Sep 22, 2026 868 views

Question details

The user needs to copy a VLOOKUP formula down an entire column to match data sets without the lookup table array shifting.

Product
Spreadsheet
Device & OS
not provided
Scenario
Matching lookup values (like ZIP codes) to a reference table to extract associated data (like account representatives) across multiple rows.
Observed behavior
When the VLOOKUP formula is dragged down without modifying the references, the table array shifts relatively, causing #N/A errors. The goal is to keep the lookup range fixed while letting the lookup value change relatively.
Before you start

Ensure that your lookup table array is fully populated and that the common identifier is located in the first column of your selected range.

Solution 1Recommended

Lock the Lookup Table with Absolute References

Use absolute cell references (adding dollar signs) to freeze the table array so it remains constant when the formula is dragged down.

When you drag a formula down a column, spreadsheet applications automatically adjust the row numbers relative to the new cell position. While this is perfect for the lookup value, it breaks the VLOOKUP formula because the lookup table range also moves down, missing vital data.

To prevent the table array from shifting, you must lock its position using absolute references, denoted by dollar signs ($).

1
Enter the base formula

Select the top cell of your target column (e.g., D2) and begin typing your VLOOKUP formula: =VLOOKUP(A2,

2
Select and lock the table array

Highlight your lookup data range (e.g., B2:C19). Immediately press the F4 key on your keyboard. This will convert the relative reference B2:C19 into the absolute reference $B$2:$C$19.

3
Complete the VLOOKUP formula

Add the column index number and the exact match indicator. Your finished formula should look like this: =VLOOKUP(A2,$B$2:$C$19,2,FALSE).

4
Fill the formula down

Press Enter to execute the formula. Click on the cell again, hover over the small square in the bottom-right corner (the fill handle), and either drag it down the column or double-click to auto-fill to the bottom.

Understanding the References: In the formula =VLOOKUP(A2,$B$2:$C$19,2,FALSE), 'A2' is a relative reference that will become A3, A4, etc., as it goes down. '$B$2:$C$19' is absolute and will stay exactly the same for every row.
Easily Manage Data with WPS Spreadsheet

Use VLOOKUP and Fill Down Effortlessly in WPS Office

WPS Spreadsheet seamlessly handles complex lookup functions just like Excel. With intelligent auto-fill capabilities and absolute reference shortcuts, processing large datasets is incredibly fast.

  1. 1. Open your data file: Launch WPS Spreadsheet and open the document containing your tables.
  2. 2. Type the VLOOKUP formula: In the target cell, enter =VLOOKUP( and select your specific lookup value.
  3. 3. Lock references and auto-fill: Highlight the lookup array, press F4 to apply dollar signs ($), finish the formula, and double-click the cell's fill handle to apply it down the column.
100% compatible with Microsoft Excel formulas, functions, and formatting.Intuitive keyboard shortcuts like F4 to quickly apply absolute references.Double-click auto-fill handles to populate thousands of rows instantly.Free to use, highly efficient, and lightweight on system resources.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my VLOOKUP return #N/A when I drag it down?

This happens when the table array is not locked. As you drag the formula down, the reference range moves down alongside it, eventually pointing to empty rows. You can fix this by highlighting the table array in your formula and pressing F4 to convert it to an absolute reference (e.g., changing B2:C19 to $B$2:$C$19).

How can I quickly fill the formula down to the bottom of a large dataset?

Instead of manually clicking and dragging the formula for hundreds of rows, select the cell containing your completed VLOOKUP formula and double-click the small square (fill handle) in the bottom right corner of the cell's border. The spreadsheet will automatically fill the formula down as far as there is adjacent data.

Do I need to lock both the row and column in the VLOOKUP table array?

If you are only dragging the formula down vertically, you strictly only need to lock the rows (e.g., B$2:C$19). However, locking both the rows and columns ($B$2:$C$19) is best practice as it prevents the array from shifting if you decide to copy the formula horizontally as well.