Excel
HLOOKUP function in Excel
Looks in the top row of an array and returns the value of the indicated cell
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])HLOOKUP syntax and parameters
Four arguments, three required.
- lookup_valueanyRequired
- table_arrayarrayRequired
- row_index_numnumberRequired
- range_lookupanyOptional
HLOOKUP examples
Formulas you'll actually reuse.
Q3 revenue from a table whose quarters run across the top row (row 3 = revenue):
=HLOOKUP("Q3", A1:E5, 3, FALSE)Result
48900Commission rate for a sale — approximate match against tier thresholds sorted ascending in row 1:
=HLOOKUP(B2, $A$1:$G$2, 2, TRUE)Result
0.05
HLOOKUP in Google Sheets
Same name — your formula ports as-is.
Try HLOOKUP in the playground
Edit the example — nothing to install.
Preloaded with the HLOOKUP formula from Example 1 — change anything and watch it respond.
Loading the editor…
HLOOKUP errors
What they mean — and the fixes.
#N/ANo header matched — with FALSE the match is exact, so check spaces and case; use TRUE only when the top row is sorted ascending.
Related functions
More ways Excel gets this done.
- ADDRESSReturns a reference as text to a single cell in a worksheetLookupGoogle Sheets
- AREASReturns the number of areas in a referenceLookupNo Google Sheets equivalent
- CHOOSEChooses a value from a list of valuesLookupGoogle Sheets
- CHOOSECOLSReturns the specified columns from an arrayLookupGoogle Sheets
- CHOOSEROWSReturns the specified rows from an arrayLookupGoogle Sheets
- COLUMNReturns the column number of a referenceLookupGoogle Sheets