VLOOKUP function - Usage and detailed examples

VLOOKUP is one of the most used Excel functions. The following article details how to use and detailed examples when using the VLOOKUP function.

VLOOKUP is one of the most used Excel functions. The following article details how to use and detailed examples when using the VLOOKUP function.

1. Syntax and usage of VLOOKUP function

- VLOOKUP function is a search for conditional values, the search is performed on columns.

- VLOOKUP function syntax:

VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])

Inside:

+ lookup_value: The value you want to search, is a required parameter.

+ table_array: The data area you want to search for values, is a required parameter.

+ col_index_num: Column containing the value to search, is a required parameter.

+ range_lookup: Search type, range_lookup = 1 is equivalent to True value -> relative search, range_lookup = 0 absolute search is equivalent to false value.

2. Simple example using VLOOKUP function

2.1 Example 1

- The following data sheet is available, based on the allowance allowance sheet filled out for employees (using Vlookup function):

Picture 1 of VLOOKUP function - Usage and detailed examples

- In the cell to calculate the formula entry allowance: = VLOOKUP (E4, $ B $ 15: $ C $ 18,2,1) (note the absolute value for the data range containing the search value):

Picture 2 of VLOOKUP function - Usage and detailed examples

- Press Enter to get the results:

Picture 3 of VLOOKUP function - Usage and detailed examples

- Similarly copying the formula for the remaining values ​​results:

Picture 4 of VLOOKUP function - Usage and detailed examples

2.2 Example 2

- Enter employee qualifications based on the employee code, if the employee is on the qualification table

Picture 5 of VLOOKUP function - Usage and detailed examples

- Here to get the employee qualifications through the first character in the staff code. So, you need to use the Left () function to get the first character in the code and look for that character in the level table.

- In the cell to calculate, enter the formula: = VLOOKUP (LEFT (B4,1), $ F $ 15: $ G $ 18,2,0)

Picture 6 of VLOOKUP function - Usage and detailed examples

- Press Enter to get the results:

Picture 7 of VLOOKUP function - Usage and detailed examples

- Copying the formula for the remaining values ​​displays the error message:

Picture 8 of VLOOKUP function - Usage and detailed examples

- Because of not placing an absolute address for the data area containing the search value, VLOOKUP function reports an error, executes the address highlight, and press F4 key to change the address to the absolute address:

Picture 9 of VLOOKUP function - Usage and detailed examples

- Finally copying the formula to the remaining values ​​results:

Picture 10 of VLOOKUP function - Usage and detailed examples

2.3 Example 3

Enter the department information and employee ranks based on the department table and category below:

Picture 11 of VLOOKUP function - Usage and detailed examples

- Here to get the staff's department based on the first character in the kernel code. To get a rank based on the last character in the employee code. But here the department values ​​are arranged in columns so VLOOKUP should be used while rows value should be used in HLOOKUP . Departments and ranks should put together 1 column and combine 2 values ​​into 1.

In the field you need to enter the formula: = VLOOKUP (LEFT (B4,1), $ D $ 16: $ E $ 19,2,1) & "-" & HLOOKUP (RIGHT (B4,1), $ F $ 15: $ G $ 19,2,1)

Picture 12 of VLOOKUP function - Usage and detailed examples

- Press Enter to get the results (remember to pass the absolute address for the search value container):

Picture 13 of VLOOKUP function - Usage and detailed examples

- Similarly copying the formula for the remaining values ​​results:

Picture 14 of VLOOKUP function - Usage and detailed examples

The above is a detailed guide on how to use the VLOOKUP function and some specific examples that hope to help you. Good luck!

Update 19 May 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile