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.
Step-by-step instructions
How to hlookup row lookup — 4 steps
Enter the value to look up — it must exist in the first row of the lookup table.
Enter the table range starting from the header row.
Enter the row index number — 1 returns the header row itself, 2 returns the next row down, and so on.
Use FALSE for an exact match.
Example data
Worked example
| Month | Jan | Feb | Mar |
|---|---|---|---|
| Budget | 10000 | 12000 | 11000 |
| Actual | 9800 | 12500 | 10700 |
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.
Describe your exact spreadsheet problem — get the formula in seconds.
Open AI Formula Generator — FreeRelated how-to guides