// Excel Tutorial

The VLOOKUP Formula

Learn how to look up data from a large data range in Excel using VLOOKUP — one of the most powerful and commonly used functions in real business work.

🎯
What you'll learn: How to use VLOOKUP to match and pull data between two files or sheets based on a common key column — a task that comes up constantly in MIS, finance, audit, and data analysis work.

The Scenario

We have two files (or sheets). The goal is to pull the Description from File 1 into File 2, matching rows by Part Number.

File 1 — Master List

Part NoDescription
257340100101Tyre A
257340200111Tyre B
257440200102Tyre C
257440200103Tyre D
257440200106Tyre E

File 2 — Transactions

Part NoRateQty
2573401001014345200
2574402001024400400
2574402001033908500
2574402001033400230

Our aim: Pull the Description of each Part Number in File 2 from File 1.

Step-by-Step Guide

1

Identify Master vs Transaction File

File 1 is the Master (source of the Description data). File 2 is the Transaction file where we want the data to appear.

2

Identify the Key Column

The Key Column is the one common to both files — the column we will search by. Here it is Part No, which appears first in both files.

3

Name the Range in File 1

In File 1, select the entire table. In the Name Box (top-left of Excel, shows cell address), type a name such as Table and press Enter. This makes the formula cleaner and safer across files.

4

Enter the VLOOKUP Formula in File 2

In a blank column in File 2, type the formula below. A2 is the Part No in the current row.

=VLOOKUP(A2, Table, 2, FALSE)

— A2 : the Part No to search for (key field)
— Table : named range in File 1 (all columns)
— 2 : return column 2 of the range (Description)
— FALSE : exact match only (always use FALSE)

Understanding Each Argument

ArgumentWhat it MeansIn Our Example
lookup_valueThe value to search forPart No in the current row (A2)
table_arrayThe range to search inNamed range "Table" in File 1
col_index_numColumn number to return2 = the Description column
range_lookupExact or approximate matchFALSE = exact match (always use this)

Troubleshooting #N/A Errors

If VLOOKUP returns #N/A for all or most rows, work through these checks in order.
a

Verify the formula

Confirm all four arguments are correct and the range name matches exactly — names are case-sensitive.

b

Check data types match

The key column must be the same type in both files — both numbers OR both text. Use =ISNUMBER(A2) to check. Powerutils also has a utility under Miscellaneous to detect this.

c

Use #N/A results as a gap report

Any #N/A result means that Part Number from File 2 does not exist in the master — this is valuable exception reporting in itself.

📥
Download the example file to practice with a live working VLOOKUP: vlookup.zip