The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for job seekers: learn both
Fill this column from that sheet, then say why your formula broke: the lookup task turns up in Excel tests and office work alike. The Complete Excel Course with AI Integration teaches XLOOKUP and VLOOKUP side by side on the PeopleInsight HR workbook, an industry-standard project, with INDEX and MATCH, IFERROR and FILTER beside them. Here are those lessons, with the habits that keep a lookup right under a clock: locked ranges, clean keys and a challenge to rehearse on.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Fill an empty column on one sheet from a table on another with VLOOKUP, using FALSE for an exact match and a column number counted from the left of the table.
- Write XLOOKUP with a lookup range, a return range and its own not-found text, and explain in an interview why it survives an inserted column when VLOOKUP does not.
- Lock the lookup table with F4 before filling down, so the last row of a long sheet is as right as the first.
- Handle lookup errors in VLOOKUP and XLOOKUP formulas with IFERROR, showing a readable message such as NOT MATCHED, and trace the mismatched code behind each one.
- Return a value from a column to the left of the key with INDEX and MATCH, the method that works in any version of Excel and in inherited workbooks.
- Pull every row that meets a rule with FILTER, combining conditions for AND and OR, where a lookup would stop at the first match.
- Make keys matchable before the lookup runs: trim stray spaces, correct spellings with Find and Replace and remove repeated IDs from the list being searched.
- Join a lookup table to a data table with a Power Query merge and a left outer join, keeping every row of the main table.
Projects
What you will build.
The course has 14 industry-standard projects. These four matter most here.
-
Project 06
PeopleInsight HR workbook
Employee data joined across sheets with one formula.
An HR analytics workbook where both lookups work on one file, so the difference shows: VLOOKUP brings in department and HR partner names by column number, XLOOKUP the city, state, region and work arrangement with its own not-found text, INDEX and MATCH repeat the job a third way, and a code changed on purpose shows exactly what IFERROR is for.
-
Project 01
Personal Budget Tracker
Your first workbook: where the money goes each month.
A personal budget whose tax column teaches the F4 habit every lookup depends on: one rate cell locked so a formula copies cleanly down the sheet, exactly as a lookup table has to be locked before a fill down.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
A Power Query and data model project on sales files, where the lookup goes full scale: a merge adds product and region names to every sale with a left outer join, saved as a step of the query, the method to reach for when the same join must be made on each new export.
-
Project 02
Dunder Michael Paper Company employee database
An employee database where keys are made fit to match: the list becomes an Excel table that takes in new rows, stray spaces are trimmed and pasted back as values, misspellings go through Find and Replace, and repeated employee IDs are found and removed so each ID means one record.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 12 of them, 1 h 5 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 67 Lookup functions in Excel
Start at Lesson 67 if you can already write SUM and IF and fill a formula down: the PeopleInsight lookups begin there, and Lesson 78 is the rehearsal at the end. Unsure what F4 does? Take Lesson 10 first, and Lesson 19 if tables are new. No formulas yet? Lesson 8 opens with the equals sign, and Lesson 1 with the Excel window before that. Confident with both functions already? Go to Lesson 76 for FILTER and Lesson 163 for the Power Query merge.
12 of 186 lessons · 1 h 5 min
01 Microsoft Excel fundamentals: building a foundation from scratch Relative against absolute references on a budget's tax column: F4 locks the rate cell, and pressed again it cycles through the mixed references. Every lookup in this path needs the same lock on its table, or the rows below the first start returning errors.
- 10 Relative vs absolute references in Excel Dollar signs and mixed references 3 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) Excel tables on an employee database: create and style one, read its structured references and watch it take in new rows. A lookup aimed at a table's columns keeps up as the list grows, and the structured references the later lookups use start here.
- 19 Excel tables Create and format a table, structured references and total row 8 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) Keys cleaned before they are matched: TRIM in a helper column pasted back as values, Find and Replace narrowed to one column for misspellings, then repeated IDs highlighted and removed so each one stands for a single record. A lookup only matches text typed the same way, and it stops at the first of any duplicates.
- 22 Cleaning data in Excel TRIM, Paste Special values and Find and Replace 13 min
- 23 Remove duplicates in Excel Find and delete duplicate rows in an employee list 6 min
08 Advanced Excel functions: lookups, text and arrays The lookup core on the PeopleInsight HR data: why lookups beat copying between tabs, VLOOKUP with FALSE and a locked table for department and HR partner names, XLOOKUP for city, state, region and work arrangement with a not-found text and a two-way lookup, IFERROR for lookup errors in VLOOKUP and XLOOKUP formulas, then INDEX and MATCH on named tables. XLOOKUP needs a modern Excel.
- 67 Start here Lookup functions in Excel The PeopleInsight HR dataset and why lookups matter 2 min
- 68 VLOOKUP in Excel Find employee data across sheets with exact match 4 min
- 69 XLOOKUP in Excel Exact match, if not found and two-way lookup 6 min
- 70 IFERROR in Excel Handle lookup errors in VLOOKUP and XLOOKUP formulas 3 min
- 71 INDEX and MATCH in Excel A flexible alternative to VLOOKUP 6 min
08 Advanced Excel functions: lookups, text and arrays FILTER, the formula that returns every match: staff at one location, at one job level, active staff at that level through AND, and two locations at once through OR, each spilling a full block of rows under its own heading. It needs a modern Excel.
- 76 FILTER function in Excel Dynamic array filtering with AND and OR criteria 5 min
08 Advanced Excel functions: lookups, text and arrays The lookup challenge: an orders sheet with empty columns to fill from a products sheet by XLOOKUP, a per-unit figure fetched the same way, a line total, and order IDs rebuilt by joining a prefix, with an @ that breaks a lookup to find and remove. Solve it first, then watch the solution.
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
15 SalesFusion: advanced data tools and a Power Query modelling system The same idea in Power Query, inside the SalesFusion project: product and region lookup files merged into the sales query on their codes with a left outer join, which keeps every sale and adds names only where a code matches. The project's earlier lessons import and clean the files this merge joins.
- 163 Merge queries in Power Query Look up product and region names with a left join 5 min
Instructors
Who teaches it.
Instructor, Excel with AI
Virginia Thorn
Emmy Award winner. Teaches Excel with AI at Coding Liquids.
Questions
Asked before starting.
Will an Excel test ask me for VLOOKUP or XLOOKUP, and how do I get ready for either?
Either can come up, so get ready for both: The Complete Excel Course with AI Integration from Coding Liquids teaches them side by side on the same HR workbook, so the difference is something you have seen rather than read about. VLOOKUP comes first (Lesson 68), because inherited workbooks and older copies of Excel are full of it; XLOOKUP follows on the same employee sheet (Lesson 69), with its own not-found text and a two-way lookup; IFERROR (Lesson 70) and INDEX with MATCH (Lesson 71) complete the set. The PeopleInsight HR workbook is an industry-standard project, designed after talking with people from many different industries, and comes with a starter and a finished file. This page adds what keeps lookups right under a test: locked references, clean keys, FILTER for every match and a challenge to solve on your own. In all it is 12 lessons, 1 hour 5 minutes.
XLOOKUP is newer, so why will the workbooks I inherit still be full of VLOOKUP?
Because a great many workbooks were built with it, and some copies of Excel still in use have nothing newer. XLOOKUP needs a modern Excel, a point The Complete Excel Course with AI Integration flags when the function appears, so a job that hands you an older file or an older machine still runs on VLOOKUP. That is why the course teaches VLOOKUP first (Lesson 68): an exact match set with FALSE, the table range locked with F4, and the return column counted by number. The same lesson shows its weakness on purpose: a column inserted into the lookup table shifts the count, and the results change to zeros until the insert is undone. Knowing that weakness lets you repair an inherited sheet with confidence, and explain in an interview why XLOOKUP, taught next on the same data, avoids it.
Is XLOOKUP easier to learn than VLOOKUP?
For most people, yes, and The Complete Excel Course with AI Integration lets you judge for yourself by writing both on one sheet. VLOOKUP asks you to count columns and to remember FALSE for an exact match (Lesson 68). XLOOKUP asks three plain things, what to find, where to look and what to return, with the not-found text and the match mode as further arguments (Lesson 69). Because it points straight at the return column, a column inserted later cannot break it, and it reads to the left as readily as to the right. In the lesson one XLOOKUP for the city is copied across for state, region and work arrangement, with the lookup value reset after it shifts, which is the single trap to watch. The catch is availability rather than difficulty: XLOOKUP needs a modern Excel, so learn both.
Which lookup should I reach for in a timed test: VLOOKUP, XLOOKUP or INDEX and MATCH?
XLOOKUP when the test's Excel has it, INDEX and MATCH when it does not and the answer sits left of the key, and VLOOKUP when the task is to read or repair a formula already there. The Complete Excel Course with AI Integration teaches all three on the same PeopleInsight data, the quickest way to see where each one fits. XLOOKUP is the fastest to type and the hardest to break (Lesson 69). INDEX with MATCH works in any version and lifts both of VLOOKUP's limits, the key held in the first column and the search running left to right (Lesson 71). VLOOKUP is the one you will meet in other people's files (Lesson 68). Whichever you choose, lock the table range with F4 before filling down, an easy step to forget with a clock running, and one that decides whether the bottom rows are right.
An interviewer asks what the FALSE at the end of a VLOOKUP does: will I know?
Yes, and it is one of the first things The Complete Excel Course with AI Integration makes clear about lookups. In Lesson 68 the fourth argument of VLOOKUP is set to FALSE, which asks Excel for an exact match: the department code in the employee row must appear exactly in the lookup table, or the formula returns an error. Left out, VLOOKUP falls back to an approximate match, which can hand back a neighbouring row's value with no error at all, the most dangerous kind of wrong answer because nothing looks wrong. Alongside FALSE the lesson covers the two other parts worth explaining: the column index, the number of the column to return counted from the left of the table, and the table range locked with F4 so the formula can be filled down. XLOOKUP's version of the same choice, a match mode of 0, follows in Lesson 69.
Why does a lookup return #N/A when the value is clearly in the table?
Because a lookup matches only what is typed exactly the same, and The Complete Excel Course with AI Integration shows the usual culprits one at a time. One extra letter in a code is enough: Lesson 70 changes a department code so it no longer matches, and errors appear down both lookup columns. A stray space does the same invisibly, which is why Lesson 22 trims text in a helper column and pastes it back as values before anything is matched, and runs Find and Replace over a name typed two ways. An unlocked table range sends the rows below the first to look in the wrong place, the fault Lesson 68 clears with F4. Once the cause is fixed, IFERROR, as Lesson 70 teaches it, can put NOT MATCHED where a code is genuinely missing, so the gap explains itself to whoever reads the sheet.
Can a lookup return a value from a column to the left, and what is a two-way lookup?
Yes to the first, and The Complete Excel Course with AI Integration teaches both ideas. VLOOKUP can only search the first column of its table and return something to the right of it, which is why the course brings in two alternatives. XLOOKUP searches one range and returns from another, on either side of it, and its lesson also takes on the two-way lookup, finding the value where a chosen row and a chosen column cross (Lesson 69). INDEX and MATCH do the left-side job in any version of Excel: MATCH returns the position of the key, with 0 asking for an exact match, and INDEX returns whatever sits at that position in the column you pick (Lesson 71). Both are worth having ready, because they show that you understand how a lookup works rather than reciting one function's syntax.
What if the task wants every matching row, not just the first one?
Then a lookup is the wrong tool, and The Complete Excel Course with AI Integration teaches the right one: FILTER. XLOOKUP and VLOOKUP stop at the first match, while FILTER returns every row that meets a rule and spills them into the sheet as a block (Lesson 76). The lesson pulls out everyone at one location, then everyone at one job level, then active staff at that level by multiplying two conditions for AND, then two locations at once by adding conditions for OR, each under a heading of its own. Misplaced brackets are the common slip, and the lesson shows how to read that error calmly. When the task wants the total of all matches rather than the rows themselves, SUMIFS gives it in one cell (Lesson 37). FILTER needs a modern Excel, like the other dynamic array functions.
What does the lookup challenge ask me to do?
Four tasks on a small order file, the shape of a practical test, in Lesson 78 of The Complete Excel Course with AI Integration. A Products sheet holds the data and an Orders sheet has empty columns to fill: each order's product name by XLOOKUP on its product ID, each product's per-unit figure by a second XLOOKUP, a line total of that figure times the quantity, and the order ID rewritten in a set style by joining a text prefix to it. You pause and solve them before the solution plays. One snag is built in: an @ in front of a table reference takes only the current row's value, so the lookup errors until it is removed, which teaches you to read structured references rather than just type them. The solution file holds every answer to check against, and the starter can be sat again the night before your own test.
Do I need Excel tables for lookups, and what is the @ sign doing in my formula?
No, but tables make lookups sturdier, and The Complete Excel Course with AI Integration shows both sides. Lesson 19 turns a list into an Excel table, which takes in new rows and updates the formula ranges that read it, so a lookup aimed at its columns keeps up as the list grows. Lesson 71 names the employee and department tables on the Table Design tab, then writes INDEX and MATCH with them, using an @ reference to take the current row's department ID while the lookup array stays the full column. That @ is the detail to understand: it means this row only, which is right for the value you are looking up and wrong for the range you are searching. The lookup challenge in Lesson 78 sets exactly that mistake for you to find and fix.
Where will lookups earn their keep once I have the job?
Wherever two lists share a code: an export of IDs that needs names, orders that need product details, staff rows that need a department or a location. The Complete Excel Course with AI Integration builds exactly that in PeopleInsight, where the employee sheet gains department, HR partner, city, state, region and work arrangement columns from two lookup sheets (Lesson 68 and Lesson 69), replacing the copy and paste across tabs that Lesson 67 calls slow, messy and an open door to mistakes. A failed match has a use too: with IFERROR showing NOT MATCHED (Lesson 70), the gaps become a list of codes to chase with whoever owns the data. When the same join has to be made on every new export, the Power Query merge in Lesson 163 turns it into a saved step that a duplicated query carries to the next file.
Has anything replaced XLOOKUP, or is there something newer I should learn?
XLOOKUP is still the lookup formula of modern Excel; what stands beside it is a set of tools for bigger jobs, and The Complete Excel Course with AI Integration teaches them in order. FILTER returns every match rather than the first (Lesson 76). A Power Query merge joins a whole lookup table to a whole data table with a left outer join, keeping every row of the main table: it is Power Query's version of VLOOKUP (Lesson 163). A Power Pivot data model goes a step further, with tables related once in Diagram View, one to many, so no lookup column needs filling down at all (Lesson 169); Power Pivot needs Excel for Windows. Learn XLOOKUP and VLOOKUP first, because each of these later tools is easier to pick up once the idea of matching on a key is second nature.
I am new to Excel: can I learn lookups in time for an assessment?
Yes, if you take the short road to them, and The Complete Excel Course with AI Integration lays that road out. Lookups rest on three things: a formula that starts with an equals sign, a reference that stays put when copied, and tidy data. Lesson 8 gives you the first, Lesson 10 the second with F4, and Lesson 19 and Lesson 22 the third with tables and clean-up. From there the lookup lessons themselves are short, Lesson 67 to Lesson 71, so most of your preparation can go on practice: fill the PeopleInsight starter file's lookup columns yourself, compare them with the finished workbook, then sit the challenge in Lesson 78 without the solution open. The whole path on this page is 1 hour 5 minutes, and lifetime access keeps it there for the next refresher.
Will these lookup lessons work on a Mac, or do I need Windows?
They work on a Mac, and The Complete Excel Course with AI Integration names Windows for two tools only, Power Pivot and Power Automate, neither of which this path needs. VLOOKUP, XLOOKUP, IFERROR, INDEX and MATCH and FILTER are worksheet functions in Excel on Windows and on Mac; the condition that matters for XLOOKUP and FILTER is a modern Excel, such as the Microsoft 365 the course is recorded in. Windows enters only if you carry on past this path into the SalesFusion data model, where relationships drawn in Power Pivot (Lesson 169) take over from lookup columns: those lessons need Excel for Windows. If an assessment tells you which Excel it runs on, practise in one like it, and keep VLOOKUP and INDEX and MATCH ready for an older copy that has no XLOOKUP.
Excel with AI
See the whole course.
The Complete Excel Course with AI Integration: 16 hours of video in 186 lessons, built around 14 industry-standard projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
More skills for this job
- Excel formulas for job seekers
- Pivot tables for job seekers
- Excel charts for job seekers
- Excel dashboards for job seekers
- Conditional formatting for job seekers
- Data cleaning for job seekers
- Data validation for job seekers
- Excel tables for job seekers
- Text functions for job seekers
- Date functions for job seekers
- Dynamic arrays for job seekers
- Copilot in Excel for job seekers
- ChatGPT for Excel for job seekers