Excel & Google Sheets Function
HLOOKUP function in Excel (with interactive examples)
HLOOKUP searches the top row of a horizontal table and returns a value from a specified row below it.
Syntax
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])Live Interactive Exercise — Try it nowNo login required
Interactive practice grid (HLOOKUP reference)
Try our live spreadsheet engine: total Q1 sales in cell B5 using =SUM(B2:B4).
B5fx
| A | B | |
|---|---|---|
| 1 | Month | Sales |
| 2 | Jan | $1,100.00 |
| 3 | Feb | $1,350.00 |
| 4 | Mar | $1,550.00 |
| 5 | Total | type here |
Insert:
Arguments explained
| lookup_value | Required | Value to find in row 1. |
| table_array | Required | Horizontal lookup table. |
| row_index_num | Required | 1-based row number to return. |
| range_lookup | Optional | Pass FALSE for exact match. |
Common errors & fixes
Approximate match surprise: Always pass FALSE as the 4th argument for exact matches, or switch to XLOOKUP.
Excel vs Google Sheets
Identical in Google Sheets.
Practise HLOOKUP in a full 4-minute lesson
Every lesson is free to study — build real speed with instant feedback.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.