Advanced Excel
About Lesson

Function: VLOOKUP()


🧭 Purpose:

The VLOOKUP() function (Vertical Lookup) searches for a value in the first column of a table and returns a value from another column in the same row.

It’s one of the most useful functions for searching and fetching related data from large lists — like fetching a student’s course name, employee salary, or product price.


🧮 Syntax: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Parameters:

Parameter Description
lookup_value The value to search for (e.g., Student ID, Product Code).
table_array The data range that contains the lookup value and the result column.
col_index_num The column number (from the left of table_array) from which to return the result.
[range_lookup] Optional: Use FALSE for an exact match, TRUE for an approximate match.

📘 Explanation:

Think of VLOOKUP as asking Excel:

“Find this value in the first column, and bring me the related info from another column.”

Example:
=VLOOKUP("S101", A2:D10, 3, FALSE)
→ Looks for S101 in the first column of A2:D10, and returns the value from the 3rd column of that range.


🧑‍🎓 Example 1: Student Fee Finder

Student ID Name Course Fees (₹)
S101 Riya Sen Graphic Design 15000
S102 Kunal Das Web Design 18000
S103 Arnav Roy Tally GST 12000
S104 Sneha Ghosh Excel Advance 10000

🔹 Formula:

 
=VLOOKUP("S103", A2:D5, 4, FALSE)

✅ Result → 12000

🎯 It finds S103 in column A and returns the 4th column value (Fees).


💼 Example 2: Product Price Lookup

Product Code Product Name Brand Price (₹)
P1001 Mobile Cover MI 250
P1002 Earphones Boat 899
P1003 Power Bank Samsung 1200
P1004 Charger Realme 499

Formula:

 
=VLOOKUP("P1003", A2:D5, 4, FALSE)

✅ Result → 1200

📱 Used in retail to auto-fetch prices from master lists.


⚙️ Common Mistakes & Tips

  • Always make sure the lookup value column is the first column in the table range.

  • Use $ (absolute reference) in table ranges when copying formulas.
    → Example: =VLOOKUP(A2, $A$2:$D$10, 3, FALSE)

  • For partial matches (like searching nearest value), use TRUE.


🧩 Project Tasks for Students


🧠 Project 1: School Fee Record

Create a lookup to find course fees by Student ID.

Student ID Name Course Fees (₹)
S201 Ritu Sharma Excel 8000
S202 Anil Kumar Photoshop 15000
S203 Sneha Das Web Design 18000
S204 Rahul Sen Illustrator 12000

➡️ Task: Enter a Student ID in a separate cell (say G2) and use

 
=VLOOKUP(G2, A2:D5, 4, FALSE)

to display their fees.


🏪 Project 2: Grocery Price Finder

Item Code Item Name Unit Price per kg (₹)
G101 Rice 1kg 60
G102 Wheat 1kg 55
G103 Sugar 1kg 48
G104 Tea 250g 120

➡️ Task: Let users type an Item Code (like “G104”) and display its Price.


💳 Project 3: Employee Salary Sheet

Emp ID Name Department Salary (₹)
E001 Raj Malhotra Accounts 32000
E002 Ananya Das HR 28000
E003 Vikram Jain IT 45000
E004 Nidhi Roy Marketing 38000

➡️ Task: Create a dropdown of Emp IDs and use VLOOKUP to show the Department and Salary.


🧾 Project 4: Mobile Shop Sales Tracker

Product Code Model Name Brand MRP (₹)
M101 Galaxy A14 Samsung 14500
M102 iPhone SE Apple 45000
M103 Narzo N55 Realme 12999
M104 Redmi Note 13 Xiaomi 14999

➡️ Task: Find the MRP based on Product Code entered by the user.


🏦 Project 5: Bank Loan Interest Lookup

Loan Type Code Loan Type Interest Rate (%)
L101 Home Loan 8.2
L102 Car Loan 9.5
L103 Education Loan 7.4
L104 Personal Loan 11.0

➡️ Task: When a user selects a Loan Type Code, display the Interest Rate.

💡 Hint: =VLOOKUP(G2, A2:C5, 3, FALSE)


Key Tip:
If your lookup data is dynamic, use VLOOKUP() inside IFERROR() to avoid #N/A errors:

 
=IFERROR(VLOOKUP(A2, $A$2:$D$10, 3, FALSE), "Not Found")


School Mark sheet Project

Click To open



Project Advanced vlookup With Multiple Sheet

Sample Data Table – “Employee Sales Data ”

Emp ID Employee Name Department Location Date of Joining Sales (₹) Rating
E1001 Aditi Sharma Sales Mumbai 12-Jan-2019 8,75,000 A
E1002 Rohit Mehta Marketing Delhi 05-Mar-2020 6,20,000 B
E1003 Priya Iyer HR Bengaluru 19-Nov-2018 5,45,000 A
E1004 Arjun Singh IT Pune 23-Jul-2021 7,80,000 B
E1005 Neha Verma Finance Hyderabad 11-Dec-2017 9,10,000 A
E1006 Manish Patel Sales Ahmedabad 15-Jan-2022 4,95,000 C
E1007 Kavita Reddy Marketing Chennai 27-Oct-2019 6,75,000 B
E1008 Sameer Khan IT Noida 03-Feb-2020 7,40,000 A
E1009 Ritu Das HR Kolkata 09-May-2021 5,30,000 B
E1010 Karan Gupta Finance Mumbai 29-Mar-2018 9,85,000 A
E1011 Sneha Nair Sales Kochi 07-Jun-2019 6,15,000 B
E1012 Abhishek Rao IT Bengaluru 18-Nov-2020 8,20,000 A
E1013 Tanya Bhatt Marketing Jaipur 02-Feb-2018 5,90,000 C
E1014 Vikram Joshi HR Delhi 25-Aug-2021 6,10,000 B
E1015 Pooja Sinha Finance Lucknow 14-Jul-2017 9,55,000 A
E1016 Deepak Tiwari Sales Indore 10-Sep-2020 5,75,000 B
E1017 Meena Pillai Marketing Kochi 21-Jan-2019 7,05,000 A
E1018 Anil Bhat IT Hyderabad 16-Dec-2022 4,85,000 C
E1019 Rachita Bose HR Kolkata 08-Apr-2020 5,50,000 B
E1020 Gaurav Jain Finance Delhi 12-Oct-2019 8,95,000  
 
 

  1. Find Sales by Employee Name
    =VLOOKUP("Rohit Mehta", A2:G21, 6, FALSE)

  2. Find Department using Employee ID
    =VLOOKUP("E1012", A2:G21, 3, FALSE)

  3. Find Location of the top-rated employee (Rating = “A”)

  4. Use VLOOKUP with approximate match to find the nearest rating based on sales slabs.

  5. Nested VLOOKUP – Find the “Department” of the employee with the highest Sales.



Project vlookup With Multiple Sheet