Table of Contents
๐น What is HLOOKUP in Excel?
HLOOKUP (Horizontal Lookup) is used to search for a value in the first row of a table and return data from a specific row below it.
๐น Example: Using HLOOKUP to Find Product Price
๐ We have the following table:
Product ID | Product Name | Price | Quantity Sold |
101 | Laptop | 50000 | 20 |
102 | Phone | 30000 | 50 |
103 | Tablet | 20000 | 30 |
๐ Formula to Find the Price of a Product by ID:
=HLOOKUP(A11, B3:F5, 3, FALSE)
๐น Explanation:
- A11 โ The lookup value (Product ID).
- B3:F5 โ The table range.
- 3 โ The row number to return data from (Price row).
- FALSE โ Exact match required.
โ Now, enter the Product ID in A11, and Excel will return the corresponding price! ๐