What is HLOOKUP in Google Sheets?

HLOOKUP is the horizontal cousin of VLOOKUP. It searches the first row of a range for a key and returns a value from a specified row below. Wide month grids and matrix headers occasionally still use it.

When to use it

Use HLOOKUP when keys live in a top header row and values sit in fixed rows beneath, such as metric rows by month column.

When to skip it

Skip HLOOKUP when data is row-oriented records. VLOOKUP, XLOOKUP, or INDEX MATCH fit normal tables better.

How it works

  1. 1

    Place lookup value matching a top-row header.

  2. 2

    Select table array with headers in row 1 of the range.

  3. 3

    Set row_index_num for which row below the header to return.

  4. 4

    Use FALSE for exact header match in most cases.

  5. 5

    Lock array references when copying across a dashboard.

  6. 6

    Consider TRANSPOSE plus VLOOKUP if the table is easier to reason about vertically.

Examples in Google Sheets

Month metric

=HLOOKUP("Mar", B1:M4, 3, FALSE) pulls row 3 metric under March column header.

Rate by year

=HLOOKUP(E1, Rates!A1:Z5, 4, FALSE) fetches a rate row under selected year header.

Wide budget grid

=HLOOKUP(B$1, Budget!B1:AA10, 6, FALSE) reads one department row under chosen month.

Build this without starting from a blank cell

Use a Better Sheets tool for HLOOKUP, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Key not in first row of the HLOOKUP range.
  • Row index not updated after inserting rows in the table block.
  • Using HLOOKUP on vertical customer lists oriented wrong.
  • Approximate match on unsorted header rows.
  • Confusing row index with column index from VLOOKUP habit.

Frequently asked questions

HLOOKUP vs VLOOKUP?
HLOOKUP scans top row. VLOOKUP scans left column.
HLOOKUP vs XLOOKUP?
XLOOKUP handles horizontal arrays with clearer arguments.
Why #REF!?
Row index larger than range height.
Transpose trick?
TRANSPOSE then VLOOKUP sometimes simplifies wide tables mentally.
HLOOKUP exact match?
Use FALSE for header text that must match exactly.
Multiple header rows?
HLOOKUP only searches first row of range. Restructure or use INDEX MATCH.
HLOOKUP still used?
Less common today but appears in legacy wide calendar models.

Related Tutorials

Watch how HLOOKUP works

Browse more tutorials
Use Index Match when you want Vlookup

Use Index Match when you want Vlookup

If you find Vlookup a difficult formula to understand, this formula comb...
How To Create An AutoFill in Google Sheets

How To Create An AutoFill in Google Sheets

Autofill inside of google sheets is possible with Dropdowns.
How do I reference a different spreadsheet in Apps Script?

How do I reference a different spreadsheet in Apps Script?

I'll show you how to get text from one spreadsheet file to another with ...

Related blog posts

Guides that explain HLOOKUP in more depth.

Browse the blog

Related glossary terms

Done reading about HLOOKUP?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.