Home >Common Problem >excel vlookup function usage
The usage of excel vlookup function is "VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])". lookup_value: the value to be looked up, table_array: the table area to be looked up, which must contain the value to be looked up and the value to be returned, col_index_num: the column index number where the value to be returned is located. range_lookup: optional parameter, used to specify the search method.
The VLOOKUP function is a commonly used search function in Excel. It is used to find a value in a range or table and return the corresponding value. The following are common uses of the VLOOKUP function:
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
lookup_value: The value to be looked up. table_array: The table area to be searched. The range must contain the value to be found and the value to be returned. col_index_num: The column index number of the value to be returned. If the first column of the table_array range is the value to be returned, col_index_num is 1, and so on. range_lookup: optional parameter, used to specify the search method. If TRUE or omitted, an approximate match is made; if FALSE, an exact match is made.
The following is an example:
Suppose there is a table area A1:B5, which contains the names of students and their corresponding scores. To find the score of a certain student, you can use the VLOOKUP function as follows:
=VLOOKUP("John", A1:B5, 2, FALSE)
This will find the student named "John" in the A1:B5 area and return the corresponding score.
Please note that the VLOOKUP function can only search from left to right, that is, the search value must be in the first column of the table_array area. If you need to search from right to left, you can use the HLOOKUP function.
The above is the detailed content of excel vlookup function usage. For more information, please follow other related articles on the PHP Chinese website!