The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for supply chain analysts
Order lines, receipts, stock and the item master each leave the ERP as a separate extract, and every figure in the weekly pack depends on joining them by SKU or order number. The Complete Excel Course with AI Integration teaches that join on the PeopleInsight HR workbook, an industry-standard project, from clean keys to XLOOKUP, VLOOKUP and INDEX with MATCH, two-way lookups, missing-key messages, FILTER for many matches and a Power Query merge.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring lead time, unit cost and supplier onto every line of an open-order extract with XLOOKUP, pointed at its return column so a field added to the item master breaks nothing.
- Audit and keep the VLOOKUPs of inherited planning files: exact match, a table range locked before the fill-down, and a column number that still points at the right field.
- Read a figure from a grid by two keys at once, such as the standard lead time for each supplier on each lane, with XLOOKUP's two-way lookup.
- Turn the #N/A of a new or mistyped SKU into a message that says what is wrong, with XLOOKUP's own if-not-found answer and IFERROR, and count the lines still waiting for master data.
- Make keys that match: trim stray spaces, remove repeated IDs, join an order number and a line number into one key, and cut a site or bin out of a packed code with LEFT, MID and RIGHT.
- List every open line for one supplier, the distinct suppliers on an extract or the late lines in date order with FILTER, UNIQUE, SORT and SORTBY in a modern Excel.
- Join whole extracts in Power Query so that no order line is lost to a missing key, then check the merged table for empty keys before any total goes out.
Projects
What you will build.
The course has 14 industry-standard projects. These three matter most here.
-
Project 06
PeopleInsight HR workbook
Employee data joined across sheets with one formula.
Built on an HR analyst's employee records, its lookups are the ones an item master needs: a department code turned into a name, a location code into city, region and work arrangement, a value found by its row and column at once, and a readable message wherever a code has no match.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built on a folder of sales exports, it takes the lookup to the scale of a whole extract: a Power Query merge, Left Outer as the join kind, that brings product and region details onto every row, and a fact table checked for empty keys after its merges.
-
Project 02
Dunder Michael Paper Company employee database
Made as an employee list to keep in order, it is where keys are made fit to match before any lookup touches them: stray spaces trimmed, second spellings put right with Find and Replace, and repeated IDs found and removed, so every code stands once.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 16 of them, 1 h 24 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 22 Cleaning data in Excel
Start at Lesson 22, because a lookup is only as reliable as its keys, and the clean-up there and in Lesson 23 removes the stray spaces and repeated IDs behind many failed matches. Sure of your keys already? The lookups themselves open at Lesson 67, with the reason they beat copying between sheets. If VLOOKUP is part of your every day, Lesson 69 is where XLOOKUP and the two-way lookup start, with the Power Query merge of Lesson 163 after it. Never made an Excel table? Lesson 19 comes before everything here.
16 of 186 lessons · 1 h 24 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) Keys fit to match before a lookup runs, on an employee list: stray spaces trimmed with TRIM and pasted back as values, spellings put right with Find and Replace, then repeated IDs highlighted and removed so each code stands once. A part number with a trailing space, or a supplier ID entered twice, is behind many a failed match and many a wrong first match in a supply chain file.
- 22 Start here 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 section, worked on the PeopleInsight HR dataset: why lookups beat copying between sheets, VLOOKUP with an exact match and a locked table, XLOOKUP with its if-not-found answer and a two-way lookup, IFERROR round both, and INDEX with MATCH for what VLOOKUP cannot reach. Then the keys themselves, joined with CONCAT, TEXTJOIN and the ampersand and taken apart with LEFT, RIGHT and MID; working days with NETWORKDAYS; FILTER, SORT, SORTBY and UNIQUE for many results at once, which need a modern Excel; and a challenge that matches an Orders sheet to a Products sheet.
- 67 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
- 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
- 74 TODAY, EOMONTH and NETWORKDAYS in Excel Date calculations for HR data 5 min
- 75 UNIQUE function in Excel Extract a distinct list with dynamic arrays 6 min
- 76 FILTER function in Excel Dynamic array filtering with AND and OR criteria 5 min
- 77 SORT and SORTBY in Excel Sort data dynamically with formulas 4 min
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
15 SalesFusion: advanced data tools and a Power Query modelling system Power Query's version of the lookup, for an extract too long to fill formulas down: Merge Queries with Left Outer as the join kind, so every sales row stays and the product and region columns fill wherever a code matches. Order lines and an item master join the same way, and the merge runs again at every 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 The merge made into a habit: the SalesFusion fact table joined to its product and region lookups and stacked with its history, then every key column checked for empty values, since a merge can let them in. An order-line table built from lookups earns the same check before its totals reach the pack.
- 168 Build a sales fact table in Power Query Merge lookups and append history 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.
What does a supply chain analyst look up with XLOOKUP and VLOOKUP between ERP extracts, and how do I learn to build those lookups myself?
Lead times, unit costs, promised dates and supplier details, fetched by SKU or purchase order number onto every line of an extract, and The Complete Excel Course with AI Integration from Coding Liquids builds both lookups into its PeopleInsight HR workbook, an industry-standard project that, like every project in the course, was designed after talking with people from many different industries. The lessons join employee records to department and location tables; put your item master and open orders in their place and every formula carries over. VLOOKUP comes first with an exact match (Lesson 68), then XLOOKUP with its if-not-found answer and a two-way lookup (Lesson 69), IFERROR (Lesson 70) and INDEX with MATCH (Lesson 71). Here you get the 16 lessons that make your extracts join, 1 hour 24 minutes of lessons running from clean keys to a Power Query merge.
The ERP keeps adding columns to the item-master extract: which lookup survives that, and which one breaks?
XLOOKUP survives it, and The Complete Excel Course with AI Integration shows exactly why VLOOKUP does not. VLOOKUP finds the row and then counts across to a column by its number, so a column inserted in the lookup table shifts the count; Lesson 68 inserts one on purpose and watches the results turn to zero, then undoes it. XLOOKUP points straight at the column it returns and searches left or right, so an inserted column changes nothing (Lesson 69). INDEX with MATCH shares that strength and works in older versions too (Lesson 71), which matters when a planning file must open on a supplier's machine. For an item master that gains a field every few months, the choice decides whether Monday's pack is right or quietly wrong, and the course teaches all three so you can pick by the file you have open.
The demand planning workbook I inherited runs on VLOOKUPs with column numbers nobody can explain: will I be able to audit them?
Yes, and the audit goes quickly once you know the three places VLOOKUP goes wrong, which The Complete Excel Course with AI Integration teaches in Lesson 68. The last argument must be FALSE for an exact match, or an unsorted part list can hand a line its neighbour's lead time. The table range must be locked before the formula is filled down, or the rows below drift off the table and return errors. And the column number must still point at the intended field, since an inserted column moves it without a warning. Read each VLOOKUP for those three and you know whether its numbers can be trusted. From there, Lesson 69 shows the XLOOKUP that replaces it with nothing to count, and Lesson 70 wraps either one in IFERROR, so a missing code reads as a message instead of #N/A.
Can one formula read a lead time from a grid of suppliers down the side and lanes across the top?
Yes: that is a two-way lookup; The Complete Excel Course with AI Integration names it in the title of Lesson 69, where XLOOKUP finds a value by its row and its column at once. A freight rate card by lane and weight band, the standard lead time for each supplier and site, a safety-stock setting by item class and warehouse: any matrix your planning team keeps reads the same way. The grid stays as people like to see it, wide and easy to update, while every order line picks up its own figure without a nested IF or a pasted value. Lesson 71 adds INDEX, which returns the cell at a given row and column, and MATCH, which finds a position, the pair that reads grids in any version of Excel. Change one rate in the grid and every line that uses it moves with it, which keeps a rate review to a single edit.
A new SKU appears on orders before it reaches the item master: how do I stop #N/A spreading through the pack?
Give the lookup an answer for a missing key, which The Complete Excel Course with AI Integration teaches both ways. XLOOKUP takes its own if-not-found text, n/a in the lesson or NOT IN MASTER on your sheet (Lesson 69), and Lesson 70 handles lookup errors in VLOOKUP and XLOOKUP formulas with IFERROR, after changing one code so it no longer matches and watching the errors appear. A message tells whoever reads the file what is wrong, where a raw #N/A tells most people nothing, and it stops one unmatched line from turning the SUM of a whole column into an error. Then count that message with COUNTIF at the top of the sheet (Lesson 36): the number of lines waiting for master data becomes a figure the pack reports instead of a surprise in the meeting.
Lookups fail on part numbers that look identical: what causes it, and which lessons fix it?
Three things cause it, a stray space, a second spelling and a number held as text, and The Complete Excel Course with AI Integration teaches the fix for each. TRIM strips leading, trailing and doubled spaces, and pasting the result back as values keeps the clean key (Lesson 22); Find and Replace puts a second spelling right across a selected column. A part number stored as text in one extract and as a number in the other will not match either: COUNT set beside COUNTA on the key column shows the text entries (Lesson 35), and Power Query's data types settle them for good (Lesson 158). One extra character in a code is enough to break a match, as Lesson 70 shows, while capitals are never the culprit, since lookups read upper and lower case as the same. Clean keys first and the #N/A count falls to the lines truly missing.
Our receipts match purchase orders only on order number and line number together: can XLOOKUP work with a key made of two columns?
Yes: a key made of both columns matches as one value, a move built on what The Complete Excel Course with AI Integration teaches in Lesson 72. There, CONCAT, the ampersand and TEXTJOIN combine first and last names into a full name with a space between them; join the order number and the line number the same way, with a separator, on the receipts and on the open orders, and XLOOKUP matches the pair as one value (Lesson 69). The separator matters, because without it two different pairs can run together into the same key. The Ninja Challenge of Lesson 78 joins a text prefix to every order ID, the same technique put to another use. When you want every matching line rather than the first, FILTER with two conditions multiplied together returns all the rows that meet both (Lesson 76).
Our bin locations pack the site, aisle and shelf into one code: can formulas split it so I can look up by site?
Yes: LEFT, MID and RIGHT take a packed code apart, and The Complete Excel Course with AI Integration teaches them on a code of exactly that kind in Lesson 73. The lesson's position code, such as DAL-SAL-0001, holds a location, a department and an ID; LEFT reads the first characters, RIGHT the last, and MID takes a stretch from the middle once you give it a start and a length. A bin code holding site, aisle and shelf, or a SKU whose first letters name the product family, splits the same way into columns you can look up, count and total by. Pair the split with XLOOKUP and a site code becomes a site name (Lesson 69); pair it with COUNTIFS and you have stock lines by site (Lesson 37). The codes stay as the system writes them, and the formulas do the reading for you.
XLOOKUP returns only the first match: how do I list every open line for one supplier?
With FILTER, which returns every row that meets a condition, and The Complete Excel Course with AI Integration teaches it in Lesson 76. Where XLOOKUP stops at the first match, FILTER spills all of them: every open purchase order line for the supplier on today's call, with AND logic for a supplier and a status together and OR logic for two sites at once. SORT or SORTBY puts the result in order, by promised date for instance (Lesson 77), and UNIQUE builds the list of distinct suppliers to pick from (Lesson 75). The results must spill outside the table, as the lessons show, and the whole family needs a modern Excel. When the extract changes, the list rebuilds itself, so there are no filter buttons to reset before the expediting call and no copied list going stale on someone's desktop.
Our item master lists the same SKU twice: which row does a lookup return, and how do I find the duplicates?
The first one it meets, and The Complete Excel Course with AI Integration teaches how to make sure there is only one. XLOOKUP and VLOOKUP both stop at the first match, so a SKU entered twice with different lead times quietly hands every order line the upper row's figure. Lesson 23 finds repeated IDs with the Duplicate Values highlight, then removes them with Remove Duplicates, and shows the difference between removing values from one column and removing whole rows; its table filter method lets you choose which record goes. COUNTIF on the key column marks any SKU that appears more than once (Lesson 36), a check worth running whenever the master is refreshed. The lesson's rule fits an item master perfectly: an ID works like a passport number, one item, one row and one answer from every lookup.
Our order history is a very long extract: should the join happen in Power Query instead of with formulas?
A Power Query merge is the stronger tool for an extract that returns every week in the same layout, and The Complete Excel Course with AI Integration teaches it straight after the formulas. Lesson 163 merges the sales data with lookup files of products and regions, Left Outer chosen as the join kind, so every sales row stays and the lookup columns fill wherever a code matches: no order line is lost to a missing key. The merge is a saved step, so next week's extract goes through the same join at a refresh, with no formula to fill down a long column. Lesson 168 then assembles the finished fact table out of the merged lookups and the stacked history and checks the key columns for blanks, because a merge can let them in. XLOOKUP stays the quick join on the sheet; the merge is the join that repeats itself.
On deadline day a lookup column fills with errors: can Copilot or Claude find the cause and fix it for me?
They can propose the fix, and The Complete Excel Course with AI Integration shows both doing it while you keep the final word. Lesson 100 forces an error into a formula and clicks the fix Excel offers, which opens Copilot with the prompt already written; the suggested repair still needed reading, because it changed cells nobody asked it to change. In Lesson 104, Claude in Excel calculates a column and then repairs an error in another, asking permission for each change. For a lookup, the usual causes are the ones the lookup lessons teach you to spot: an unlocked range that drifts as it fills (Lesson 68), a key with no match (Lesson 70), or a table reference that takes one row where a whole column was needed (Lesson 78). Knowing them, you can tell a right fix from a merely plausible one.
Is there a lookup exercise that feels like matching order lines to a product list?
Yes: the lookup section of The Complete Excel Course with AI Integration ends on one. The Ninja Challenge of Lesson 78 hands you a Products sheet and an Orders sheet with empty columns, and four tasks: fetch each order's product name with XLOOKUP on the product ID, fetch its per-unit figure with a second XLOOKUP, total each line as that figure times the quantity, and reformat every order ID with a text prefix. You pause and solve them first, then follow the solution, and an error along the way shows why a lookup needs the whole column rather than the current row. Replace the Products sheet with your item master and the Orders sheet with your open purchase orders, and you are holding the weekly join of a supply chain pack in miniature, already solved once.
Once XLOOKUP has brought the promised date onto each receipt, can Excel count how many working days late it arrived?
Yes, and The Complete Excel Course with AI Integration teaches the second half of that job in the same section. Lesson 74 uses NETWORKDAYS, which counts the working days between two dates, beside TODAY and EOMONTH, so a promised date fetched by XLOOKUP (Lesson 69) and the receipt date already on the line give the working days between them. EOMONTH returns the last day of a month, a clean boundary when the pack reports by period. Wrap the lateness in IF to show nothing for lines that arrived on time, and COUNTIFS counts the late lines by supplier (Lesson 37). The lookup does the fetching and the date function does the measuring, and together they turn two separate extracts into the supplier delivery figure your weekly review asks for.
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
- Formulas for supply chain analysts
- PivotTables for supply chain analysts
- Charts for supply chain analysts
- Dashboards for supply chain analysts
- Conditional formatting for supply chain
- Data cleaning for supply chain analysts
- Data validation for supply chain
- Excel tables for supply chain analysts
- Text functions for supply chain analysts
- Date functions for supply chain analysts
- Dynamic arrays for supply chain analysts
- Power Query for supply chain analysts
- Power Pivot and DAX for supply chain
- Macros and VBA for supply chain analysts
- Power Automate for supply chain analysts
- Copilot for supply chain analysts
- ChatGPT for supply chain analysts
- Claude in Excel for supply chain