Lahore, Pakistan Mon – Fri · 8:00 AM – 9:00 PM +92 321 1111 218

VLOOKUP Formula in Excel: Simple Guide with Examples

November 12, 2026

VLOOKUP formula in Excel example

If you work with student lists, price sheets, attendance records or sales data, you have probably faced this problem: you have two tables and need to pull matching information from one into the other. Doing it by hand is slow and full of mistakes. The VLOOKUP formula in Excel solves this in seconds, and it is one of the first skills every office worker, accountant and freelancer should learn.

In this guide we explain VLOOKUP in simple English, show a step-by-step example, list the most common errors and their fixes, and compare it with the newer XLOOKUP function. You can follow along with any version of Excel.

What is VLOOKUP?

VLOOKUP stands for vertical lookup. It searches for a value in the first column of a table and returns a value from another column in the same row. Think of it like finding a name in a phone book and reading the number next to it.

The VLOOKUP syntax

The formula has four parts:

  • lookup_value: the item you want to find, for example a roll number or product code.
  • table_array: the range of cells that contains your data. The lookup value must be in the first column of this range.
  • col_index_num: the column number (counting from the left of the table) that holds the answer.
  • range_lookup: use FALSE (or 0) for an exact match, which is what you want in almost every case.

Written out, it looks like this: =VLOOKUP(A2, F2:H100, 3, FALSE)

Step-by-step VLOOKUP example

Imagine you keep a small student sheet. Sheet 1 has roll numbers in column A. On another sheet you have a master list with roll number in column A, student name in column B and course in column C. You want to fill in the course name next to each roll number in Sheet 1.

Steps

  1. Click the cell where you want the result, for example B2 in Sheet 1.
  2. Type =VLOOKUP( and click the roll number cell A2.
  3. Type a comma, then select the master list range, for example A2:C200 on the other sheet.
  4. Type a comma and the number 3, because the course is in the third column of the range.
  5. Type a comma, then FALSE, close the bracket and press Enter.
  6. Drag the fill handle down to copy the formula for all rows.

The final formula would look like =VLOOKUP(A2, Master!A2:C200, 3, FALSE). Every roll number now brings its matching course automatically.

Lock the range with absolute references

When you drag the formula down, the table range can shift and produce wrong results. Press F4 after selecting the range so it becomes Master!$A$2:$C$200. The dollar signs keep the range fixed while the lookup value changes row by row.

Common VLOOKUP errors and how to fix them

#N/A error

This means Excel could not find the lookup value. Check for spelling differences, extra spaces at the end of the text, or numbers stored as text. The TRIM function can remove extra spaces. You can also wrap the formula in IFERROR to show a friendly message such as “Not found”.

#REF! error

This appears when the column number is larger than the number of columns in your table range. If your range has three columns, you cannot ask for column 4.

Wrong results

If the answers look random, you probably left out the last argument or used TRUE. Always type FALSE for an exact match unless you specifically need an approximate match, such as grade bands.

Lookup column is not the first column

VLOOKUP can only look to the right. If the value you search is not in the first column of your range, the formula fails. You can rearrange the columns, or use INDEX with MATCH, or XLOOKUP.

VLOOKUP vs XLOOKUP

XLOOKUP is a newer function that is available in Excel 2021 and Microsoft 365. It is not available in older versions such as Excel 2016 and 2019, so check your version before using it.

  • XLOOKUP can look in any direction, left or right.
  • You select the lookup column and the result column separately, so you do not count column numbers.
  • It uses exact match by default.

If your office still uses an older Excel, VLOOKUP is the safer choice, and it is a skill employers still expect. Learning both makes you flexible.

Tips to use VLOOKUP like a pro

  • Keep your data clean: one header row, no merged cells, no blank rows inside the table.
  • Convert your data to an Excel Table so ranges expand automatically when you add rows.
  • Use IFERROR to hide errors in reports you share with others.
  • Practice with your own real data, such as a fee register or stock list, so the logic sticks.

Learn this at Skills Up Academy

Formulas like VLOOKUP, IF, SUMIFS, pivot tables and dashboards are covered in our Advanced Excel course. If you are just starting, our Microsoft Office course builds a strong base in Excel, Word and PowerPoint. You can see all programs on our courses page.

Skills Up Academy was founded in 2011, has trained 3,000+ learners, and is registered with the Skills Development Authority, Govt. of Punjab. We offer classes at our Lahore campus and online, and your certificate can be verified online. We are open Monday to Friday, 8 AM to 9 PM. For the latest fee and the next batch, message us on WhatsApp: https://wa.me/923211111218.

Frequently asked questions

Is VLOOKUP hard to learn for beginners?

No. Once you understand the four parts of the formula, you can use it after a few practice sessions. The step-by-step example above is a good way to start.

Why does my VLOOKUP show #N/A even though the value exists?

The most common reasons are hidden spaces, different data types (text versus number) or a lookup value that is not in the first column of the range. Clean the data with TRIM and check the formats.

Should I learn VLOOKUP or XLOOKUP?

Learn VLOOKUP first because it works in every version and appears in many office files. Then learn XLOOKUP if your Excel version supports it.

Can I learn Excel formulas online in Lahore?

Yes. Skills Up Academy offers both campus and online classes. Message us on WhatsApp to ask about timings.

Ready to learn a skill that pays?

Join onsite in Lahore, or online from anywhere in Pakistan.