The HLOOKUP function

Looks for a value in the first row of a table and returns the value from another row in the same column.

Syntax

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
lookup_value
The value to find in the first row.
table_array
The table, starting with the row to search.
row_index_num
Which row of the table to return, counting from 1.
range_lookup (optional)
FALSE for an exact match; TRUE or left out for the closest smaller value.

Examples

F1=HLOOKUP("Feb",B1:D2,2,FALSE)
ABCDEF
1MonthJanFebMar150
2Sales12015090

In plain words: Find Feb in the top row of B1:D2 and return the value in the table's second row, only on an exact match.

F1=HLOOKUP("Mar",A1:D2,2,FALSE)
ABCDEF
1MonthJanFebMar90
2Sales12015090

Read the guide

Related functions