HLOOKUP Function
Look up a value in the first row of a table and return the value from another row of the same column. lookup_value is the value to find, table_or_lookup_vector the table, and row_or_result_vector the number of the row to return, counted from 1. range_lookup FALSE finds an exact match, ignoring case; TRUE or omitted finds the largest value less than or equal to lookup_value and requires the first row to be sorted in ascending order. A value that isn't found returns #N/A, a row number below 1 returns #VALUE! and one beyond the table returns #REF!. Unlike in Excel, the wildcards * and ? are not supported in an exact match.
Syntax
HLOOKUP(lookup_value, table_or_lookup_vector, row_or_result_vector, range_lookup)
Category: Lookup. Minimum arguments: 2. Maximum arguments: 4.
Available for supported offline calculation.
Examples
=HLOOKUP(2,{1,2,3;4,5,6},2,FALSE)
The formula returns 5, the value below 2 in the second row.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.