New: ready-to-use spreadsheet templatesExplore the collection  →
Home/Formulas/HLOOKUP
LOOKUP & REFERENCE · GOOGLE SHEETS

HLOOKUP
look across the top row and return a value below.

Use HLOOKUP to find a metric under a month heading. This guide shows the exact structure, a working example and the mistakes most likely to break it.

JosephineVerified by JosephineReviewed July 25, 2026
THE FORMULA=HLOOKUP(search_key, range, index, [is_sorted])
A

search_keyheading to find

B

rangehorizontal table

C

indexresult-row number

D

is_sortedexact or approximate

TRY IT YOURSELF

Change the sheet.
Watch the answer update.

Edit any highlighted cell below. The example recalculates immediately.

LIVE PLAYGROUND=HLOOKUP(B6,B1:G3,3,FALSE)
fx=HLOOKUP(B6,B1:G3,3,FALSE)
A · JANB · FEBC · MAR
2
3
RESULT#N/AUpdates live

Try changing a value above. This example runs entirely in your browser.

IN PLAIN ENGLISH

How the formula
thinks.

  1. 01

    search_keyheading to find

  2. 02

    rangehorizontal table

  3. 03

    indexresult-row number

  4. 04

    is_sortedexact or approximate

COMMON FIXES

When HLOOKUP
doesn’t behave.

WRONG RESULT

Wrong result

Check that every range starts and ends on the same rows, and that numbers are stored as numbers.

FORMULA PARSE ERROR

Formula parse error

Check commas, quotation marks and closing parentheses. Your locale may use semicolons instead of commas.

UNEXPECTED BLANKS

Unexpected blanks

Test the source cells for hidden spaces, empty strings and inconsistent data types.

fxNeed help with HLOOKUP?Fix my formula →