Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Look up data by using functions
MO-211

Look up data by using the VLOOKUP() function

=VLOOKUP(F2, $A$2:$D$6, 4, FALSE)

Find F2 in the first column of A2:D6, return the 4th column of that row, and match exactly. Lock the table before you fill it down: the exam checks every cell in the range.

What the MO-211 task asks

MO-211 is performance-based: you build the answer in a live workbook. In our MO-211 practice exams a VLOOKUP-shaped task describes the result — turn each code into a name from the register, say — and adds the conditions that decide the arguments: “the code must match exactly” is FALSE in the fourth argument, and “the table reference must be locked so the formula fills down” means dollar signs on the table.

The other wording to recognise is the banded table, where the first column “holds the lower bound of each band and is sorted ascending” and each row should take “the nearest band at or below”. That is the one case where you want VLOOKUP's approximate match, TRUE.

Our grader checks the value in every cell of the target range, and some tasks also check that the table reference is absolute. It reads the values, not the function, so any lookup that produces them earns the points — but one wrong cell fails the whole range.

Worked examples

Type these into a blank sheet to follow along. Every result below is what Excel showed.

Staff register
ABCD
1CodeNameTeamRate
2S-01Ana RuizOps32
3S-02Ben ColeSales28
4S-03Cara DiazOps35
5S-04Dev ShahIT41
6S-05Eli MossSales30
Shifts (the video fills G2:G5)
FG
1Shift codeRate
2S-0335
3S-0530
4S-07#N/A
5S-0132
Delivery bands
IJ
1Min kmFee
204
357
42012
55020
An exact match
=VLOOKUP("S-04", A2:D6, 4, FALSE)
Returns 41

Find S-04 down column A and return the 4th column of the table, Rate. FALSE asks for an exact match.

The column number counts from the table's left edge
=VLOOKUP("Dev Shah", B2:D6, 3, FALSE)
Returns 41

This table starts in column B, so Rate is its 3rd column, not the 4th. Ask for column 4 and the same lookup returns #REF!.

A missing code, matched exactly
=VLOOKUP("S-07", A2:D6, 4, FALSE)
Returns #N/A

There is no S-07, and #N/A says so. Leave out FALSE and the same lookup returns 30 — S-05's rate — with no warning.

The nearest band at or below
=VLOOKUP(12, I2:J5, 2, TRUE)
Returns 7

12 km is not a band boundary, so an exact match returns #N/A. TRUE takes the largest Min km that does not exceed 12 — 5 — so the fee is 7. This only works because column I is sorted ascending.

Filled down a column
=VLOOKUP(F2, $A$2:$D$6, 4, FALSE)
Returns 35, 30, #N/A, 32 in G2:G5

The shape of most VLOOKUP tasks: one formula in the first cell, filled down, with the table locked so every row searches the same rows. This is what the video below builds.

Watch it done in Excel

The last example above, recorded in real Excel on the same grid.

Exam traps

Leaving out the fourth argument

VLOOKUP's default is approximate match. =VLOOKUP("S-07", A2:D6, 4) returns 30, S-05's rate, for a code that is not in the register. Write FALSE unless the task describes bands.

Counting the column number from column A

The number counts from the table's own left edge. With the table in B2:D6, Rate is column 3; =VLOOKUP("Dev Shah", B2:D6, 4, FALSE) returns #REF!.

Filling down without locking the table

Unlocked, =VLOOKUP(F2, A2:D6, 4, FALSE) filled to G5 becomes =VLOOKUP(F5, A5:D9, 4, FALSE). The table has slid past S-01, so G5 shows #N/A instead of 32 while the first rows still look right.

Looking up a value to the left

VLOOKUP only returns columns to the right of the one it searches. If the task wants a code from a name and the codes sit to the left, use XLOOKUP or INDEX with MATCH instead.

FAQ

Is VLOOKUP case-sensitive?

No. =VLOOKUP("s-02", A2:D6, 2, FALSE) returns Ben Cole, the same as "S-02".

When is TRUE the right fourth argument?

When the first column holds the lower bound of each band, sorted ascending, and you want the band a value falls into. On the delivery bands, 4.9 km returns 4, 5 km returns 7 and 75 km returns 20.

Can VLOOKUP use wildcards?

Yes, with FALSE. =VLOOKUP("S-0*", A2:D6, 2, FALSE) returns Ana Ruiz, the first code that fits the pattern.

Should I use VLOOKUP or XLOOKUP on the exam?

Either, when the task only describes the result: our grader checks the values in the cells, not the function. The outline names both, so learn both.

New to this function?

This page covers what the exam asks. For the full how-to — every argument, more examples and a practice workbook — read our guide on dfwexcel.com.

The VLOOKUP function, explained — dfwexcel.com

Try it under exam conditions

Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.

No credit card needed.