Skip to content

Lessons in your language are coming soon. Formulas already work in your Excel language.

This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.

Excel function · Lookups

HLOOKUP

Finds a value in the top row of a table and returns a value from the same column.

What it does

HLOOKUP is VLOOKUP turned sideways: it searches across the first row of a table and returns a value from a row below it.

Syntax

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

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ,

Arguments

lookup_value
What to look for in the top row.
table_array
The table, with the values to search in its first row.
row_index_num
Which row to return, counting from 1 at the top of the table.
range_lookup
FALSE for an exact match. TRUE, or leaving it out, finds the closest smaller value in a sorted row.

Example

How many visitors came in February?

ABCD
1MonthJanFebMar
2Visitors120150135
3
4Look forFeb
5Visitors150

The formula in B5:

=HLOOKUP(B4,B1:D2,2,FALSE)

Result: 150

Feb is the second column of B1:D2. Row 2 of that table holds the visitors, so the result is 150.

Common mistakes

  • Counting rows from the top of the sheet instead of from the first row of the table.
  • Leaving out FALSE and getting an approximate match on labels that aren't sorted.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishHLOOKUP,
DeutschWVERWEIS;
FrançaisRECHERCHEH;
Español (España)BUSCARH;
Español (México)BUSCARH,
日本語HLOOKUP,
한국어HLOOKUP,
繁體中文HLOOKUP,
ไทยHLOOKUP,
ខ្មែរHLOOKUP,
Tiếng ViệtHLOOKUP;

Practise it

More from this module

All functions