How to Use VLOOKUP in Microsoft 0365 Excel


Using VLOOKUP in Microsoft O365 Excel

VLOOKUP (Vertical LOOKUP) is a powerful function in Microsoft Excel that allows you to search for a value in a table and return a corresponding value from another column in the same row. It is commonly used for data lookup and retrieval tasks.

Syntax:


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

  • lookup_value: The value you want to search for in the first column of the table.
  • table_array: The range of cells that contains the table data, including the column you want to return a value from.
  • col_index_num: The column number of the value you want to return from the table.
  • range_lookup: Optional. A logical value that specifies whether you want an exact match (FALSE) or an approximate match (TRUE). The default is FALSE.

Steps:

Select the cell where you want to display the VLOOKUP result.

Type the following formula:

=VLOOKUP(A2, F1:J10, 4, FALSE)

  • Enter the lookup value inside double quotes or as a cell reference.
  • Enter the table array as a range of cells or a named range.
  • Enter the column number of the value you want to return.
  • Enter the range_lookup value as FALSE for an exact match or TRUE for an approximate match.
  • Close the parentheses and press Enter.

Example:
Let's say you have a table of employee data in the range F1:J10, with the employee names in column F, the employee IDs in column G, the department names in column H, the salaries in column I, and the hire dates in column J.


If you want to find the salary of an employee named "John Doe," you would use the following VLOOKUP formula:
=VLOOKUP(A2, F1:J10, 4, FALSE)
This formula would return the value in cell I2, which is the salary of "John Doe."



Tips and Considerations:
  1. Make sure that the lookup value is unique in the first column of the table. If there are duplicate values, VLOOKUP will return the value from the first matching row.
  2. The table array must be sorted in ascending order based on the first column for the VLOOKUP function to work correctly.
  3. Use an approximate match (range_lookup = TRUE) when the lookup value is not an exact match for any value in the first column of the table.
  4. VLOOKUP can also be used to perform horizontal lookups by using the HLOOKUP function.

Comments