Function Problems

How to Make Excel VLOOKUP Column Numbers Increase Automatically

Muhammad TalhaMuhammad Talha Nov 3, 2026 868 views

Question details

The user needs the column index number in a VLOOKUP formula to automatically increase when copying or dragging the formula to other cells, avoiding manual number updates.

How to Make VLOOKUP Column Numbers Increase Automatically
Product
Excel
Device & OS
not provided
Scenario
Dragging or copying a VLOOKUP formula down rows or across columns to extract multiple data points from a large dataset.
Observed behavior
When filling the formula, the column index number remains static and repeats the same value, requiring manual editing for each row or column.
Before you start

Ensure your VLOOKUP lookup range is locked with absolute references (using the $ sign, e.g., $A$2:$AD$200000) so the data table does not shift when you copy the formula.

Solution 1Recommended

Use the ROW() or COLUMN() Function for Dynamic Indexing

Replace the static column index number in your VLOOKUP formula with the ROW() or COLUMN() function to force it to auto-increment as you drag it.

The ROW() function returns the row number of a referenced cell. By placing ROW(A2) in the column index argument, it outputs 2. When dragged down, it changes to ROW(A3), outputting 3, effectively incrementing the VLOOKUP column index automatically.

1
Select the target cell

Click on the cell where you want to insert the first VLOOKUP formula.

2
Enter the dynamic VLOOKUP formula

Type your formula using ROW() for the column index. For example: =IFERROR(VLOOKUP($B$1, Sheet1!$A$2:$AD$200000, ROW(A2), FALSE), ""). Press Enter to apply.

3
Drag the fill handle

Click and drag the small square at the bottom-right corner of the cell downwards. The ROW reference will dynamically update (A2, A3, A4), changing the column index automatically.

Use the ROW() or COLUMN() Function for Dynamic Indexing
Horizontal Incrementing: If you are dragging the formula across columns horizontally instead of down rows, use the COLUMN() function (e.g., COLUMN(B1)) to increment the numbers from left to right.
Advanced Spreadsheet Functions

Master VLOOKUP and Advanced Formulas with WPS Spreadsheet

WPS Spreadsheet fully supports VLOOKUP, ROW, COLUMN, and all standard Excel formulas. You can easily drag and drop to auto-fill complex sequences with complete cross-compatibility.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your existing data file.
  2. 2. Input the dynamic formula: Type your VLOOKUP formula replacing the static column number with ROW(A2) or COLUMN(B1).
  3. 3. Use smart auto-fill: Click and drag the green fill handle across your target range. WPS Spreadsheet instantly auto-increments the column indexes.
100% compatible with Microsoft Excel formulas and .xlsx formatsIntelligent auto-fill handle for instant sequential data generationFree, lightweight, and fast processing for massive lookup datasetsFamiliar user interface requiring zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why does my VLOOKUP return an error when I drag it down?

This usually happens because the table array reference is not locked. When you drag the formula, the lookup range shifts. Select your table array in the formula and press F4 to add dollar signs (e.g., $A$1:$D$100) to make it an absolute reference.

Can I use the MATCH function instead of ROW or COLUMN to find the column index?

Yes. Combining VLOOKUP with MATCH (e.g., =VLOOKUP(A2, Data!$A$1:$E$100, MATCH(B$1, Data!$A$1:$E$1, 0), FALSE)) allows you to dynamically look up the exact column by its header name, which is often more robust if columns might be inserted or deleted later.

Why does my number sequence repeat instead of increasing when I use the fill handle?

If you are typing 1, 1, 1 when dragging a number, click the small AutoFill Options box that appears after dragging and select 'Fill Series'. To automatically fill a series without the menu, hold down the Ctrl key while dragging the fill handle.