HLOOKUP Formula in Excel

Searches for a value in the first horizontal row of a range and returns the corresponding cell in another horizontal row.

Syntax

Formula structure

Source: Quadratic docs
=HLOOKUP(search_key, search_range, output_row, [is_sorted])
search_key
Required: Yes

Required argument used by the HLOOKUP formula.

search_range
Required: Yes

Required argument used by the HLOOKUP formula.

output_row
Required: Yes

Required argument used by the HLOOKUP formula.

[is_sorted]
Required: No

Optional argument used by the HLOOKUP formula.

Examples for the hlookup formula in excel

Copy these examples into a spreadsheet and adjust the ranges for your own data.

HLOOKUP syntax pattern

=HLOOKUP(search_key, search_range, output_row, [is_sorted])

Use this HLOOKUP pattern as the starting point for your spreadsheet formula.

HLOOKUP in a worksheet

=HLOOKUP(search_key, search_range, output_row, [is_sorted])

Searches for a value in the first horizontal row of a range and returns the corresponding cell in another horizontal row.

When to use HLOOKUP

Use HLOOKUP when you need to search for a value in the first horizontal row of a range and returns the corresponding cell in another horizontal row.

  • Find matching values in tables and ranges.
  • Connect IDs, names, and categories across spreadsheet data.

How HLOOKUP works in Quadratic

In Quadratic, HLOOKUP follows the syntax HLOOKUP(search_key, search_range, output_row, [is_sorted]). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.

Common HLOOKUP mistakes

Most HLOOKUP issues come from mismatched argument types, ranges that do not cover the intended data, or optional parameters being omitted when the default behavior is not what you expected.

  • Check each required parameter before copying the formula across a sheet.
  • Confirm that ranges line up with the rows or columns you intend to analyze.
  • Use Quadratic AI to explain or debug the formula when the result looks wrong.

Related formulas

HLOOKUP formula FAQ

What does the hlookup formula in excel do?

HLOOKUP searches for a value in the first horizontal row of a range and returns the corresponding cell in another horizontal row.

What is the syntax for HLOOKUP?

The syntax is HLOOKUP(search_key, search_range, output_row, [is_sorted]). Required and optional parameters are listed at the top of this guide.

Can Quadratic AI help with HLOOKUP?

Yes. Quadratic AI can write a HLOOKUP formula, explain existing formula logic, or help debug broken references and unexpected results.

Quadratic AI

Struggling with formulas? Use Quadratic AI.

Spreadsheet formulas are powerful, but they get painful fast. A HLOOKUP formula can start simple, then turn into logic that is hard to understand, easy to break, and difficult to share with the rest of your team.

Quadratic AI helps you write formulas, explain formula logic, debug broken references, and move beyond formulas when advanced analysis needs Python, SQL, charts, or connected data.

Try Quadratic AI

Why formulas slow teams down

  • Long formulas become hard to read, understand, and trust.
  • Formula logic breaks when rows, columns, or assumptions change.
  • Manual updates make dashboards and reports fragile over time.
  • Complex formulas are difficult to explain, review, and share with teammates.
  • Advanced analysis quickly outgrows formula-only workflows.