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