Sample Data
This table shows products in the first row, their prices in the second row, and stock quantities in the third row.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Pen |
| C1 | Pencil |
| D1 | Eraser |
| A2 | Price |
| B2 | 1.5 |
| C2 | 0.5 |
| D2 | 0.75 |
| A3 | Stock |
| B3 | 100 |
| C3 | 200 |
| D3 | 150 |
This table shows products in the first row, their prices in the second row, and stock quantities in the third row.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Pen |
| C1 | Pencil |
| D1 | Eraser |
| A2 | Price |
| B2 | 1.5 |
| C2 | 0.5 |
| D2 | 0.75 |
| A3 | Stock |
| B3 | 100 |
| C3 | 200 |
| D3 | 150 |
=HLOOKUP("Pencil", A1:D3, 2, FALSE)A B C D 1 |Product | Pen | Pencil | Eraser 2 | Price | 1.5 | 0.5 | 0.75 3 | Stock | 100 | 200 | 150 HLOOKUP searches row 1 (A1:D1) for "Pencil" and returns value from row 2 in the same column.
A B C D 1 |Product | Pen | Pencil | Eraser 2 | Price | 1.5 | 0.5 | 0.75 3 | Stock | 100 | 200 | 150 Result of formula in cell E1: 0.5
HLOOKUP function do in Excel?HLOOKUP function looks horizontally in the top row of a table to find a match.HLOOKUP function?HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup]) matches this order exactly.| Jan | Feb | Mar | |
|---|---|---|---|
| Sales | 100 | 150 | 200 |
| Profit | 30 | 50 | 70 |
=HLOOKUP("Feb", A1:D3, 3, FALSE)?=HLOOKUP("Q2", A1:D3, 2) but it returns incorrect data. What is the likely problem?Pass the test and this pattern moves unknown