Look up a value in a table arranged horizontally
=HLOOKUP(lookup_value, table_array, row_index, [range_lookup])
| Parameter | Description |
|---|---|
lookup_value |
The value to look up. |
table_array |
The table from which to retrieve data. |
row_index |
The row number from which to retrieve data. |
range_lookup |
[optional] A Boolean to indicate exact match or approximate match. Default = TRUE = approximate match. |
In the example shown, the goal is to look up the correct Level and Bonus for the sales amounts in C5:C13. The lookup table is in H4:J6, which is the n
=HLOOKUP(C5,table,2,1) // get level
To get Bonus, the formula in E5, copied down, is:
=HLOOKUP(C5,table,3,1) // get bonus
In the screen below, the goal is to look up the correct level for a numeric rating 1-4. In cell D5, the HLOOKUP formula, copied down, is:
=HLOOKUP(C5,table,2,FALSE) // exact match