Superseded — use XLOOKUP.
Lookup & Reference Deprecated

HLOOKUP

Searches the top row of a range and returns a value from the same column.

Available in All versions

Syntax

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

What it returns

The value from the chosen row, in the matched column.

Arguments

ArgumentRequiredDescription
lookup_value Yes The value to look up in the top row.
table_array Yes The table in which to search.
row_index_num Yes The row number from which to return the value.
range_lookup No TRUE/1 approximate (default), FALSE/0 exact match.

Example

Lookup value
Q1
AB
1QuarterSales
2Q1500
3Q2620
4Q3480
Result
500

HLOOKUP searches along a row — shown here as the find → return relationship.

=HLOOKUP("Q1", A1:E3, 2, FALSE)

Important to know

With TRUE/1, the top row must be sorted ascending, or results are wrong.

Use FALSE/0 for exact lookups.

Related functions

Related learning