Lookup Functions · Horizontal

Keys across the top?
HLOOKUP reads rows, not columns.

The horizontal twin of VLOOKUP: search the top row for a key and return a value from a row below — built for months, scenarios and regions laid out as columns. Below: a reproducible benchmark, 14 sourced error fixes, and a live transposed playground.

D1
fx
=HLOOKUP(lookup_value, table_array, row_index_num, FALSE)
4
Table sizes tested
3
Functions compared
0
row searched — the top row
100%
Correctness verified
fx HLOOKUP
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
lookup_valuerequired
The value to find in the top row of the table.
table_arrayrequired
The horizontal range; keys must be in its first row.
row_index_numrequired
Which row to return (1 = the key row). Must fit the range's height.
range_lookupoptional
FALSE/0 = exact (use this). TRUE/1 = approximate, needs sorted headers.
// 02 — Original data HLOOKUP vs VLOOKUP vs XLOOKUP

We benchmarked exact-match lookups in HyperFormula 3.3.1 — median recalculation time across four table sizes. This is original measured data, not republished.

VLOOKUP XLOOKUP INDEX-MATCH
Table rowsVLOOKUP (ms)XLOOKUP (ms)INDEX-MATCH (ms)
How we measured · who made this
LookupLab Research · run Nov 2026 · Apple Silicon · HyperFormula 3.3.1 · median of repeated runs

Exact-match lookups on a sorted table, full-column reference, median recalculation time across four table sizes. Every result was correctness-verified before timing. This is directly relevant to web spreadsheet tools and indicative, not identical to native Excel. HLOOKUP is VLOOKUP's transpose — same lookup engine, same speed class, not a faster algorithm. Our benchmark measures vertical exact-match lookups; pick HLOOKUP when your keys run across the top row, and VLOOKUP / INDEX-MATCH when they run down a column. Orientation, not speed, is the deciding factor.

Text drafted with AI assistance and edited by LookupLab. Every benchmark number is machine-measured and reproducible, not generated. Data licensed CC BY 4.0.

// 03 — Try it live

Interactive lookup playground

Edit the cells, change the lookup key, switch functions and match modes. The result and the generated formula update instantly.

A1Employee data. Click any cell to edit
Result
$62,000
=VLOOKUP(1003,A2:D9,4,0)
✓ foundinstant
// 04 — Error library

The real-world error library

14 failure patterns mined from actual user reports on Reddit, Stack Overflow and Super User — each with the authentic symptom, root cause, a fix, and a runnable formula. Not textbook theory.

// 05 — Cross-platform

Where VLOOKUP works

Availability and syntax differences across desktop Excel, Google Sheets, LibreOffice and the web spreadsheet engines — including the exact-match quirk we found in our benchmark.

PlatformSupportNotesGotcha
✓ Supported full VLOOKUP◐ Partial works with caveatsCompiled from public docs · verify against your build
// 06 — Go deeper
🔒

Unlock the full VLOOKUP course

Everything above is free. Go Pro for the deep end.

✓ 200 graded practice problems with instant feedback ✓ INDEX-MATCH vs VLOOKUP deep dive + when to switch ✓ Two-way & leftward lookup patterns ✓ Downloadable workbook + completion certificate
$9/mo $59/yr · save 45% $149 lifetime
// 07 — FAQ

Frequently asked