How to Autofill VLOOKUP Correctly in Excel

VLOOKUP function is extremely strong among excel all functions. We often use it in our work for looking up match value. Sometimes when we autofill VLOOKUP we may get some errors. For most situations that’s because the selected range is entered incorrectly or changed automatically during filling process. This tutorial will help you to enter absolute reference or range name in VLOOKUP formula, then we can make sure autofill VLOOKUP function applies for all cells and works well, no error will be displayed.

Method 1: Autofill VLOOKUP Correctly by Entering Absolute Reference in Formula

First, let’s see an example. In below table, we want to get match ‘Score’ from table E1:H11 for ‘Name’ in A column, and record the returned value in B column accordingly. So we can use VLOOKUP function here. After entering =VLOOKUP(), we can select A2 and range F2:H11 to fill the formula, then type 3 and FALSE to complete the formula.

Autofill VLOOKUP 1

We can get the correct result A in B2 properly.

Autofill VLOOKUP 2

Drag the fill handle to B3:B6. Noticed that we get some errors.

Autofill VLOOKUP 3

Click B5 to check the formula. Noticed that reference (for table_array) is updated to F5:H14 automatically as relative reference is set up for cells by default. In this case, for Calvin, it is not included in its relative reference, so we get improper result here.

Autofill VLOOKUP 4

Above all, we need to keep table_array with a fixed value, so we need to update selected range as an absolute reference here, then autofill VLOOKUP will work properly.

Step 1: In B2, enter the formula =VLOOKUP(A2,$F$2:$H$11,3,FALSE). After selecting range F2:H11, add $ manually before each character.

Autofill VLOOKUP 5

Step 2: Drag fill handle down to fill other cells in B column. Verify that $ is copied with formula to other cells as well, and F2:H11 is not changed anymore in formula after adding $.

Autofill VLOOKUP 6


In step 1, we can also press F4 after entering the formula, $ will be auto added in the formula.

Method 2: Autofill VLOOKUP Correctly by Entering Range Name in Formula

Step 1: Select the range you want to apply VLOOKUP function, make sure the match value is listed in the first column in your selected range. In this example select F2:H11, then in Name Box (next to formula bar) type a name for this selected range, we name it ‘Range’ here.

Autofill VLOOKUP 7

Step 2: In B2, enter the formula =VLOOKUP(A2,Range,3,FALSE). You can see that when you entering ‘Range’ in formula, range table will be auto displayed properly.

Autofill VLOOKUP 8

Step 3: Drag fill handle down to fill other cells in B column. All cells are filled with VLOOKUP properly and get correct values.

Autofill VLOOKUP 9

Related Functions

  • Excel VLOOKUP function
    The Excel VLOOKUP function lookup a value in the first column of the table and return the value in the same row based on index_num position.The syntax of the VLOOKUP function is as below:= VLOOKUP (lookup_value, table_array, column_index_num,[range_lookup])….



Related Posts

Build Hyperlink With VLOOKUP in Excel

You might have come across a task in which you were assigned to build hyperlinks, which seems very easy, and if you are new to excel or don't have enough experience with it, then you might wonder about doing this ...

Calculate Total Cost with Excel VLOOKUP Function

In today's article we will show you how to calculate the total cost for a given weight using the Excel VLOOKUP function. This function will help us to find the appropriate unit price for that weight and then we can ...

Basic Price Discount Calculation with Excel VLOOKUP Function

We often encounter product discounts in our shopping. Depending on the level of spending, the mall will offer different percentages of discounts. Usually, the more you spend, the bigger the discount, while the less you spend, the smaller the discount. ...

Calculate Grades With VLookup in Excel

Why Should You Calculate Grades With VLookup Excel? If you're looking for a simple way to find out a student's grades, VLOOKUP Excel can do the trick. This function uses a lookup table to find the values and sort them ...

Convert State Names To Abbreviations
abbr state names1

Assume that you got a task to convert the full state's name into the abbreviations in MS Excel, and for doing this task, you might choose to do it manually, which is an acceptable way only if you don't have ...

Find and Replace Multiple Values
find replace multiple values5

This post will guide you how to find and replace multiple values at once with VBA macro or using formula  in Excel. How do I make multiple find and replace in Excel. Suppose that you have a few cells containing ...

Excel XLOOKUP Function

Excel XLOOKUP Function was added into Excel as a beta feature in August 2019 and is now accessible exclusively in Microsoft 365. (as of July 2021). However, if you fall into this category and often deal with big sets of ...

VLOOKUP Formula | Faster Trick with 2 VLOOKUPS

This post will guide you how to use 2 VLOOKUPS function to looking up data entries from a given range of cells in Microsoft Excel. VLOOKUP with 2 lookups can be faster than a single VLOOKUP in certain scenarios. The ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...