Excel HLOOKUP function

Looks up a value in a table’s first row and returns data from another row in that column. In Spanish Excel it is called BUSCARH.

Syntax

English Excel

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

Spanish Excel (Mexico)

=BUSCARH(valor_buscado, matriz_buscar_en, indicador_filas, [ordenado])

Spanish Excel (Spain, Latin America)

=BUSCARH(valor_buscado; matriz_buscar_en; indicador_filas; [ordenado])

ArgumentWhat it is
lookup_valueWhat you look for, in the first row.
table_arrayThe whole table.
row_index_numThe row to return (1, 2, 3…).
range_lookupoptionalFALSE for an exact match.

Example

HLOOKUP is the horizontal version of VLOOKUP: it searches the table’s first row and returns data from the row you choose.

=HLOOKUP(B5,B1:G3,2,FALSE)

Common mistake

As with VLOOKUP, without FALSE it matches approximately. XLOOKUP does both horizontal and vertical lookups.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice HLOOKUP

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

HLOOKUP

HLOOKUP is the horizontal version of VLOOKUP: it searches the table’s first row and returns data from the row you choose.

Example=HLOOKUP(B5,B1:G3,2,FALSE)BUSCARH = HLOOKUP

In B6, look up the sales for the month in B5.

B6
ABCDEFGH
1MonthJanFebMarAprMayJun
2Sales42,00038,50051,20047,80055,30060,100
3Expenses31,00029,50033,80030,20035,10036,900
4
5Month to checkApr
6Sales
7

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is HLOOKUP called in Spanish?
In Spanish Excel it is BUSCARH. The formula =HLOOKUP(B5,B1:G3,2,FALSE) is written =BUSCARH(B5;B1:G3;2;FALSO) (or with commas in Mexico).
Why does HLOOKUP use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common HLOOKUP mistake?
As with VLOOKUP, without FALSE it matches approximately. XLOOKUP does both horizontal and vertical lookups.