FormulaCraft

HLOOKUP

HLOOKUP searches across the first row of a range and returns a value from a row you specify in the same column. Use it when your data is laid out in rows rather than columns.

Topic:Lookups (any direction)
Excel
=HLOOKUP(D1, A1:Z2, 2, FALSE)
Google Sheets
=HLOOKUP(D1, A1:Z2, 2, FALSE)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1D1 is the value to find along the top row.
  2. 2A1:Z2 is the table; the search happens in the first row.
  3. 32 returns the value from the 2nd row; FALSE forces an exact match.

Need a version for your data?

Try: “Look across the header row for the month in D1 and return the value from row 2

More on Lookups (any direction)

See all →

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: