The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for merchandise planners

Every planning sheet starts with a join: stock and intake brought onto the sales lines, attributes pulled from the item master, plan figures read from a grid. The Complete Excel Course with AI Integration teaches the lookups that do it on industry-standard projects, and this page picks the lessons a planner needs: clean keys, VLOOKUP and XLOOKUP, a fallback for unknown SKUs, INDEX and MATCH, combined and split codes, FILTER for every match and a Power Query merge.

Taught by Sagnik Bhattacharya and Virginia Thorn

The Complete Excel Course with AI Integration: Sagnik Bhattacharya and Virginia Thorn

What you will be able to do

At work, you will be able to:

  • Bring stock, intake and attributes onto every sales line from the item master with XLOOKUP and VLOOKUP, using an exact match and a locked table range.
  • Keep lookups working when the line list gains a column or the SKU sits at the right of an export, with XLOOKUP or INDEX and MATCH.
  • Show New line in place of #N/A for SKUs missing from the master, with XLOOKUP's not-found argument and with IFERROR.
  • Match a line on style and colour together, with a key built by CONCAT or the ampersand, or with FILTER and two conditions.
  • Read one figure from a plan grid of weeks across and categories down with a two-way lookup.
  • Split packed SKU codes into department, class and style with LEFT, MID and RIGHT, then look up and total by each part.
  • Return every store's row for one style with FILTER, put in order by SORTBY, where a single lookup would stop at the first match.
  • Join a whole weekly export to its product and region tables with a Power Query merge that reruns at a refresh.

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 in the course, it gives a planner every lookup move a line list needs: department names by VLOOKUP, location details by XLOOKUP with a fallback for missing codes, INDEX with MATCH, codes split into parts and distinct lists that update themselves.

  • Project 12

    SalesFusion

    A sales report that refreshes itself from a folder of files.

    Built on a folder of sales files, its merge lesson is the lookup at full scale: product and region names joined onto every sales row with a left join, so a weekly export picks up its attributes at each refresh instead of row by row.

Tap or pinch to zoom in, drag to move around. Click or scroll to zoom in, drag to move around.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 14 of them, 1 h 12 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 22 Cleaning data in Excel

Begin at Lesson 22 if you already total with SUMIFS and keep data in tables: clean codes come first, because every lookup matches on them, and the lookup lessons follow from Lesson 67. New to Excel altogether? Start at Lesson 1 and build up to this point. Already fluent in VLOOKUP? Jump to Lesson 69 for XLOOKUP, its not-found answer and the two-way lookup, then on to the codes and lists that follow.

14 of 186 lessons · 1 h 12 min

03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 1 of 9 lessons · 13 min Clean keys before any lookup: TRIM for the stray spaces that stop a SKU from matching, Paste Special values to fix the cleaned codes in place, and Find and Replace for a code written two ways. The lesson tidies an employee database, and a line list's codes take exactly the same treatment.
  1. 22 Start here Cleaning data in Excel TRIM, Paste Special values and Find and Replace 13 min
08 Advanced Excel functions: lookups, text and arrays 12 lessons · 54 min The lookup section itself: why a lookup beats copying across tabs, VLOOKUP with an exact match and a locked table, XLOOKUP with its own answer for a missing code and a two-way lookup, IFERROR round both, INDEX and MATCH, CONCAT and TEXTJOIN for combined keys, LEFT, RIGHT and MID for packed codes, EOMONTH and NETWORKDAYS for month ends and working days, UNIQUE, FILTER, SORT and SORTBY, and a products-and-orders challenge. The lessons join HR sheets; a line list, a stock file and a sales export join the same way. XLOOKUP and the dynamic arrays need a modern Excel.
  1. 67 Lookup functions in Excel The PeopleInsight HR dataset and why lookups matter 2 min
  2. 68 VLOOKUP in Excel Find employee data across sheets with exact match 4 min
  3. 69 XLOOKUP in Excel Exact match, if not found and two-way lookup 6 min
  4. 70 IFERROR in Excel Handle lookup errors in VLOOKUP and XLOOKUP formulas 3 min
  5. 71 INDEX and MATCH in Excel A flexible alternative to VLOOKUP 6 min
  6. 72 CONCAT and TEXTJOIN in Excel Combine employee names and text with a delimiter 3 min
  7. 73 LEFT, RIGHT and MID in Excel Extract parts of a text code like DAL-SAL-0001 7 min
  8. 74 TODAY, EOMONTH and NETWORKDAYS in Excel Date calculations for HR data 5 min
  9. 75 UNIQUE function in Excel Extract a distinct list with dynamic arrays 6 min
  10. 76 FILTER function in Excel Dynamic array filtering with AND and OR criteria 5 min
  11. 77 SORT and SORTBY in Excel Sort data dynamically with formulas 4 min
  12. 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min A lookup for a whole export at once: a Power Query merge that brings product and region names onto every sales row with a left outer join, keeping each row and leaving a blank where no match exists, and running again on next week's file at a refresh.
  1. 163 Merge queries in Power Query Look up product and region names with a left join 5 min

Instructors

Who teaches it.

Virginia Thorn smiling at the camera, dark hair tied back, wearing a navy top.

Instructor, Excel with AI

Virginia Thorn

Emmy Award winner. Teaches Excel with AI at Coding Liquids.

Questions

Asked before starting.

Can I learn XLOOKUP and VLOOKUP well enough to join our line list, stock file and sales export every week?

Yes. The Complete Excel Course with AI Integration from Coding Liquids teaches both lookups and the functions round them as a path of 14 lessons, 1 hour 12 minutes in all, ending with joins you can trust on any weekly file. It opens with the reason lookups exist: copying across tabs is slow and invites mistakes, while a lookup connects sheets through a shared code (Lesson 67). VLOOKUP brings a value across with an exact match and a locked table (Lesson 68); XLOOKUP looks in either direction, gives its own answer for a missing code and handles a two-way lookup (Lesson 69); IFERROR and INDEX with MATCH complete the set (Lesson 70, Lesson 71). The lessons join employee, department and location sheets in PeopleInsight, an industry-standard project designed after talking with people from many different industries. Put the item master, the stock file and the sales export in their place and the formulas stay the same, with the SKU as the shared code.

Our line list gains a new column every season: why does that break VLOOKUP and leave XLOOKUP working?

Because VLOOKUP counts columns while XLOOKUP points at one, and The Complete Excel Course with AI Integration shows the difference happening. In Lesson 68, VLOOKUP fetches a department name with a column index of 2; a column is then inserted into the lookup table and the results turn to zero, because the formula still asks for the second column, which now holds something else. In Lesson 69, XLOOKUP is given the lookup column and the return column as two separate ranges, so an inserted column shifts both and the answer stays right. For a line list that gains a markdown column, a new attribute or a flag for the season, that is the gap between a sheet that keeps working and one that quietly returns the wrong field to every row. INDEX with MATCH (Lesson 71) is built the same sturdy way, and it works in older copies of Excel as well.

The SKU sits in the last column of our stock export: can a lookup still fetch the description to its left?

Yes, with either of the two lookups that do not care which side the answer sits on. The Complete Excel Course with AI Integration teaches XLOOKUP in Lesson 69, where the lookup range and the return range are chosen separately, so the code can sit in the last column and the description, class or department anywhere before it. Lesson 71 teaches INDEX with MATCH, the older route to the same freedom: MATCH finds the code's position and INDEX returns whatever sits in that row of the column you name. VLOOKUP reads only to the right of the first column of its table, the limit that lesson spells out, so it would need the export rearranged first. A system export rarely puts its columns where a planner wants them, and with these two the layout stops mattering: no moving columns about before every lookup, and no rework when next week's file arrives in the same awkward order.

Lines that are not on the item master yet come back as #N/A: can the sheet say New line instead?

Yes, and The Complete Excel Course with AI Integration teaches it two ways, because both lesson titles promise it. XLOOKUP has an if-not-found argument of its own: in Lesson 69 it returns a chosen word for a location code missing from the table, and in your sheet that word can be New line, Not on master or a zero. Lesson 70 handles lookup errors in VLOOKUP and XLOOKUP formulas with IFERROR, wrapping each in a message, NOT MATCHED in the lesson, after a code is changed so that it no longer matches. The message matters more than it looks: a raw #N/A tells a buying meeting nothing, while New line says exactly which rows need setting up on the master before their figures can be trusted. Filter the column on the message and you have the week's list of lines to add, ready to send to whoever keeps the master.

Can one lookup match on style and colour together, when neither code identifies the line on its own?

Yes, by joining the two codes into one key, or by letting FILTER test both. The Complete Excel Course with AI Integration teaches the joining in Lesson 72: CONCAT, the ampersand and TEXTJOIN combine text from two cells with a separator, so style and colour become a single code, built the same way on the master and on the sales sheet. XLOOKUP on that combined column then finds the exact line (Lesson 69), and size can join the key as a third part. The second route needs no helper column: FILTER with two conditions multiplied together, the asterisk acting as AND, returns the row where both match (Lesson 76), and where several rows match it returns every one of them. FILTER needs a modern Excel, while a key built with the ampersand works in any copy, which makes it the safer choice for a sheet that travels to stores or suppliers.

Our plan sits in a grid with weeks across the top and categories down the side: can a lookup read one figure from it?

Yes: reading the figure where a row and a column cross is the two-way lookup that Lesson 69 of The Complete Excel Course with AI Integration carries in its title. Given a category and a week, the formula returns the planned figure where that row and that column cross, so a sheet of actuals can set each category's sales beside its plan for the same week without anyone reading across the grid by eye. Lesson 71 teaches the parts of the same idea with INDEX and MATCH: INDEX returns the value at a given row and column of a table, and MATCH returns a position rather than a value, so one MATCH for the row and another for the column hand INDEX both coordinates. The same lookup reads a size split by store or an allocation grid of stores by week. Put the week in one input cell, change it, and every figure on the comparison sheet moves with it.

Our SKU codes pack department, class and style into one string: can formulas split them out for lookups and totals?

Yes: a packed code is the very thing The Complete Excel Course with AI Integration practises on. Lesson 73 takes a code built from a location, a department and a number, DAL-SAL-0001, and splits it with LEFT for the first part, RIGHT for the last and MID for the middle, which needs a start position and a length. A planner's SKU behaves the same way: LEFT returns the department, MID the class and RIGHT the style number, each in its own column. From there the parts do real work: XLOOKUP turns a class code into the class name (Lesson 69), SUMIFS totals sales by department from the new column (Lesson 37), and UNIQUE lists the classes present this week (Lesson 75). Going the other way, TEXTJOIN rebuilds a code from its parts (Lesson 72). The lesson ends by formatting the sheet as a table, so new rows take the formulas as well.

A lookup returns #N/A for a SKU I can see on the master list: what usually causes it, and is that covered?

Yes, and the usual causes are few, all of them taught in The Complete Excel Course with AI Integration. A stray space inside or after the code makes two codes that look alike differ; TRIM and Find and Replace clear it (Lesson 22). A code one character off, a typo or an extra letter, breaks the match too, which Lesson 70 shows by changing a single department code. Errors or zeros further down a column usually mean the table range was left unlocked before the formula was filled down, fixed with F4 (Lesson 68, Lesson 69). Inside a table, an @ before a reference takes only the current row's value, which breaks a lookup that needs the whole column, the slip the challenge in Lesson 78 clears. Capitals are not among the causes: XLOOKUP and VLOOKUP treat a code the same in upper and lower case, so the hunt goes straight to spaces, typos and locks.

Some stores I send allocation sheets to still run an older Excel: should those sheets keep VLOOKUP?

Keep lookups every copy can read, and The Complete Excel Course with AI Integration teaches all three so the choice is yours. XLOOKUP needs a modern Excel, as the course says when it first appears; in an older copy the formula cannot calculate and the cell shows an error where the store's figures should be. VLOOKUP with an exact match (Lesson 68) works in practically every version, which is why so many shared and inherited workbooks still run on it, and INDEX with MATCH (Lesson 71) works there too while lifting VLOOKUP's limits: it reads left as well as right and survives inserted columns. A sound working rule follows: XLOOKUP for sheets that stay on your own desk, INDEX with MATCH or VLOOKUP for anything that travels. Knowing all three also lets you read the VLOOKUPs in an inherited planning file before deciding whether to rewrite them.

XLOOKUP stops at the first match: can a formula return every store's row for one style?

Yes: FILTER returns every row that matches, where a lookup returns one, and The Complete Excel Course with AI Integration teaches it in Lesson 76. Give FILTER the sales or stock table and the condition that the style equals the code in your input cell, and the result spills every store's row for that style, as many rows as there are matches, updating as the data changes. The lesson then adds conditions: an asterisk between two tests works as AND, giving the rows for one style in one region only, and a plus sign works as OR, giving the rows for either of two styles. SORTBY puts the spilled rows in order of units sold or stock held (Lesson 77), and SUM round FILTER totals them in one cell (Lesson 34). Both functions spill their answers, so both ask for a modern Excel. For a chase list or an allocation check, a filter clicked every morning becomes a formula that keeps itself current.

Our weekly sales export runs to many thousands of lines: is a Power Query merge better than XLOOKUP filled down?

A merge wins for the export that returns every week, and The Complete Excel Course with AI Integration teaches both so you can choose by the job. XLOOKUP suits a working sheet: quick to write, visible in the cell, right for a few columns on a planning tab. Lesson 163 shows the alternative for a whole export: a Power Query merge joins the sales query to the product and region tables on their codes with a left outer join, keeping every sales row and bringing the names in beside it, and next week's file goes through the same merge at a refresh with no formula to fill down. Rows whose code finds no match come back blank, so new lines are easy to pick out. The step beyond is a data model in Power Pivot, where tables are related instead of merged (Lesson 169); those Power Pivot lessons need Excel for Windows.

Is there a lookup exercise on products and orders I can practise on before touching our live line list?

Yes: The Complete Excel Course with AI Integration ends its lookup section with a Ninja Challenge built on a Products sheet and an Orders sheet (Lesson 78), tried by you before the solution plays. It asks for each order's product name fetched by XLOOKUP on the product ID, a second XLOOKUP for the per-unit figure, a line total of that figure times the quantity, and order IDs restyled by joining a text prefix on. Read Products as your item master and Orders as a week of sales lines, and it is the join a planner makes every Monday, down to the error met on the way: an @ in the reference reads one row only. Both the problem workbook and the worked answer come with the course, so the method is proven on practice data before it touches the SKUs, units and intake figures of your real line list.

Can one XLOOKUP be copied across to bring category, class, cost and selling value from the item master?

Yes, and The Complete Excel Course with AI Integration shows the copy across, the trap inside it and the way out. In Lesson 69, an XLOOKUP for a location's city is filled down, then copied right for state, region and work arrangement, its return range moving one column each time. As the formula moves, the lookup value moves with it, from the code's column to the one beside it, and the lesson sets it back to the code. Lock the code's column with F4 and leave the row free, the mixed reference of Lesson 10, and the formula copies across and down in one go with no resetting at all. On a line list the same move fills category, class, cost and selling value from the item master in seconds, each column pointing at its own return range, so a column added to the master later breaks none of them.

Every Monday I paste stock figures beside the sales lines by hand: how soon can a lookup take over that join?

Within the first stretch of lookup lessons, and the saving starts the following Monday. In The Complete Excel Course with AI Integration, the reason for lookups and VLOOKUP come first (Lesson 67, Lesson 68), XLOOKUP with its not-found answer straight after (Lesson 69) and IFERROR for anything left unmatched (Lesson 70); after those, the stock column fills itself from the stock file the moment the formula is copied down. The whole path runs to 1 hour 12 minutes, with split codes, spilled lists and the Power Query merge for a full export coming later. PeopleInsight's starter workbook and its finished version come with the course, so each formula can be checked before your own file sees it. Lifetime access keeps the lessons to hand for the day the stock file changes layout, and finishing the course earns a Certificate of Completion that an employer can verify.

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.