Searches for a value in the top row of the specified table or array of values, and returns a value in the same column from another specified row in the table or array.
Syntax
![]() |
---|
HLOOKUP( Any lookup, ReferenceOrArray dataSource, Integer row, [Logical rangeLookup = TRUE] ) → Any |
If HLOOKUP cannot find lookup, and rangeLookup is TRUE (or omitted), it uses the largest value that is less than lookup. If rangeLookup is FALSE, HLOOKUP will find an exact match. If one is not found, the error value #N/A is returned.
Function Reference
INDEX Function
MATCH Function
OFFSET Function
VLOOKUP Function