0Pricing
Excel Formulas Academy · Lesson

How VLOOKUP Searches a Table

Look up a value in the first column and return data from another column.

How VLOOKUP Searches a Table is a free Excel Formulas Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Meet VLOOKUP

VLOOKUP stands for Vertical Lookup. It searches down the first column of a table for a value you give it, then returns something from the same row in another column.

Think of a phone book: you find a name, then read across to get the number. VLOOKUP does exactly that for your spreadsheet.

The V reminds you it searches vertically (down a column). In the next scenes you will learn its four parts and use it on a real price table.

The Four Arguments

VLOOKUP takes four pieces of information, separated by commas:

  • lookup_value - what you are searching for
  • table_array - the range of cells that holds your data
  • col_index_num - which column number to return from
  • [range_lookup] - TRUE for approximate, FALSE for exact match

The square brackets mean the last argument is optional, but you should almost always set it. Here is the shape of the formula:

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

A Sample Price Table

Imagine a small product table in cells A1:C4:

  • Row 1 headers: Code, Name, Price
  • Row 2: A100, Apple, 0.50
  • Row 3: B200, Banana, 0.30
  • Row 4: C300, Cherry, 1.20

The first column (Code) is where VLOOKUP will search. The other columns hold data you can return. We will look up a product by its code and pull back its price.

Your First VLOOKUP

To find the price of code B200, we search column 1 for B200 and return column 3 (Price):

Reading it aloud: look up the value "B200" in the table A1:C4, and when found, return the value from the 3rd column, using an exact match (FALSE).

The result is 0.30. VLOOKUP found B200 in row 3, then read across to the third column.

=VLOOKUP("B200", A1:C4, 3, FALSE)

Counting the Column Index

The col_index_num is counted from the left edge of your table_array, not from column A of the sheet.

In our range A1:C4, the columns are numbered:

  • Column 1 = Code (the search column)
  • Column 2 = Name
  • Column 3 = Price

So to return the Name, use index 2; for Price, use index 3. Index 1 simply returns the value you searched for.

=VLOOKUP("C300", A1:C4, 2, FALSE)

Looking Up From a Cell

Hard-coding "B200" is rare. Usually the value you want lives in another cell. Suppose someone types a code in E2. Point VLOOKUP at that cell instead of a fixed text.

Now whenever E2 changes, the result updates automatically. This is how lookups power invoices, dashboards, and search boxes.

=VLOOKUP(E2, A1:C4, 3, FALSE)

Why Search the First Column

VLOOKUP has one strict rule: it can only search the leftmost column of the table_array. It cannot search column 2 and look back to column 1.

That is why the column you want to search must be the first column of your range. If your codes are in column B, start your table_array at column B, like B1:D4.

This left-column limit is the most common cause of VLOOKUP frustration, and a later lesson covers how to work around it.

Including the Header Row or Not

You can include or exclude the header row in your table_array. Both work:

  • A1:C4 includes headers (Code, Name, Price)
  • A2:C4 excludes headers

With an exact match (FALSE), headers do not cause wrong answers because they will not match a product code. Many people include them so the range is easy to read. Just remember the column index is still counted from the left of whatever range you chose.

Worked Example: An Invoice

Say you are building an invoice. The product code is in A10 and you want its name and price pulled from the table.

Name in B10:

Price in C10:

One table feeds many cells. Typing a code once fills in the rest, which is the everyday power of VLOOKUP.

=VLOOKUP(A10, $A$1:$C$4, 2, FALSE)
=VLOOKUP(A10, $A$1:$C$4, 3, FALSE)

Locking the Table With Dollar Signs

Did you notice the $ signs in $A$1:$C$4? When you copy a VLOOKUP down a column, you want the lookup value to shift (A10, A11, A12...) but the table to stay fixed.

Absolute references with dollar signs lock the table in place. Without them, copying down would drag the table off your data and produce errors. Lock the table_array; leave the lookup_value relative.

=VLOOKUP(A10, $A$1:$C$4, 3, FALSE)

VLOOKUP Across Sheets

Your data table often sits on a different tab. To reference a range on a sheet named Products, put the sheet name and an exclamation mark before the range.

If a sheet name contains spaces, wrap it in single quotes, like 'Price List'!A:C. The lookup works exactly the same, it just reads from another tab.

=VLOOKUP(A2, Products!$A$1:$C$100, 3, FALSE)

Quick Check

Test your understanding of how VLOOKUP searches.

Recap: How VLOOKUP Searches

You now know the core of VLOOKUP:

  • It searches down the first column of your table_array
  • It takes four arguments: lookup_value, table_array, col_index_num, and range_lookup
  • col_index_num is counted from the left edge of the range
  • Use FALSE for an exact match in most cases
  • Lock the table with $ so it stays put when you copy down

Next you will dig into the difference between exact and approximate matching.

=VLOOKUP(A2, $A$1:$C$4, 3, FALSE)

Frequently asked questions

Is the “How VLOOKUP Searches a Table” lesson free?

Yes — the full text of “How VLOOKUP Searches a Table” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.

What will I learn in “How VLOOKUP Searches a Table”?

Look up a value in the first column and return data from another column. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Excel Formulas Academy?

No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “How VLOOKUP Searches a Table” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Excel Formulas Academy lesson?

Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. How VLOOKUP Searches a Table
  2. Exact vs Approximate Match
  3. Searching Across Rows With HLOOKUP
  4. Why VLOOKUP Sometimes Fails
← Back to Excel Formulas Academy