Syntax
| Parameter | Description |
|---|---|
| lookup_value | Parameter of the HLOOKUP function. |
| table_array | Parameter of the HLOOKUP function. |
| row_index | Parameter of the HLOOKUP function. |
| [range_lookup] | (Optional.) Parameter of the HLOOKUP function. |
Examples
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | State | CA | NY | TX | FL |
| 2 | Tax Rate | 7.25% | 8.00% | 6.25% | 6.00% |
| 3 | Shipping | $8.50 | $9.00 | $7.50 | $7.00 |
Look up a tax rate from a rate table
=HLOOKUP("CA", A1:E2, 2, FALSE)
Get monthly data by month name
=HLOOKUP("March", A1:M2, 2, FALSE)
Approximate match in sorted headers
=HLOOKUP(750, A1:D3, 3, TRUE)
Common Errors
The lookup value was not found in the first row. Check spelling and use FALSE for the last argument to require an exact match.
The row_index_num exceeds the number of rows in the table. For example, requesting row 5 from a 3-row table.
Tips
The default (TRUE) does approximate matching on sorted data. Almost always use FALSE for exact matching.
INDEX-MATCH is more flexible. =INDEX(row_range, MATCH(lookup, header_range, 0)) works the same way without the row number limitation.
Use HLOOKUP when your data is arranged horizontally (categories across columns). For vertical data, use VLOOKUP or INDEX-MATCH.
Try HLOOKUP in Viztab
Import your data and use HLOOKUP with 370+ other formulas. No signup required.
Open Viztab