The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for production managers
Product codes on the shift log, standards in one list, the plan on another sheet: matching them by eye eats half a production manager's morning. The Complete Excel Course with AI Integration teaches the lookups that do the matching, on the PeopleInsight HR workbook, an industry-standard project, and this page picks out the lessons in the order a plant file needs them: clean codes, VLOOKUP, XLOOKUP, IFERROR, INDEX and MATCH, split and joined codes, FILTER and a challenge.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring each product's standard rate, ideal cycle time or description onto the shift log by product code with XLOOKUP, and turn output into standard hours earned.
- Keep the plant's inherited VLOOKUP files working: an exact match with FALSE, the table range locked with F4, and the column number checked whenever the master list changes.
- Return a clear message such as Check standard for a product missing from the master list, with XLOOKUP's if-not-found answer or IFERROR round a VLOOKUP.
- Find a work order from a lot or serial number that sits to its right with XLOOKUP or INDEX and MATCH, where VLOOKUP cannot reach.
- Read a grid of changeover times, or of rates by product and line, with a two-way lookup.
- Split a lot or batch code into its parts with LEFT, RIGHT and MID, and join line and product into one lookup key with the ampersand or TEXTJOIN.
- List every scrap or stoppage record for one line and product with FILTER, and check the codes in a log against the master list with UNIQUE.
- Clear stray spaces out of product and part codes with TRIM, so a lookup finds the code you can see on screen.
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.
An HR analytics workbook laid out the way a plant's master data is: codes on the main sheet, departments and locations on lookup sheets of their own. Every lookup on this page is written there, so moving to product, part and shift lists is a change of names, not of method.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built for sales reporting, it shows the lookup at the scale of a whole export: a Power Query merge (Lesson 163) adds product and region names to every row at once with a left join, and runs again on the next export at a refresh.
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, 50 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 67 Lookup functions in Excel
Begin at Lesson 67 if you already total a log with SUMIF or SUMIFS: the reason for lookups comes first, then VLOOKUP and XLOOKUP on the same data. If the codes in your files carry stray spaces, take Lesson 42 first, since a lookup can only match what is clean. Writing VLOOKUP already? Go to Lesson 69 for XLOOKUP, the two-way lookup and the if-not-found answer. New to Excel formulas altogether? Start at Lesson 1 and reach this page's lessons after the everyday formulas.
11 of 186 lessons · 50 min
05 Text functions and data validation (enhancing data quality) TRIM before any lookup: a space at either end of a code is enough to make an exact match miss a code that is plainly in the list. The lesson trims job titles and emails in a helper column and pastes the clean values back, the same fix for product and part codes.
- 42 TRIM, UPPER, LOWER and PROPER in Excel Clean messy text and fix capitalisation 6 min
08 Advanced Excel functions: lookups, text and arrays The lookups themselves, on an HR dataset: why a lookup beats copying across tabs, VLOOKUP with an exact match and a locked table range, XLOOKUP with its if-not-found answer and a two-way lookup, IFERROR in both, INDEX and MATCH for looking left, the ampersand and TEXTJOIN for a joined key, and LEFT, RIGHT and MID to split a packed code.
- 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 to list the distinct codes a log holds, ready to check against the master list, and FILTER to return every row for one line and one product with AND or OR logic. Both are dynamic arrays and need a current 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 lookup challenge: an orders sheet completed from a products sheet with XLOOKUP, a per-unit figure multiplied by quantity for each total, and an order ID reformatted with joined text, the shape of a production log completed from its standards.
- 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.
Does a production manager need both XLOOKUP and VLOOKUP, or is XLOOKUP enough for plant files?
Learn both: XLOOKUP for every file you start, VLOOKUP for the scheduling and stock files the plant already runs on. The Complete Excel Course with AI Integration from Coding Liquids teaches them back to back on the PeopleInsight HR workbook, an industry-standard project designed after talking with people from many different industries, so the difference shows on identical data. Lesson 68 writes VLOOKUP with an exact match; Lesson 69 gives XLOOKUP a fallback for any key it cannot find, plus a lookup by row and column at once; Lesson 70 and Lesson 71 add IFERROR and INDEX with MATCH. On the shop floor that means each product's ideal cycle time on the shift log, a part's lead time on the shortage list and the changeover time between two products on the schedule. The 11 lessons picked out here take 50 minutes, ending in a challenge solved without help.
Which holds up better when someone adds a column to the product master, XLOOKUP or VLOOKUP?
XLOOKUP, and The Complete Excel Course with AI Integration shows why by breaking a VLOOKUP on purpose. VLOOKUP counts columns by number, so in Lesson 68 a column inserted into the lookup table turns the results into zeros: the formula still asks for the same column number, and that column now holds something else. On a product master that gains a quality flag or a supplier note every few months, that is how a standard rate quietly becomes the wrong figure on every row of the shift log. XLOOKUP points straight at the column it returns (Lesson 69), so a new column leaves it unharmed, and it searches left or right as well. INDEX and MATCH (Lesson 71) share that strength in any Excel. For a master list that keeps changing shape, the safer formula is the one that never counted columns in the first place.
Why do so many plant workbooks still run on VLOOKUP, and can I keep them working?
Because VLOOKUP was the lookup for years and works in every Excel, so the files your plant inherited are built on it, and The Complete Excel Course with AI Integration teaches it properly before anything newer. Lesson 68 writes it with FALSE for an exact match, the setting that stops a part code from landing on a near neighbour, and locks the table range with F4 before filling down, since an unlocked range sends the rows below into errors. The lesson then inserts a column into the lookup table to show what that does, so you know which edits to a master list break which formulas. IFERROR wraps a VLOOKUP with a readable message (Lesson 70). With those habits you can maintain an old scheduling file safely, and move a formula to XLOOKUP (Lesson 69) only where the file is due for rework anyway.
Can a lookup turn a shift log of product codes into standard hours earned?
Yes: fetch each product's standard time per unit with XLOOKUP, multiply by the units made and total by line, and The Complete Excel Course with AI Integration teaches the pattern on its own order data. The lookup challenge in Lesson 78 has a products sheet and an orders sheet: XLOOKUP brings each order's product name and per-unit figure across by product ID, and a formula multiplies that figure by the quantity, the same shape as standard time multiplied by output. Lesson 69 sets up the XLOOKUP with an exact match and its range locked, and Lesson 70 adds the message for an ID the products sheet does not hold. Standard hours earned over hours worked gives a line's efficiency, and SUMIFS by line, taught earlier in the course (Lesson 37), turns the column into the figure the morning meeting asks for.
Can XLOOKUP find a work order from a lot number that sits to the right of it in the export?
Yes, and it is one of the jobs VLOOKUP cannot do. VLOOKUP reads only from left to right, with the value it searches in the first column of the table, so when an export puts the work order in its first column and the lot number further right, it is stuck. The Complete Excel Course with AI Integration teaches two ways round that. XLOOKUP searches left or right (Lesson 69): name the lot column to search and the work order column to return, wherever each sits. INDEX and MATCH (Lesson 71) do the same in any version of Excel: MATCH finds the position of the lot number and INDEX returns the work order from that position. Either way, a quality query that arrives with only a lot or serial number goes straight to its order, line and date, without anyone rearranging the export first.
What should the shift sheet show when a product is missing from the standards list?
A message that tells the reader what to do, and The Complete Excel Course with AI Integration teaches two ways to give one. XLOOKUP has its own if-not-found answer (Lesson 69), so a new product without a standard returns words such as Check standard in place of #N/A. For VLOOKUP, Lesson 70 wraps the formula in IFERROR with a message such as NOT MATCHED, after changing one code to show how a single extra letter breaks the match. The lesson's point carries straight to the shop floor: a raw #N/A tells most people nothing, while a message tells the supervisor that the master list needs a new line. COUNTIF of that message (Lesson 36) says how many rows are waiting, so the efficiency figure is never reported off a log with gaps in it. Add the product to the list and every message for it clears at once.
Why does a lookup return #N/A for a code I can see in the master list?
Almost always because the two codes are not quite the same, and The Complete Excel Course with AI Integration covers each cause. A stray space at the end of a code, typed by hand or carried in from an export, is enough to make an exact match fail; Lesson 42 clears spaces with TRIM in a helper column and pastes the clean values back. One extra or missing character does the same, which Lesson 70 demonstrates by altering a single code. Rows that work at the top and fail lower down usually mean the lookup range was not locked before filling down (Lesson 68, Lesson 69). A code entered two ways, such as Line 2 on one sheet and L2 on another, needs one agreed spelling, and a drop-down list keeps it that way (Lesson 45). Capitals are not the problem: Excel's lookups treat upper and lower case alike.
Can a lookup read a grid such as changeover times by product, or rates by product and line?
Yes: reading a grid by its row and its column at once is called a two-way lookup, and Lesson 69 of The Complete Excel Course with AI Integration builds one with XLOOKUP. A one-way lookup finds a row; a two-way lookup finds a row and a column at once and returns the cell where they cross. On a changeover matrix that means the product just finished down the side and the product starting next across the top, so the planned changeover time arrives on the schedule by itself. A rate grid of products against lines works the same way, giving the standard output for this product on this line. HLOOKUP, the older lookup across a row, has no lesson of its own; the two-way lookup reads across and down together. INDEX, which takes a row number and a column number, and MATCH, which supplies a position (Lesson 71), are the pieces of the same idea in any Excel.
Can one lookup match on line and product together?
Yes, in two ways built from lessons of The Complete Excel Course with AI Integration. The first joins the columns into one key: the ampersand and CONCAT from Lesson 72 turn a line name and a product code into one text value, in the log and in the standards list alike, and XLOOKUP then matches that key like any single code (Lesson 69). No lesson is named for lookups on several conditions; the key built with the text lesson does that job. The second returns every row that meets both conditions: FILTER with AND logic (Lesson 76), where the asterisk joins the two tests, lists every stoppage or scrap record for that line and that product at once, and updates as the log grows. Use the key when one answer is expected, such as a standard rate, and FILTER when you want the whole list. FILTER needs a current Excel.
Can I split a batch or lot code and look up each part of it?
Yes: LEFT, RIGHT and MID take a code apart, and The Complete Excel Course with AI Integration teaches them in Lesson 73 on a position code built like many plant codes, three letters for a site, three for a group and four digits for a number. LEFT reads from the start, RIGHT from the end, and MID takes characters from the middle given a starting point and a length. On a lot code that packs the line, the product family and a sequence, three short formulas give three columns, and each can then be looked up: the line to its area, the family to its standard. The lesson then formats the sheet as a table with filter arrows, so the split codes can be filtered straight away. Where codes vary in length, check the positions first; the course's FIND and SEARCH lesson (Lesson 43) shows how to locate a character.
Our plan sits on one sheet and the output on another: can lookups set them side by side?
Yes: a lookup across sheets is the first thing The Complete Excel Course with AI Integration teaches about lookups. In Lesson 68 the main sheet holds codes and a separate sheet holds the details, and VLOOKUP brings the details across by matching the code; Lesson 69 does the same with XLOOKUP and fills four columns of details for every row. Keep the planned quantity for each work order on the schedule sheet, look it up from the output log by work order number, and plan and actual sit on one row, ready for attainment. Lesson 67 explains why this matters: copying between tabs is slow and invites mistakes, while a lookup applies the same rule to every row. The challenge at Lesson 78, with a products sheet feeding an orders sheet, is the same layout as a schedule feeding a log.
Is XLOOKUP easier than VLOOKUP for supervisors who have never written a lookup?
Yes: XLOOKUP has fewer parts to get wrong, and The Complete Excel Course with AI Integration lets you judge both on the same data. VLOOKUP needs the table, a column number counted by hand and FALSE for an exact match (Lesson 68); XLOOKUP needs what to find, where to look and what to return, with the exact match and the message for a missing value written in (Lesson 69). A supervisor who writes XLOOKUP never counts columns and never meets the inserted-column fault. Lesson 67 opens with why lookups matter at all, so the idea comes before the syntax, and the challenge at Lesson 78 has you write the lookups unaided before the solution. A supervisor who already sums with SUMIF is ready for these lessons; one who is new to formulas should start with the course's first formula lessons and come back.
The line PCs and the office PCs run different Excels: which lookup should a shared production file use?
INDEX and MATCH, or VLOOKUP, wherever an older Excel must open the file, and XLOOKUP wherever every PC runs a current one; The Complete Excel Course with AI Integration teaches all three, so the choice is yours. XLOOKUP needs a modern Excel, and the course says so when it arrives (Lesson 69). INDEX and MATCH (Lesson 71) work in any version and share XLOOKUP's freedom to look left. VLOOKUP (Lesson 68) works everywhere too, at the cost of counting columns. IFERROR (Lesson 70) gives a readable message in all of them. The same caution applies to FILTER and UNIQUE on this page, which need a current Excel. A file the whole site shares is best built with the formula every PC understands, and the person who knows all three can make that call file by file.
If Copilot writes the lookup between my scrap log and the product list, what do I still check?
Four things, and The Complete Excel Course with AI Integration teaches each of them before AI comes near your formulas. Check that the draft searches the right column and returns the right one, which you can read at a glance once Lesson 69 has shown you the parts of an XLOOKUP. Check that it asks for an exact match, since a near match on part codes gives a confident wrong answer (Lesson 68). Check that the lookup range is locked, or the rows lower down go astray (Lesson 68). Check what a missing code returns (Lesson 70). Then test it on a code whose answer you already know. The course's AI section has Copilot and ChatGPT write formula columns that you verify (Lesson 95) and gives a QA checklist for AI output (Lesson 99): the lookup lessons are what make that verification quick.
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