How to autofill VLOOKUP in Excel?
VLOOKUP function is useful in Excel, but when you drag the autofill handle to fill range with a VLOOKUP formula, there may appear some errors. Now this tutorial will tell you the correct way to auto fill VLOOKUP function in Excel.
Quickly Split one cell into columns or rows based on delimiter
|In Excel, to split a cell into columns is tedious with the Wizard step by step. But with Kutools for Excel's Split Cells utility, you can: 1,convert one cell into columns or rows based on delimiter; 2,convert string into text and number; 3,convert string based on specific width, with clicks. Click for full-featured 30 days free trial!|
|Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.|
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words...
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum...
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns...
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Create Mailing List and Send Emails by Cell's Value...
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
For example, you may use the VLOOKUP formula like this =VLOOKUP(B2,A8:B14,2), then you drag the auto fill handle to a range you need, you may get the wrong results as below screenshot shown:
But if you use absolute reference instead of the relative reference in the table array part of the formula, the autofill results will be correct.
Type =VLOOKUP(B2,$A$8:$B$14,2) into the cell you need, and drag the auto fill handle to a range you need, you will get the correct results. See screenshot:
The syntax of the above VLOOKUP: VLOOKUP(lookup_value, table_array, col_index_num)
Addition to using absolute reference in the formula, you also can use the range name to instead of the relative reference in the table array part of formula.
1. Select the table array range, then go to the Name box and type Marks (or any name you want) and press the Enter key. See screenshot:
Tip: Table array range is the range that contains the criteria you need to use in the VLOOKUP function.
2. In a cell type this formula =VLOOKUP(B2,Marks,2), then drag the auto fill handle to a range you need to apply this formula, and the results are correctly gotten.
|Kutools for Excel, with more than 300 handy functions, makes your jobs more easier.|
Flip Vertical Range/Horizontal Range
|With Kutools for Excel's Flip Range utility, you can quickly flip data horizontally or vertically as you need.|