VLOOKUP in Excel
VLOOKUP is one of the most powerful and commonly used functions in Excel. If you're working with large sets of data and need to find something quickly, VLOOKUP will be your best friend.
- What is VLOOKUP?
- VLOOKUP Syntax
- Step-by-Step Example
- Common Errors and Solutions
- Real-Life Use Cases
What is VLOOKUP?
VLOOKUP stands for Vertical Lookup. It helps you search for a value in the first column of a table and return a value in the same row from a different column.
Imagine you have a product list with prices. Instead of manually searching for the price of “Product A,” VLOOKUP does it for you instantly!
VLOOKUP Syntax
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Parameters:
- lookup_value: What you want to search for (e.g., Product ID).
- table_array: The range of cells that contains the data.
- col_index_num: The column number (in the table) from which to return a value.
- range_lookup: Optional. Enter FALSE for exact match, TRUE for approximate match.
VLOOKUP Example
Let’s say you have this table:
| Product ID | Product Name | Price |
| 101 | Apple | 25 |
| 102 | Banana | 15 |
| 103 | Orange | 20 |
You want to find the price of Product ID 102.
Formula:
=VLOOKUP(102, A2:C4, 3, FALSE)
Result:
15
It searches the first column (Product ID), finds 102, and returns the value from the 3rd column (Price).
Common VLOOKUP Errors
| Error | Reason |
| #N/A | No exact match found |
| #REF! | Column index number is greater than the number of columns |
| #VALUE! | Wrong data type or wrong syntax |
How to fix:
- Always use FALSE for exact matches unless you're doing range lookups (e.g., grading).
- Make sure the lookup_value exists in the first column of the table_array.
- Use absolute cell references ($A$2:$C$100) when dragging formulas.
Real-Life Use Cases
- Get employee name from employee ID
- Fetch product price from product code
- Match student marks from ID
- Create invoice templates with automatic price lookups
Final Thoughts
VLOOKUP may look confusing at first, but once you practice it with real data, it becomes one of the most valuable tools in your Excel skillset.
Pro Tip: Use named ranges and data validation lists to make VLOOKUP more dynamic and error-free.