The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for BI analysts
A quick question arrives before any model exists, and the answer sits in two extracts that share a code. The Complete Excel Course with AI Integration gives business intelligence analysts the lookups for that moment and for the business's own workbooks: VLOOKUP, XLOOKUP, IFERROR and INDEX with MATCH on an industry-standard HR workbook. This page picks them out, then follows the same joins into Power Query merges and data model relationships in SalesFusion.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Join a fact extract to its lookup tables with XLOOKUP, bringing city, state, region or any other attribute onto every row, with an if-not-found answer for codes that miss.
- Read and repair the VLOOKUP and INDEX with MATCH formulas in a business user's workbook: exact match, locked table ranges and the column numbers an inserted column breaks.
- List the codes in an extract that have no partner in the lookup table, flagged by XLOOKUP's own message or by IFERROR, before a total or a model drops them.
- Make two systems' keys match: build one from several fields with CONCAT, the ampersand or TEXTJOIN, or cut a packed code apart with LEFT, RIGHT and MID.
- Read a single value from a crosstab with a two-way XLOOKUP, and recognise when a wide export should be unpivoted instead.
- Move enrichment into the pipeline as a Power Query merge with a left outer join, so every refresh repeats it and unmatched rows stay visible.
- Relate a fact table to its lookup tables one to many in Power Pivot's Diagram View, so a PivotTable reads them all without a single lookup column.
Projects
What you will build.
The course has 14 industry-standard projects. These two matter most here.
-
Project 06
PeopleInsight HR workbook
Employee data joined across sheets with one formula.
A small set of related tables on separate sheets, a wide employee list beside department and location tables, joined by every method the course teaches, so VLOOKUP, XLOOKUP and INDEX with MATCH can be judged on the same keys and the same faults.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Where joins go once data outgrows a sheet: product and region tables merged into the sales query, a fact table built from those merges and checked for nulls, and the same tables related in a data model that a PivotTable reads directly.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 11 of them, 51 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 already write IF and SUMIFS: the PeopleInsight workbook opens there with its lookup tables ready. Formulas still new? Take Lesson 28 first, or begin with Lesson 1 if Excel itself is. Fluent in XLOOKUP already? Skip to the merges at Lesson 163, after building the SalesFusion queries they enrich, from Lesson 153, if you have not.
11 of 186 lessons · 51 min
08 Advanced Excel functions: lookups, text and arrays Lookups across the sheets of one workbook: why related data in separate tables needs them, VLOOKUP with an exact match and a locked table, XLOOKUP with its own if-not-found answer and a two-way lookup, IFERROR round VLOOKUP and XLOOKUP formulas, and INDEX with MATCH for lookups in any direction. The tables hold employees, departments and locations; a fact extract and its lookup tables join by the same rules.
- 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 Keys made to match: CONCAT, the ampersand and TEXTJOIN to join fields into one value, then LEFT, RIGHT and MID to cut a packed code into the parts another system keeps in separate columns.
- 72 CONCAT and TEXTJOIN in Excel Combine employee names and text with a delimiter 3 min
- 73 LEFT, RIGHT and MID in Excel Extract parts of a text code like DAL-SAL-0001 7 min
08 Advanced Excel functions: lookups, text and arrays A lookup challenge on two sheets, orders and products: names and per-unit figures fetched with XLOOKUP, line totals worked out from them and order IDs reformatted, all solved before the solution file is opened.
- 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 lookup as a pipeline step: Power Query merges the sales query with product and region tables on their codes through a left outer join, so every sales row is kept and enriched again at each refresh.
- 163 Merge queries in Power Query Look up product and region names with a left join 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system From merges to a model: a sales fact table built from its lookups and history and checked for nulls, then the fact and lookup tables related one to many in Power Pivot's Diagram View, in place of lookup columns filled down. Relationships are drawn in Power Pivot, so that last lesson needs Excel for Windows.
- 168 Build a sales fact table in Power Query Merge lookups and append history 6 min
- 169 Power Pivot Data Model in Excel Relationships and Diagram View 6 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.
Where do XLOOKUP and VLOOKUP still fit in a business intelligence analyst's work?
In three places, and The Complete Excel Course with AI Integration from Coding Liquids teaches lookups for all of them on industry-standard projects designed after talking with people from many different industries. The quick check: an extract joined to a lookup table on a sheet in minutes, to answer a question before any model exists (Lesson 69). The business's own workbooks, full of VLOOKUP and INDEX with MATCH, which you will read, repair or rebuild (Lesson 68, Lesson 71). And the step after: the same joins done as Power Query merges and as data model relationships, where enrichment runs at every refresh (Lesson 163, Lesson 169, the last on Excel for Windows). This page gathers 11 lessons, 51 minutes in all, on the PeopleInsight HR workbook and SalesFusion, with starter and finished files, so each lookup is learned on keys that really break and fixes that really hold.
I write SQL joins every day: how quickly will VLOOKUP and XLOOKUP make sense?
Quickly, because the ideas map almost one to one, and The Complete Excel Course with AI Integration teaches the Excel side of each. An exact-match lookup is a join on a key: VLOOKUP with FALSE (Lesson 68) or XLOOKUP with its match mode set to exact (Lesson 69). XLOOKUP's if-not-found argument plays the part of a default for unmatched rows, and IFERROR does the same for VLOOKUP (Lesson 70). A join on two columns becomes a key column built with the ampersand or CONCAT (Lesson 72). The difference to get used to is direction: a lookup is filled down one table and returns the first match it meets, so its ranges must be locked or the rows below go wrong. In Power Query the vocabulary turns familiar again: Lesson 163 merges with a left outer join, and Lesson 164 reads through the inner, right outer and full outer kinds before keeping left outer.
Business users will keep editing this workbook after I hand it over: should its lookups be XLOOKUP or VLOOKUP?
XLOOKUP, wherever the people who open it run a modern Excel, and The Complete Excel Course with AI Integration shows exactly why. Lesson 68 inserts a column into the lookup table under a working VLOOKUP and watches the results turn to zeros: VLOOKUP counts columns by number, so the first tidy-up a business user makes can break every row with no error to warn anyone. XLOOKUP points straight at its return column, so an inserted column leaves it intact, and it reads left or right of the key (Lesson 69). Its if-not-found answer keeps a missing code from showing as a raw error in someone else's report. VLOOKUP still earns its place for a recipient on an older Excel, where XLOOKUP is not available: Lesson 2 names it among the functions that need a modern version, and INDEX with MATCH (Lesson 71) gives that audience the same freedom of direction.
A business user's workbook runs on VLOOKUP and INDEX with MATCH: can I read its logic well enough to rebuild it in a model?
Yes, and reading it is the first half of the rebuild. The Complete Excel Course with AI Integration teaches each formula you will find there argument by argument. A VLOOKUP names its key, its table, a column number and FALSE for an exact match (Lesson 68), so the column number tells you which attribute it fetches. INDEX with MATCH splits the job in two: MATCH finds the position of the key, INDEX returns the value at that position, in any direction (Lesson 71). An IFERROR wrapped round either one shows what the author expected to go missing (Lesson 70). Once the joins are written down, each becomes a step of a pipeline: a merge in Power Query (Lesson 163) or a one-to-many relationship in Power Pivot's Diagram View (Lesson 169, which needs Excel for Windows). A SUMIFS on the old sheet and a PivotTable on the new model then prove the two give the same answers.
Can XLOOKUP flatten a fact extract and its lookup tables into one sheet for a quick analysis?
Yes: one formula per attribute, copied across, and The Complete Excel Course with AI Integration builds exactly that in Lesson 69. The employee list carries only a location code; XLOOKUP matches it against the location table and brings back the city, then the formula is copied across for state, region and work arrangement, its return range moving one column each time and its lookup value set back to the key column when the copy shifts it. The table ranges are locked with F4, because errors or zeros further down a column almost always mean a range moved as it filled. Lesson 68 does the same for department and HR business partner with VLOOKUP and its column numbers. The result is a wide, denormalised sheet that a PivotTable or a quick chart reads at once. The lessons join employee and location tables; a sales extract and its product and customer tables flatten the same way.
Before I build the model, how do I find fact rows whose code has no match in the lookup table?
Let the lookup tell you, and The Complete Excel Course with AI Integration teaches two ways to make it say so plainly. XLOOKUP takes its own if-not-found answer, so every unmatched code shows a word you choose instead of #N/A (Lesson 69); IFERROR wraps a VLOOKUP so a broken match reads NOT MATCHED (Lesson 70). That lesson breaks one department code on purpose to show how little it takes: one extra letter, and the row drops out of the match. Filter the result column for your message and you hold the list of orphan keys, to fix at source or to add to the lookup table. In the pipeline the same check follows every merge: a left outer join keeps each fact row and leaves the lookup columns empty where no partner exists (Lesson 163), and Lesson 168 checks the merged table for nulls before it loads.
A crosstab exported from our BI tool has products down the side and months across: can XLOOKUP read one cell, or should it be unpivoted?
Both, and The Complete Excel Course with AI Integration teaches each for its own job. To read one value, a two-way lookup finds the row and the column together: Lesson 69 closes with one, and Lesson 71 shows INDEX returning the value at a given row and column of a table, the building block of the same lookup in an older Excel. That suits a single figure pulled into a check or a summary cell. For anything more, unpivot it: a crosstab is a report, not data, and a PivotTable, a SUMIFS or a data model reads a long table far more easily. SalesFusion does this to a wide export with a column per month in Lesson 173: Unpivot Other Columns turns the months into rows of period and amount, and because the step names no month, next month's new column flows through untouched. Look up a cell when you need one number; unpivot when the crosstab is a source.
Once the data sits in a model, has anything replaced XLOOKUP?
For joining tables inside a model, relationships have, and The Complete Excel Course with AI Integration takes you there while keeping XLOOKUP for the jobs it still does best. In SalesFusion the sales table and its product and region tables are loaded into the data model and related in Power Pivot's Diagram View, two one-to-many relationships drawn by dragging one code column onto its partner (Lesson 169). No lookup column is filled down at all: a PivotTable from the model reads all three tables, and DAX measures total them (Lesson 170). Both lessons need Excel for Windows. XLOOKUP keeps the jobs outside the model: a quick check on an extract, a flat sheet for a one-off question, a stakeholder's workbook that has no model behind it. Knowing both lets you pick the lightest tool for each request instead of building a model for a question one formula can answer.
Power Query offers inner, left outer and full outer joins: which one does the course use for enrichment, and why?
Left outer, and The Complete Excel Course with AI Integration explains the choice on real lookup tables. Lesson 163 merges the sales query with a product table on ProductID and a region table on RegionCode, choosing Left Outer so every sales row survives and the lookup columns fill only where a match exists: a merge is Power Query's version of VLOOKUP, with no sale lost. Lesson 164 reuses the pipeline on the next year's file and reads through the other join kinds, inner, right outer, full outer and more, before keeping left outer again. It is the right default for enrichment, since an inner join would quietly drop every fact row whose code is new. Lesson 168 then builds the final sales fact table from those merges and the appended history and checks it for nulls, so a row that found no partner is caught before the model reads it.
Orders on one sheet, products on another: is there a challenge that joins them the way a fact table joins a dimension?
Yes, the Ninja Challenge that closes the lookup lessons of The Complete Excel Course with AI Integration (Lesson 78). Its file holds a Products sheet and an Orders sheet with empty columns, and you fill them yourself before watching the solution: XLOOKUP brings each order's product name across from the Products sheet, a second XLOOKUP brings its per-unit figure, a total multiplies that figure by the quantity, and each order ID is reformatted by joining a text prefix to it. One trap in the file teaches a habit worth keeping: an @ before a table reference takes only the current row, and removing it clears the error the lookup throws. That is the shape of every star schema, a narrow table of keys and quantities enriched from a table of attributes, and a solution file stands beside the problem so your answers can be checked.
A stakeholder built their own lookups with Copilot: how do I tell whether they are right?
Check them the way The Complete Excel Course with AI Integration teaches you to check any lookup, since an AI draft can carry the same faults a hurried person makes. Look at the match type first: VLOOKUP needs FALSE for an exact match (Lesson 68). Then the ranges: a table range left unlocked returns errors or zeros lower down the column, the slip Lesson 68 and Lesson 69 both fix with F4. Then the misses: a code with one extra letter fails silently unless IFERROR or XLOOKUP's own message makes it visible (Lesson 70). The AI lessons add their own discipline: in Lesson 95 every formula Copilot or ChatGPT writes is read and one row tested before it goes in, and Lesson 99 gives a checklist for AI output. Lesson 104 shows Claude repairing a broken column, each change allowed once and then checked.
One system writes the key as a single code, another as separate columns: can formulas make the two match?
Yes, whichever side has to change, and The Complete Excel Course with AI Integration covers building a key as well as cutting one apart. To build a key, join the fields: CONCAT, the ampersand and TEXTJOIN combine values with whatever separator the other system uses (Lesson 72). To take one apart, cut it: LEFT reads from the start, RIGHT from the end and MID from a set position, splitting a code such as DAL-SAL-0001 into location, department and number (Lesson 73). Once both sides hold the same key, XLOOKUP matches them. Then watch the small differences systems disagree on, a trailing space or a change of case. Power Query is case-sensitive, so North and NORTH would be two regions in a merge, which is why SalesFusion trims its codes and sets them in upper case before any merge runs (Lesson 157). Fix the key once, and every join after it holds.
A stakeholder asks for every row behind one figure: can a formula list them where XLOOKUP stops at the first match?
Yes: FILTER returns every row that meets its condition, and The Complete Excel Course with AI Integration teaches it right beside the lookups. In Lesson 76, FILTER spills all employees at one location, then everyone at one job level, then AND logic with the asterisk for active staff at that level, and OR logic with the plus sign for two locations at once. Point it at a fact table with the key and the period behind a dashboard figure and it lists the records that make up the total, ready to send. XLOOKUP is the right tool when one answer is expected per key (Lesson 69); FILTER is the right one when many are. FILTER needs a modern Excel and room to spill, so it sits outside the table it reads, a point Lesson 75 makes when UNIQUE first errors inside one.
How quickly do these lessons pay off on a real request, and what will I have built?
About 51 minutes of lessons, and the worksheet half pays off first. In The Complete Excel Course with AI Integration the lookups themselves, VLOOKUP, XLOOKUP, IFERROR and INDEX with MATCH, open the path, and by Lesson 71 you can join any extract to its lookup tables on a sheet. The key-building lessons and the Ninja Challenge follow, then the pipeline half: a merge, a fact table and a relationship in the data model. You finish holding the completed PeopleInsight HR workbook, a solved lookup challenge and the SalesFusion merges and model, each checked against the finished file that comes with the course. Lifetime access keeps the lessons open for the next unfamiliar extract, and completing the course earns a Certificate of Completion with a verification link an employer can check.
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 BI analysts
- PivotTables for BI analysts
- Excel charts for BI analysts
- Excel dashboards for BI analysts
- Conditional formatting for BI analysts
- Data cleaning for BI analysts
- Data validation for BI analysts
- Excel tables for BI analysts
- Text functions for BI analysts
- Date functions for BI analysts
- Dynamic arrays for BI analysts
- Power Query for BI analysts
- Power Pivot and DAX for BI analysts
- Macros and VBA for BI analysts
- Power Automate for BI analysts
- Copilot in Excel for BI analysts
- ChatGPT for Excel for BI analysts
- Claude in Excel for BI analysts