hands-onexcel

Hands-On Excel Practice VLOOKUP / XLOOKUP

Excel VLOOKUP practice

Type a product name and pull its price out of a table automatically. The single most asked-about Excel skill in office jobs, practiced the right way.

Core · About 3 minutes · Free, no sign-up · Updated

Try it yourself

Write in the yellow cells, then press Check.

06 VLOOKUP / XLOOKUP Core

Look it up

In E2, look up the price of the product typed in D2. Change D2 to test it: your formula should still work.

VLOOKUP(what, where, which column, FALSE). FALSE means "exact match only". XLOOKUP works too.

E2

Tips: click a cell while typing a formula to insert it, drag to select a range, F4 adds $, Esc cancels.

The guide · VLOOKUP / XLOOKUP

What VLOOKUP does

VLOOKUP finds a value in the first column of a table and returns something from the same row. =VLOOKUP(D2, A2:B6, 2, FALSE) means: find what's in D2 in the first column of A2:B6, and return the value from column 2 of that table.

Syntax

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

Why FALSE matters

If you leave the last argument out, VLOOKUP does an approximate match. That's meant for sorted number bands like tax brackets. On an unsorted list of names it can return the wrong row without any error, which is the worst kind of mistake. Write FALSE.

XLOOKUP: the modern version

In Excel 365 and 2021, =XLOOKUP(D2, A2:A6, B2:B6) does the same job. It looks in one column and returns from another, does an exact match by default, works to the left, and doesn't break when someone inserts a column. Both are accepted in this challenge.

Common mistakes

FAQ

How do I use VLOOKUP in Excel?
Write =VLOOKUP(value, table, column number, FALSE). For example =VLOOKUP(D2,A2:B6,2,FALSE) finds D2 in column A and returns the matching value from column B.
Why does VLOOKUP return #N/A?
The lookup value was not found in the first column of the table. Check spelling, extra spaces and that you used FALSE for an exact match.
Should I use VLOOKUP or XLOOKUP?
If you have Excel 365 or 2021, XLOOKUP is simpler and safer. VLOOKUP works in every version, so it is still worth knowing for interviews and older files.

Hands-On Excel Pro · coming soon

From first formula to job-ready.

  • 100+ challenges: lookups, pivot tables, dates, text cleanup, charts
  • An interview track modeled on the Excel tests employers use
  • Your progress saved across devices
  • New challenges every week
$29 one-time · early-bird price

You won't be charged today.

You're early!

Pro isn't open yet. We're building it right now. Leave your email and we'll hold the $29 early-bird price for you and tell you the day it launches.

One email when Pro launches. No spam.

New challenges every week.

Lookups, pivot tables, cleaning messy data, and a test-prep track for Excel assessments at job interviews. Get an email when new ones land.

Occasional emails, no spam, unsubscribe anytime.