Keep Excel VLOOKUP Pointing to the Original Column After Insertion
Question details
Keep a VLOOKUP formula returning values from the same source column after columns are inserted.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains a VLOOKUP formula whose return column may move when a new column is inserted into the lookup range.
- Observed behavior
- A fixed column index continues to point to the same position in the lookup range, which may no longer be the original return column.
Identify the first column of your VLOOKUP range and the column you want to return. The lookup value must be in the first column of the range.
Use COLUMNS to Create a Dynamic VLOOKUP Index
Use this method when inserting columns between the lookup column and the return column may change the return column's position.
COLUMNS counts the columns from the start of the lookup range through the return column. When a column is inserted within that reference, Excel expands it and updates the index.
Click the cell containing your VLOOKUP formula, then select the formula bar to edit it.
Replace the numeric column index with a COLUMNS reference spanning from the first lookup column through the return column. For example, enter =VLOOKUP("c",A2:F20,COLUMNS(A2:E2),FALSE) and press Enter.
Right-click the E column header and select Insert. The original column E moves to F, and COLUMNS(A2:E2) updates to COLUMNS(A2:F2), keeping the formula pointed at the original return column.

Keep VLOOKUP References Flexible in WPS Spreadsheet
Use VLOOKUP with COLUMNS in WPS Spreadsheet to keep returning values from the original column as columns are inserted into the lookup range.
- 1. Open your workbook: Open WPS Spreadsheet and use Open to select your workbook.
- 2. Edit the formula: Select the VLOOKUP cell and enter =VLOOKUP("c",A2:F20,COLUMNS(A2:E2),FALSE) in the formula bar, adjusting the ranges to match your data.
- 3. Insert a column: Right-click a column header between the lookup column and the return column, then select Insert.
- 4. Check the result: Select the formula cell and check the formula bar to confirm that the COLUMNS reference expanded and the result still comes from the intended column.

Frequently Asked Questions
Why does VLOOKUP return the wrong column after I insert one?
A fixed index such as 5 still selects the fifth column of the lookup range. Replace it in the formula bar with a COLUMNS reference that ends at the original return column.
What does COLUMNS(A2:E2) return?
It returns 5 because the reference spans columns A through E. If you insert a column before E, the reference expands to A2:F2 and returns 6.
Does the lookup value have to be in the first column?
Yes. VLOOKUP searches the first column of the lookup range. For A2:F20, place the lookup values in column A.
What does FALSE do in the VLOOKUP formula?
FALSE tells VLOOKUP to find an exact match. If the value is not found in the first column of the lookup range, the formula returns an error.




