MENU
Donate

Free ebook

Free ebook: Excel Formulas Cheat Sheet

A genuine quick-reference across every function category on this site - lookup, logical, math, statistical, text, date, financial, and information - condensed to syntax and a one-line purpose, each linked to its full explanation.

Get the ebook

Course path

Turn this into a course path

Excel Formulas & Functions strings lessons like this one into a structured, mixed-friendly path.

View course path

Free tools

There's a free tool for this

Formula builder, formula explainer, CSV cleaner, and 8 more browser tools — no upload, no sign-up.

Browse free tools

Templates & data

Want to practice this yourself?

Free .xlsx templates and practice datasets — direct download, no sign-up.

Browse templates & datasets

Tip

Looking for something specific?

Search finds functions, articles, courses, and directory entries from one box — the icon lives in the header.

Try search
=ARTICLES

How to use VLOOKUP in Excel (with examples)

=YOUTUBE

Watch alongside this article

Public YouTube resources matched to this article's topic, functions, and practice goal.

video / Intermediate

Excel VLOOKUP: Basics of VLOOKUP and HLOOKUP explained with examples

Leila Gharani

Open on YouTube (opens in a new tab)
Leila Gharani

Loading preview…

VLOOKUP looks for a value in the first column of a range and returns a value from another column in the same row. It’s one of the most-used functions in Excel, and also one of the most misunderstood.

The syntax

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
  • lookup_value — what you’re searching for
  • table_array — the range to search (the lookup column must be first)
  • col_index_num — which column of that range to return, counting from 1
  • range_lookupFALSE for an exact match (almost always what you want)

A worked example

Say prices live in A:B, with product names in column A and prices in column B. To find the price of the product typed in D2:

=VLOOKUP(D2, A:B, 2, FALSE)

The 2 means “return the value from the second column of the range.” FALSE forces an exact match.

Common errors

  • #N/A — the value wasn’t found. Check for stray spaces or a mismatch between text and numbers.
  • #REF!col_index_num is larger than the number of columns in the range.
  • Returning the wrong value — you left range_lookup blank or set it to TRUE, which does an approximate match on unsorted data.

When to use XLOOKUP instead

If you have a modern version of Excel, XLOOKUP is more flexible: it can look left, doesn’t break when you insert columns, and defaults to an exact match.

=XLOOKUP(D2, A:A, B:B)

Same result, fewer footguns.

=PRACTICE

Go deeper with this skill

Write formulas that are correct, readable, and resilient when the workbook changes. For this article, the goal is to practice: A plain-English guide to VLOOKUP: the syntax, a worked example, the most common errors, and when to use XLOOKUP instead.

Practice workbook setup

Create a small table with clean headers, sample edge cases, and expected outputs you can check manually.

Practice workflow

  1. Write the business rule in plain English before writing the formula.
  2. Build the formula in small pieces and test each piece.
  3. Use absolute references, table references, or named ranges intentionally.
  4. Test blanks, missing values, duplicate matches, and unexpected text.

Quality checks

  • The formula returns the expected result for normal and edge-case rows.
  • References point to stable ranges or tables.
  • Someone else can understand the formula after reading the labels around it.

Common mistakes

  • Fixing one row without testing the rest of the column.
  • Using approximate match or partial criteria without meaning to.
  • Letting hidden spaces or text numbers cause false mismatches.

Next actions

  • Create three test rows that should return different outcomes.
  • Compare the result with an alternate formula or manual filter.

Formula focus: test VLOOKUP(), XLOOKUP() with normal rows, blank inputs, and at least one edge case.