Excel lookup functions: lessons and a project
For anyone who has to match a code or a name against another list: prices, staff details, grades. You'll use VLOOKUP, then XLOOKUP and INDEX with MATCH, which can look left, and approximate match for bands such as delivery charges. By the end you'll have built an order form that fills in each item's description and price from its code.
9 lessons43 exercises27 Check questions1 free lessona project in Excel3 suggested CPD hours
In D2, look up each employee's manager using the table in H1:J5.
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Staff ID | Employee | Team | Manager | Office | Team | Manager | Office | ||
| 2 | 1001 | Grace | Sales | Sales | B. Reid | 2.03 | ||||
| 3 | 1002 | Tom | Finance | Finance | D. Fraser | 1.12 | ||||
| 4 | 1003 | Priya | Support | Support | A. Morgan | G.02 | ||||
| 5 | 1004 | Marek | Marketing | Marketing | C. Lowe | 3.08 | ||||
| 6 | 1005 | Nia | Sales | |||||||
| 7 | 1006 | Ollie | Finance | |||||||
| 8 | 1007 | Lucy | Support | Staff ID | 1007 | |||||
| 9 | 1008 | Hamza | Marketing | Name | ||||||
| 10 | 1009 | Rachel | Sales | |||||||
| 11 | 1010 | Sunil | Finance | |||||||
| 12 | 1011 | Tanya | Support | |||||||
| 13 | 1012 | Will | Marketing |
The lessons
Each lesson starts with a short worked example, then exercises on real-looking data, marked the moment you press Check, with hints when you need them. It ends with a Check: new questions on fresh data, with no hints. Pass it and the lesson is marked Secure.
- VLOOKUP Free
Pulling information from another table · 4 exercises · a Check of 3 questions · guide: VLOOKUP - Bands and approximate match Pro
VLOOKUP with TRUE, XLOOKUP match mode -1 · 4 exercises · a Check of 3 questions - XLOOKUP and INDEX/MATCH Pro
Modern lookups that can look left · 4 exercises · a Check of 3 questions · guide: XLOOKUP - Stock and ordering Pro
Stock value, reorder flags, whole packs, SUMIF, weeks left · 5 exercises · a Check of 3 questions - Review: lookups Pro
VLOOKUP, HLOOKUP, XLOOKUP, INDEX, MATCH · 7 exercises · a Check of 3 questions
Extra practice
Useful, but not needed for the project.
- VLOOKUP practice Pro
price lists, column numbers, IFERROR, VLOOKUP in a sum, MATCH for the column · 5 exercises · a Check of 3 questions · guide: VLOOKUP not working - HLOOKUP: tables that run across Pro
HLOOKUP, row number, exact and approximate · 5 exercises · a Check of 3 questions - INDEX and MATCH, one at a time Pro
MATCH position, INDEX by number, two-way INDEX, MATCH bands · 4 exercises · a Check of 3 questions · guide: INDEX and MATCH - INDEX and MATCH: lookups to the left and two-way Pro
MATCH across a row, is it on the list, lookups to the left, top seller, two-way lookup · 5 exercises · a Check of 3 questions · guide: Compare two lists in Excel
The project in Excel: Stationery order form
Turn a supplier catalogue into an order form that fills itself in.
What you'll build:
- Descriptions and prices looked up from codes
- A delivery charge from the order value band
- Reorder flags from stock levels
- A friendly message for a code that isn't found
Download the workbook and do the job in Excel. A Check sheet in the workbook ticks off each task as you get it right, and the model answers are there to compare with when you've finished. You'll need Excel 2019 or later, or Excel for the web, which is free with a Microsoft account.
Counts towards a certificate
Unit 5 is part of the Excel Intermediate certificate of achievement (Units 4 to 6, 9 hours of suggested CPD). To earn it, pass the Check in every lesson of those units while signed in (reviews and extra practice aren't needed), and finish each unit's project in Excel. Our server checks the work itself. Certificates come with Pro: see how they work.
Online practice and assessment, completed without supervision. Confident Cells is independent and isn’t connected with Microsoft. This is not a formal qualification.
Guides for this topic
- #N/A in Excel: what it means and how to fix itWhy VLOOKUP, XLOOKUP and MATCH show #N/A, the five usual causes from extra spaces to numbers stored as text, and how to fix each, with a sheet to practise on.
- Compare two lists in ExcelHow to compare two lists in Excel: check if each name is on the other list with MATCH or COUNTIF, show Not found with XLOOKUP, and list what's missing.
- INDEX and MATCH: a simple worked exampleHow INDEX and MATCH look up a value in any column, left or right of the one you search, in plain steps with worked numbers. Try it in a free practice box.
- VLOOKUP not working: 6 common problems and how to fix themWhy VLOOKUP gives #N/A or a wrong answer: no FALSE, extra spaces, numbers stored as text, a wrong column number, looking left or an unlocked table.
- VLOOKUP: a simple worked exampleHow VLOOKUP finds a value in one table and brings back a matching value from another column, with a worked example, the common mistakes and a sheet to practise on.
- XLOOKUP: a simple worked exampleHow XLOOKUP finds a value in one column and brings back the matching value from another, even to the left, with a worked example and a sheet to practise on.
Questions
VLOOKUP or XLOOKUP?
If everyone who uses the file has Microsoft 365 or Excel 2021 or later, XLOOKUP. It can look left, needs no column number, and still works when someone inserts a column. VLOOKUP works in every version and you'll meet it in other people's files, so it's worth knowing too. INDEX with MATCH does what XLOOKUP does in older Excel.
Why do I get #N/A?
The lookup didn't find a match. The usual causes are an extra space after a name, a number stored as text in one list, a table that slid down when the formula was copied, and a VLOOKUP without FALSE on the end. The #N/A guide goes through each one.