Google Sheets HLOOKUP function

The horizontal version of VLOOKUP: it searches the first row and returns from another row. In Spanish Sheets it is called BUSCARH.

Syntax

English Sheets

=HLOOKUP(search_key, range, index, [is_sorted])

Spanish Sheets (Mexico locale)

=BUSCARH(clave_búsqueda, intervalo, índice, [está_ordenado])

Spanish Sheets (Spain, Latin America)

=BUSCARH(clave_búsqueda; intervalo; índice; [está_ordenado])

ArgumentWhat it is
search_keyWhat you look for, in the first row.
rangeThe whole table.
indexThe row to return (1, 2, 3…).
is_sortedoptionalFALSE 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

The index counts table rows, not sheet rows. Without FALSE it matches approximately.

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
2Sales420003850051200478005530060100
3Expenses310002950033800302003510036900
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 Google Sheets it is BUSCARH. The formula =HLOOKUP(B5,B1:G3,2,FALSE) is written =BUSCARH(B5;B1:G3;2;FALSO) (or with commas under a Mexico locale).
Why does HLOOKUP use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common HLOOKUP mistake?
The index counts table rows, not sheet rows. Without FALSE it matches approximately.