HLOOKUP in Excel
HLOOKUP in Excel
the same column, but a specified row number, making it useful for horizontal data retrieval.
Purpose:
Syntax:
lookup_value: The value you're searching for in the first row of the table_array.
table_array: The range of cells containing your data, where the first row contains the lookup values.
row_index_num: The row number within the table_array from which you want to retrieve the value.
[range_lookup] (Optional): A logical value (TRUE or FALSE) that specifies whether to find an approximate
(TRUE) or exact (FALSE) match. If omitted, it defaults to TRUE.
How it works:
HLOOKUP searches for the lookup_value in the first row of the table_array.
If a match is found (or an approximate match, depending on [range_lookup]), it returns the value from
the same column, but from the row specified by row_index_num.
Example:
If you have a table with product names in the first row and prices in the second row, and you want to
find the price of "Product A", you would use =HLOOKUP("Product A", A1:B2, 2, FALSE).
While HLOOKUP searches horizontally, VLOOKUP searches vertically (down a column). Choose HLOOKUP
when your lookup values are in a row and you want to retrieve data from a corresponding column.