HLOOKUP

searches first row and returns matching value · from excel · excel: verified match · sheets: not yet compared

signature

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

returns: any

argumentrequired
lookup_value required
table_array required
row_index_num required
range_lookup optional · defaults to 1

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

WXY
1 alphabetagamma
2 123
fx =HLOOKUP("beta", W1:Y2, 2, FALSE) 2

related

  • ADDRESS returns a cell address as text from row and column numbers
  • AREAS returns the number of areas in a reference
  • HYPERLINK the text a link displays — clickability is the renderer's
  • INDEX returns value at row and column in range
  • INDIRECT returns reference specified by text string
  • LOOKUP looks up value in one-row or one-column range