=HLOOKUP(lookup_value,table_array,row_index,[range_lookup])
Scenario | Formula | Result |
---|---|---|
Find the price of "Mango" | =HLOOKUP("Mango", A1:D3, 2, FALSE) | 120 |
What is stock of "Orange" | =HLOOKUP("Orange", A1:D3, 3, FALSE) | 40 |
Price of "Banana" | =HLOOKUP("Banana", A1:D3, 2, FALSE) | 80 |
Search the stock of "Apple" | =HLOOKUP("Apple", A1:D3, 3, FALSE) | 50 |
Find the price of "Grapes" (not in table, will return error) | =HLOOKUP("Grapes", A1:D3, 2, FALSE) | #N/A |
Price of a product mentioned in cell F1 | =HLOOKUP(F1, A1:D3, 2, FALSE) | 120 |
Find the price of "Orange" using a dynamic reference | =HLOOKUP(A5, A1:D3, 2, FALSE) | If A5 = "Orange", Result: 90 |