VLOOKUP Examples: 6 Practical Formulas You Can Copy

A VLOOKUP example searches for a value in the first column of a table and returns data from a column you specify in the same row. The basic syntax is =VLOOKUP(lookup_value, table_array, col_index_num, FALSE). Use FALSE for exact matches on IDs or codes, and TRUE for approximate matches like grade bands or tax slabs.

  • Key Takeaway 1: VLOOKUP takes four arguments: lookup value, table array, column index number, and match type (TRUE for approximate, FALSE for exact).
  • Key Takeaway 2: Use FALSE for exact matches (student IDs, product codes) and TRUE for grade bands or tax slabs where ranges matter.
  • Key Takeaway 3: Wrap any VLOOKUP in IFERROR to stop #N/A errors from appearing in your reports.
  • Key Takeaway 4: Replace a hard-coded column index number with MATCH to make your formula automatically adjust when columns shift.
  • Key Takeaway 5: Excel skills, including VLOOKUP, consistently appear in India’s top data analyst job requirements on LinkedIn and Naukri.com.

Example 1 and 2: Basic Exact-Match Lookups

These two examples cover the most common scenario you will hit at work: you have a reference table and you need to pull one piece of information from it using a unique identifier. Think employee IDs, product SKUs, or student roll numbers.

Example 1: Employee Salary Lookup

Imagine you have a company roster in columns A and B. Column A holds Employee IDs (E001, E002, etc.) and column B holds their monthly salary. You are building a payroll summary sheet and need to pull each person’s salary using their ID.

Employee ID Name Monthly Salary (INR)
E001 Priya Sharma 55,000
E002 Rahul Mehta 72,000
E003 Anita Das 48,500
E004 Vikram Nair 91,000

Your lookup formula in the summary sheet, where G2 contains the Employee ID you want, would be:

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

This returns the salary from the third column of the table. The FALSE argument ensures you only get a result when the ID matches exactly. If you type E003, you get 48,500. No guessing, no manual scanning.

Example 2: Product Price List Lookup

An e-commerce team in Mumbai maintains a master price list in Sheet2. On Sheet1, they log orders and want the price to auto-fill when a product code is entered in column A.

=VLOOKUP(A2, Sheet2!$A:$C, 3, FALSE)

The range Sheet2!$A:$C covers the entire columns so you do not have to update the formula as new products are added. Column 3 holds the selling price. This is a classic vlookup formula example that saves hours of copy-pasting every week. One real mistake beginners make here: they forget to lock the table array with absolute references when copying the formula down, so the range shifts and breaks. Always write it as =VLOOKUP(A2, Sheet2!$A:$C, 3, FALSE) when dragging down.

According to Microsoft’s Excel function usage data (Microsoft Support Documentation, 2023), VLOOKUP remains one of the top five most-used functions across Excel users globally, which explains why it shows up in almost every data analyst interview questions set you will encounter.

Example 3 and 4: Approximate Match and Grade Lookups

Approximate match (TRUE) is where VLOOKUP gets genuinely powerful. Instead of hunting for an exact value, it finds the largest value in the lookup column that is less than or equal to your search value. This is perfect for grade bands, tax brackets, and commission tiers.

Example 3: Student Grade Calculator

This is one of the most searched excel vlookup example types, and for good reason. Teachers, training coordinators, and HR teams all need to convert a raw score into a grade band. Set up a reference table like this:

Minimum Score Grade
0 F
35 D
50 C
60 B
75 A
90 A+

If a student’s score is in cell B2, your formula is:

=VLOOKUP(B2, $E$2:$F$7, 2, TRUE)

A score of 73 returns “B” because 73 is greater than or equal to 60 but less than 75. This only works correctly if your reference table is sorted in ascending order by the first column. That is the rule Excel follows when you use TRUE: it scans down until it overshoots, then steps back one row. Forget to sort the table and you will get completely wrong grades.

Example 4: Sales Commission Tier Lookup

The same logic applies to commission tiers. A sales manager at a Bengaluru SaaS company might have this structure: 0-50k revenue = 5% commission, 50k-100k = 8%, 100k+ = 12%. One VLOOKUP with approximate match handles the entire slab system without a single nested IF formula. This is exactly the kind of practical skill that separates a competent Excel user from someone who is ready to take on real data analytics projects.

NASSCOM’s Future of Work report (2024) found that spreadsheet and data wrangling skills are listed as requirements in over 68% of entry-level data analyst roles in India, making examples like these directly relevant to your job search.

Example 5 and 6: IFERROR Wrapping and Dynamic Column Index

These two techniques take you from basic to genuinely useful. They are what you would see in a production-ready Excel workbook at a real company, not just a practice file.

Example 5: VLOOKUP with IFERROR

When VLOOKUP cannot find a match, it returns #N/A. In a shared report or a client dashboard, that error looks unprofessional and confuses non-technical readers. The fix is simple: wrap the entire VLOOKUP inside IFERROR.

=IFERROR(VLOOKUP(A2, $D$2:$F$100, 2, FALSE), “Not Found”)

If the lookup succeeds, you get the normal result. If it fails, you get the text “Not Found” instead of a red error. You can replace “Not Found” with 0, a dash, or any text that makes sense for your report. This is the answer to the question “how do I combine VLOOKUP with IFERROR?” and it is one of the first things a senior analyst will check when reviewing your work. According to LinkedIn’s Jobs on the Rise India report (2024), data analyst roles grew by 41% year-on-year, and employers consistently flag Excel error-handling as a gap in junior candidates.

Example 6: Dynamic Column Index with MATCH

Hard-coding the column index number (the 2 or 3 in your formula) is fragile. If someone inserts a column in your table, the index shifts and your formula returns the wrong data silently. That is a dangerous bug in a financial report.

The fix is to replace the number with a MATCH function that finds the column position dynamically:

=VLOOKUP(A2, $B$2:$E$100, MATCH(“Salary”, $B$1:$E$1, 0), FALSE)

MATCH(“Salary”, $B$1:$E$1, 0) scans your header row and returns the position of the column labelled “Salary”. Even if someone inserts a column between B and E tomorrow, the formula self-corrects. This combination of VLOOKUP and MATCH is one of the techniques that bridges basic Excel skills and the kind of analytical thinking covered in dedicated data analyst vs data scientist career discussions, because it shows you understand data structure, not just formulas.

Quick Reference Summary

Here is a printable-style summary of all six examples, formatted so you can save or screenshot it as your own vlookup formula in excel with example pdf reference. This table captures the formula pattern, the match type, and the key use case for each.

# Use Case Formula Pattern Match Type Key Point
1 Employee Salary =VLOOKUP(G2, A2:C5, 3, FALSE) Exact Lock the range with $ when copying down
2 Product Price List =VLOOKUP(A2, Sheet2!$A:$C, 3, FALSE) Exact Use full column references to handle new rows
3 Student Grade =VLOOKUP(B2, $E$2:$F$7, 2, TRUE) Approximate Reference table must be sorted ascending
4 Sales Commission =VLOOKUP(B2, $H$2:$I$5, 2, TRUE) Approximate Replaces complex nested IF chains
5 Error Handling =IFERROR(VLOOKUP(…), “Not Found”) Either Stops #N/A from appearing in reports
6 Dynamic Columns =VLOOKUP(A2, $B$2:$E$100, MATCH(“Col”, $B$1:$E$1, 0), FALSE) Exact Self-corrects when columns are inserted

If you are preparing for a role where these skills matter, check out the guide on how to become a data analyst in India for a full career roadmap. And if you are curious how Excel skills compare to Python-based tools, the Pandas and NumPy explained guide is a natural next read. Excel handles structured lookups brilliantly, but Python handles scale that Excel simply cannot match.

For professionals thinking about which technical skills pay the most right now, the highest paying tech skills for 2026 breakdown is worth reading alongside this. Data skills are just the entry point.

Frequently Asked Questions

What is a simple VLOOKUP example?

A simple vlookup example is =VLOOKUP(A2, B2:D10, 2, FALSE). It searches for the value in A2 within the first column of B2:D10 and returns the value from the second column of that range. The FALSE argument means it only returns a result when it finds an exact match.

How do I use VLOOKUP for grades?

Set up a two-column reference table with minimum scores in the first column and grade labels in the second, sorted in ascending order. Then use =VLOOKUP(score, grade_table, 2, TRUE) with TRUE for approximate match. Excel finds the highest minimum score that does not exceed the student’s actual score and returns the matching grade.

Can I get a VLOOKUP example PDF?

The Quick Reference Summary table in this article is designed to be saved or printed as a cheat sheet covering all six formula patterns. Screenshot or print that section for an instant reference. Microsoft’s official Excel function documentation at support.microsoft.com also provides downloadable function reference guides.

How do I combine VLOOKUP with IFERROR?

Wrap your entire VLOOKUP formula inside IFERROR like this: =IFERROR(VLOOKUP(A2, $D$2:$F$100, 2, FALSE), "Not Found"). When the lookup succeeds, you get the normal result. When it fails, you get your chosen fallback text or value instead of the #N/A error that would otherwise appear.

How do I make the VLOOKUP column index dynamic?

Replace the hard-coded column number with a MATCH function: =VLOOKUP(A2, $B$2:$E$100, MATCH("ColumnName", $B$1:$E$1, 0), FALSE). MATCH scans your header row and returns the correct position automatically, so if someone inserts or moves a column, your formula still pulls data from the right place.

What is the difference between VLOOKUP and XLOOKUP?

XLOOKUP is the modern replacement for VLOOKUP available in Excel 365 and Excel 2021. Unlike VLOOKUP, XLOOKUP can search left or right, does not require the lookup column to be the first column in the range, and handles missing values more cleanly by default. For users on older Excel versions, VLOOKUP remains the standard lookup function to learn first.

You now have six copy-ready VLOOKUP formulas that cover the scenarios most likely to appear in real work and in interviews. Practice each one in a fresh Excel sheet this week using your own data.

  1. Open Excel, create a small employee or product table, and build all six formulas from scratch without looking at this page. That is the fastest way to make them stick.
  2. Read the data analyst interview questions guide to see exactly how VLOOKUP gets tested in hiring rounds at Indian companies.
  3. If you want to move beyond spreadsheets into security analytics, SOC dashboards, or log analysis, explore the EC-Council Certified SOC Analyst course at 3.0 University. The same logic you use to filter and match data in Excel applies directly to filtering security events and spotting anomalies in a SOC environment. Browse the full 3.0 University online certification courses to find the right certification for where you want to go next.

Last updated: June 2025. Reviewed by the 3University editorial team.

We create, review, and maintain educational content covering Cybersecurity, Ethical Hacking, Artificial Intelligence, Blockchain, Web3, and emerging technologies.

Read More Articles