The VLOOKUP function in Excel can be used for almost all versions from old to new because it is one of the basic formulas in Excel. However, not everyone knows how to use the Vlookup function to reconcile data problems.
Formula and usage guide for the Vlookup function in Excel
I. Understanding Vlookup Function in Excel
VLOOKUP is a function that searches for values by column and returns the result vertically in Excel. It can be considered a fundamental and commonly used Excel function for users to analyze and search for data accurately by column.
II. Formula of Vlookup Function in Excel
- Formula of Vlookup Function
- =VLOOKUP(Lookup_value, Table_array, Col_index_num, Range_lookup)
Essential components of VLOOKUP function in Excel: - Lookup_value: Value to search for. - Table_array: The range to search within. - Col_index_num: The column from which to retrieve data, counted from left to right. - Range_lookup: Search range, TRUE or FALSE. If Range_lookup = 1 (TRUE): approximate lookup. If Range_lookup = 0 (FALSE): exact lookup. If omitted, Excel defaults to Range_lookup = 1.
III. How to Use Vlookup Function in Excel
Understanding the usage of Vlookup function in Excel is simplified with specific examples of approximate and exact lookups.
1. Using Vlookup function in Excel for approximate lookup
- Example: Mytour has a grade table shown below. Determine grades based on the criteria of table 2.
Enter the formula =VLOOKUP(D4,$B$11:$C$15,2,1) into cell E4 under the column Ranking. Excel will now retrieve the score from cell D4 and search in table 2. The result returned in E4 is Excellent.
+ Symbol $: Used to lock rows and columns of table 2 when users copy the formula to other cells.
+ 2: Represents the column number of the data.
+ Range_lookup = 1 (TRUE): Searches approximately for the nearest value.
You simply need to copy the formula to other cells or use Flash Fill to successfully rank scores for other members.
2. Utilizing Vlookup function in Excel for precise searching
- Below is an example of employee allowance table. Using Vlookup function to determine the allowance level for each person according to their corresponding position between table 1 and table 2.
- Firstly, input the formula =VLOOKUP(D4,$B$11:$C$15,2,0), with Range_lookup = 0 (FALSE) to search precisely. The first allowance result will be displayed as shown below.
Similar to before, you simply need to copy the formula for each Allowance cell or use Flash Fill to complete the allowance calculation for employees.
IV. Limitations of Vlookup function
- Only supports references from left to right.
- Only works effectively with distinct values.
- Slows down spreadsheet responsiveness.
- The reference column index remains fixed, causing difficulties when copying to other calculation cells.
- When no content is filled into the formula, Excel defaults to setting up approximate match.
In addition to using Vlookup function in Excel, you can also combine HLOOKUP and VLOOKUP to search and compute data, helping us save even more calculation time, making tasks shorter and simpler.
