FP

FormulaPilot

Spreadsheet formula tools

Open generator
Excel how-to guide

How to hlookup row lookup in Excel

Look up a product code in a header row and return the matching price, budget, or quantity from a specific row in a horizontal table layout.

intermediateLookup & ReferenceHLOOKUP reference

Step-by-step instructions

How to hlookup row lookup4 steps

1

Enter the value to look up — it must exist in the first row of the lookup table.

2

Enter the table range starting from the header row.

3

Enter the row index number — 1 returns the header row itself, 2 returns the next row down, and so on.

4

Use FALSE for an exact match.

Example data

Worked example

MonthJanFebMar
Budget100001200011000
Actual98001250010700

Common mistakes

Errors to watch out for

#N/A error

The lookup value was not found in the first row. Check for extra spaces, case mismatches, or confirm the value actually exists in the header row.

Wrong row returned

The row index counts from 1 (the header row). If you want the third data row, the index should be 4, not 3, because the header is row 1.

FAQ

Frequently asked questions

When should I use HLOOKUP instead of INDEX/MATCH?

HLOOKUP is simpler for straightforward horizontal lookups. INDEX/MATCH is more flexible when the header row position may change or when you need a two-way lookup.

Need a custom variation?

Describe your exact spreadsheet problem — get the formula in seconds.

Open AI Formula Generator — Free

Related how-to guides

Continue learning.