The VLOOKUP function is used in Excel to find a value in a vertical table and return the specified data in the corresponding row. Usage: Enter the function =VLOOKUP(lookup value, data table area, column number to return data, [match type]) in the cell, and replace the parameter value.
How to use the VLOOKUP function in Excel
The VLOOKUP function is a search and reference function, used in vertical Searches a table or list for a value and returns the specified data in the corresponding row. Its syntax is:
<code>=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])</code>
Parameter description:
Usage:
Enter the following formula:
<code>=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])</code>
Replace the parameter value:
Example:
Suppose you have a data table containing employee information as follows:
Employee number | Name | Department |
---|---|---|
张三 | Sales | |
李思 | 人事 | |
王五 | Technology |
<code>=VLOOKUP(2, A2:C4, 2, FALSE)</code>
The above is the detailed content of How to use vlookup function in excel. For more information, please follow other related articles on the PHP Chinese website!