The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for inventory controllers
Every stock file speaks in SKUs, and every report needs what sits against them on another sheet: the description, the unit, the bin, the unit cost. The Complete Excel Course with AI Integration teaches XLOOKUP, VLOOKUP and INDEX with MATCH on industry-standard projects, and this page picks out the lessons that join an inventory controller's sheets: clean codes, exact matches, readable misses, keys for item and store, and lists that return every match.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Fill a count sheet or an issue note from the item master with XLOOKUP: type the SKU once and its description, unit and unit cost arrive beside it.
- Keep inherited VLOOKUP sheets working with an exact match and a locked table range, and know why a column inserted in the item master throws them off.
- Return a bin or supplier code that sits to the left of the SKU with XLOOKUP or INDEX and MATCH, with no rebuild of the item master.
- Show NOT MATCHED for a code the item master does not hold, through XLOOKUP's if-not-found argument or IFERROR, so a new or mistyped SKU is caught before a total uses it.
- Look up stock for one item in one store with a key joined from both columns, or with a two-way lookup on a grid of items against stores.
- Split SKUs that pack a store, a category and a serial number with LEFT, MID and RIGHT, and use each part as a key of its own.
- Trim stray spaces from item codes and remove repeated SKUs from the item master, so every lookup lands on one right row.
- List every movement of one SKU with FILTER, where a lookup would stop at the first.
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 workbook of staff records, it drills every lookup an item master needs: VLOOKUP and XLOOKUP on the same codes, if-not-found messages, INDEX with MATCH, codes cut apart by LEFT, MID and RIGHT, then a Ninja Challenge in which product IDs on an order sheet fetch names and per-unit figures from a product list.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
In this budget against actual project, keys are joined from several parts, a month, a department and a category with a pipe between them, then matched in two tables by SUMIFS: the same idea that looks up stock by item and store at once.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built in Power Query on sales files, it shows the lookup for an export that returns every month: a merge with a left outer join keeps every row and brings product and region names in beside the codes at each refresh.
-
Project 02
Dunder Michael Paper Company employee database
An employee database, it teaches the clean-up that makes a lookup trustworthy: stray spaces trimmed, second spellings put right with Find and Replace, and repeated IDs removed so each code stands for one record. An item master suffers the same faults and takes the same cure.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 13 of them, 1 h 8 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 SUM and simple formulas feel familiar: the lookup run begins there and climbs to the Ninja Challenge. Item master in a mess? Take the clean-up from Lesson 22 and the drop-down list at Lesson 45 first, so the codes are fit to match. Still unsure about locked references? Lesson 10 explains them in a few minutes, and if Excel is new altogether, Lesson 1 is the place to begin.
13 of 186 lessons · 1 h 8 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) Codes made fit to match: TRIM in a helper column pasted back as values, Find and Replace narrowed to one column for second spellings, duplicates shown in colour, then Remove Duplicates with the whole row in view, so one code means one record. The data is an employee list; an item master breaks the same way and mends the same way.
- 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
05 Text functions and data validation (enhancing data quality) A drop-down list from Data Validation, sourced from a list on another sheet, which blocks any entry not on it. Source it from the item master's codes and a count sheet only ever holds codes the lookups can find.
- 45 Data validation in Excel Create drop-down lists for consistent data entry 4 min
08 Advanced Excel functions: lookups, text and arrays The lookup run in full, on the PeopleInsight HR dataset: why lookups matter, VLOOKUP with an exact match and a locked range, XLOOKUP with if not found and a two-way lookup, IFERROR for lookup errors, INDEX and MATCH, CONCAT and TEXTJOIN to join text into one key, and LEFT, RIGHT and MID to cut a code into its parts.
- 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
- 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 UNIQUE for the distinct codes a log holds, and FILTER for every row that matches, with AND and OR conditions: what a lookup cannot give when one SKU has many movements. Both are dynamic arrays and need a modern Excel.
- 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
08 Advanced Excel functions: lookups, text and arrays The Ninja Challenge: an order sheet filled from a product list by XLOOKUP, a name and a per-unit figure for each line, a line total from the figure and the quantity, and order IDs rebuilt with a text prefix. It is an issue note or a requisition in all but name.
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 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.
Type a SKU, get its description, bin and unit cost: is that XLOOKUP or VLOOKUP work for an inventory controller?
Both can do it, XLOOKUP with fewer ways to go wrong, and The Complete Excel Course with AI Integration from Coding Liquids teaches the two side by side on industry-standard projects designed after talking with people from many different industries. VLOOKUP finds the SKU in the first column of the item master and counts across to the column you want (Lesson 68); XLOOKUP points straight at the code column and the return column, reaches left or right, and takes a message for a missing code (Lesson 69). INDEX with MATCH, the long-standing route to the same answers, follows (Lesson 71), with IFERROR for the misses (Lesson 70). This page lines up the 13 lessons that make lookups dependable on stock files, 1 hour 8 minutes in all, from cleaning the codes to a Ninja Challenge that fills an order sheet from a product list. The lessons join HR records across sheets; an item master, a count sheet and a stock export join exactly the same way.
Someone added a column to the item master and every VLOOKUP now returns the wrong figure: why, and how does XLOOKUP avoid it?
Because VLOOKUP counts columns by number, and The Complete Excel Course with AI Integration breaks it on purpose so you watch it happen. In Lesson 68 the formula asks for a set column of the lookup table; a column inserted inside that table shifts everything across, the results turn to zeros, and an undo puts them back. On a stock sheet that means a unit cost column quietly showing the pack size, or a reorder level showing a supplier code. XLOOKUP cannot fall into this: it is handed the return column itself rather than a position, so an inserted column moves out of its way (Lesson 69). The same lesson copies one XLOOKUP across to fetch several columns, shifting the return range each time and pinning the lookup cell back to the code column. Keep VLOOKUP for colleagues on an older Excel if you must, and follow its other rule as strictly: lock the table range with F4 before filling down, or the rows lower down return errors.
Can a lookup return a bin location or supplier code that sits to the left of the SKU?
Yes, and The Complete Excel Course with AI Integration teaches two ways round the limit VLOOKUP has. VLOOKUP reads only from left to right, with the SKU in the first column of its range, so a bin location stored in front of the code is out of its reach unless the item master is rearranged. XLOOKUP searches the code column and returns from any other column, left or right (Lesson 69). INDEX with MATCH does the same in any version of Excel: MATCH finds the row where the SKU sits, an exact match chosen with a zero, and INDEX returns what that row holds in the column you name (Lesson 71). The lesson builds it first on single cells, then down a whole table using the current row's code. The lessons fetch HR partners and office locations; in a stores file the same formulas reach the bin, the supplier code or the last count date, wherever the item master happens to keep it.
What should a count sheet show when a scanned or typed SKU is not in the item master?
A message that says so in plain words, and The Complete Excel Course with AI Integration gives you two ways to write it. XLOOKUP has an if-not-found argument of its own: Lesson 69 fills it with a short text, so a code missing from the master shows a word instead of #N/A. For VLOOKUP, Lesson 70 changes one code so it no longer matches, watches errors appear in two columns, then wraps each formula in IFERROR with NOT MATCHED as the answer for a miss. The lesson's point is the one that matters at a stock take: one extra letter is enough to break a lookup, and a raw #N/A tells the person reviewing the sheet nothing, while NOT MATCHED tells them a code needs checking. Filter the count sheet on that message (Lesson 21, outside this path) and you hold the list of codes to settle with whoever keeps the item master, before a single line of the count is valued.
How do I look up the quantity of one item in one store when the match needs two columns?
Join the two columns into one key, or read a grid both ways, and The Complete Excel Course with AI Integration teaches both. For a stock list with one row per item and store, a key made of the SKU, a separator and the store, built with the ampersand or CONCAT (Lesson 72), turns two conditions into one value that XLOOKUP can find; build the same key in the table you search and the match is exact. TEXTJOIN does the job neatly when more parts join, with the separator named once at the start. FinanceGuard's keys work this way, a month, a department and a category joined by a pipe (Lesson 117, outside this path). For stock laid out as a grid, items down the side and stores across the top, Lesson 69 ends with a two-way lookup that returns the value where a row and a column meet. The lessons look up staff records; a count by item and location follows the same pattern.
Our SKUs pack the store, the category and a serial number into one code: can formulas use each part?
Yes: LEFT, MID and RIGHT cut a code into its parts, and The Complete Excel Course with AI Integration teaches them on exactly that kind of code. In Lesson 73 a position code built from a location, a department and an ID is split three ways: LEFT takes the first three characters, RIGHT the last four, and MID starts at the fifth and takes three, because that is where the middle part begins. Point the same formulas at a SKU and the store, the category and the serial number land in columns of their own. From there each part is a key in its own right: XLOOKUP turns a category code into its full name from a short table, and SUMIFS totals stock by the category the code carries. The lesson ends by formatting the sheet as an Excel table and advises the same for every lookup table. Codes of uneven length need one fixed pattern first, which is worth settling before the next batch of SKUs is created.
The code on the count sheet matches the item master to the eye, yet XLOOKUP reports it missing: what is going on?
Almost always a hidden difference in the code or a range that moved, and The Complete Excel Course with AI Integration shows you both faults on purpose. In Lesson 22, TRIM strips the spaces at either end of an entry, Find and Replace puts a second spelling right, and both results are pasted back as values; to a lookup, a code with one trailing space is another code entirely. Then the formula itself: Lesson 69 warns that errors or zeros further down a column usually mean the lookup range was never locked, and the Ninja Challenge (Lesson 78) clears an error caused by an @ in a table reference, which reads only the current row when the lookup needs the whole column. A code held as a number in one list and as text in the other is the third suspect, which COUNT set against COUNTA exposes (Lesson 35, outside this path). Check those three in that order and most failed matches on a stock file are solved in minutes.
What goes wrong if the item master holds the same SKU twice?
The lookup takes the first match and never mentions the second, so a wrong cost or description can sit on a sheet for months, and The Complete Excel Course with AI Integration teaches you to clear the repeats before that happens. Lesson 23 first shows duplicate values in colour with conditional formatting, then runs Remove Duplicates two ways: with only the current column, which removes values from that column alone, and with the selection expanded, which removes whole rows. It also gives a safer route when two rows disagree: filter the code in a table and delete the record you choose. The lesson's rule fits an item master exactly: an ID works like a passport number, one record each. UNIQUE then returns the distinct codes a log contains (Lesson 75), and COUNTA wrapped round it (Lesson 35, outside this path) says how many there are, a number to set against the count of rows.
Can a lookup bring back every movement of one SKU, not just the first?
Yes, with FILTER, the function The Complete Excel Course with AI Integration teaches straight after the lookups for exactly this. XLOOKUP and VLOOKUP return one match per formula, which suits a description or a cost that exists once per SKU. A movement log holds many rows per SKU, and FILTER returns all of them in one go, spilling the rows into the cells below (Lesson 76). The lesson filters on one condition, then on two with AND logic, written with an asterisk, and on either of two with OR logic, written with a plus sign: one SKU in one store, or one SKU in either of two stores. The results spill outside the table, because a dynamic array needs room. UNIQUE lists the distinct codes or stores the log holds (Lesson 75). Both functions need a modern Excel. The lessons filter staff by location and job level; the rows of a stock log filter the same way.
Is VLOOKUP still worth learning if XLOOKUP does more?
Yes, for a practical reason, and The Complete Excel Course with AI Integration teaches it first because of it. Stock files live for years: a stores workbook built long ago is full of VLOOKUP, colleagues and suppliers may open your sheets in an Excel that has no XLOOKUP, and you will be asked to fix what is already there. Lesson 68 teaches VLOOKUP properly, with FALSE for an exact match and the table range locked, and shows its two weak points: the column counted by number, and the lookup value tied to the first column. Lesson 69 then shows XLOOKUP lifting both, and INDEX with MATCH (Lesson 71) gives the same freedom in any Excel. The course overview notes that XLOOKUP needs a modern version and flags it where it appears. The working rule for an inventory controller: write new sheets with XLOOKUP, keep the shared ones readable by everyone who opens them, and be fluent in all three.
What are the limits of XLOOKUP on a stock file?
Three are worth knowing before you build on it, and The Complete Excel Course with AI Integration teaches the way round each. It needs a modern Excel, so a colleague on an old copy sees #NAME? where your formula stands, a message Lesson 12 explains; INDEX with MATCH (Lesson 71) is the version-proof alternative. It stops at the first match, so repeated codes in the item master return whichever row comes first; the duplicate checks of Lesson 23 close that gap, and FILTER returns every match when you need them all (Lesson 76). And it works formula by formula, so a monthly export of thousands of lines carries a column of lookups that is rebuilt each month; for an export that arrives every period, a Power Query merge performs the lookup for the whole table at each refresh (Lesson 163, outside this path). Within those limits, XLOOKUP is the lookup to write new stock sheets with.
Can I build an issue note where typing a code fills in the item, the unit cost and the line total?
Yes, and the Ninja Challenge that closes the lookup lessons in The Complete Excel Course with AI Integration is that sheet under another name. Lesson 78 gives you a product list and an order sheet with empty columns: one XLOOKUP fetches each line's product name from the list, a second fetches its per-unit figure, the line total is that figure times the quantity, and every order ID is rebuilt in the house style by joining a text prefix to it. You pause and solve the tasks before the solution plays, and along the way meet an error caused by an @ in a table reference. On an issue note or a requisition the columns become item, unit, unit cost and value, and the reference number takes your own prefix. Add a drop-down sourced from the item master's codes (Lesson 45) and whoever fills the note in can only pick a code the lookup will find.
Can Claude repair the broken lookups in a stores workbook I inherited?
It can, and The Complete Excel Course with AI Integration shows Claude doing that kind of repair inside Excel. In Lesson 104, Claude is added to Excel, asked to work out a profit percentage in a chosen cell, then asked to fix an error in another column, with each change it wants to make put to you first, to allow once or to refuse. On an inherited stores file that help saves an afternoon: a column of lookups showing #N/A since the item master was rearranged, or a VLOOKUP whose table range was never locked. The lookup lessons are what let you judge the repair: did it lock the range, ask for an exact match, and point at the right return column (Lesson 68, Lesson 69)? Lesson 99 adds a short checklist for any AI result before it reaches a report. The AI lessons sit outside this path, and they are worth far more once the lookups are yours.
How long until I can join my item master to my stock sheets, and will it work on a Mac?
About 1 hour 8 minutes for everything on this page, and yes on a Mac: The Complete Excel Course with AI Integration needs Windows only for Power Pivot and Power Automate, and this path holds neither. The core arrives early in the run. By Lesson 70 you can fill a count sheet from the item master and label every miss, and by Lesson 73 you can split a SKU and look up its parts. XLOOKUP, UNIQUE and FILTER need a modern Excel, while VLOOKUP and INDEX with MATCH run in any copy. The PeopleInsight files come as a starter and a finished workbook, so every lookup you write can be checked against a working answer, and the Ninja Challenge tests it on an order sheet before you try it on your own stock. Lifetime access keeps the lessons open for the next inherited file, and finishing 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
- Formulas for inventory controllers
- Pivot tables for inventory control
- Charts for inventory controllers
- Dashboards for inventory controllers
- Conditional formatting for inventory
- Data cleaning for inventory controllers
- Data validation for inventory control
- Tables, sort and filter for inventory
- Text functions for inventory controllers
- Date functions for inventory controllers
- Dynamic arrays for inventory controllers
- Power Query for inventory controllers
- Power Pivot and DAX for inventory
- Excel macros and VBA for inventory
- Power Automate for inventory
- Copilot in Excel for inventory control
- ChatGPT for inventory controllers
- Claude in Excel for inventory