The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for training coordinators

A training record holds an employee ID and a course; the department, manager and location sit on the HR team's list, and completions arrive in a third file. Matching them by hand each week is where mistakes creep in. The Complete Excel Course with AI Integration teaches the lookups that join them, VLOOKUP, XLOOKUP and INDEX with MATCH, on the PeopleInsight HR workbook, an industry-standard project. The lessons below come in the order a training tracker needs them.

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 each learner's department, manager and location into the training log from the HR staff list with XLOOKUP, matched on employee ID and filled down the whole log.
  • Read and repair the VLOOKUP formulas already in inherited trackers, with an exact match and a locked range, and know why an inserted column breaks them.
  • Show Not enrolled, or any message you choose, for a person missing from a course export with XLOOKUP's own if-not-found answer, and wrap older VLOOKUPs in IFERROR.
  • Read one person's status for one course out of a training matrix with a two-way lookup, from a summary sheet or a manager's view.
  • Look up to the left of the key column with INDEX and MATCH when the employee ID is not the first column of an export.
  • Flag the records of leavers by looking the training log up against the current staff list, and set them aside before the next report.
  • Spot who booked but never signed in by looking each booking up in the sign-in sheets on a joined key of person and session, and gather the no-shows with FILTER.
  • Make keys safe before any lookup runs: TRIM and Find and Replace for stray spaces and second spellings, and Remove Duplicates so every employee ID belongs to one person.

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.

    Built on an HR dataset, it fetches each employee's department, HR business partner, city and work arrangement from lookup tabs through a shared code, the way a training log fetches from the staff list through an ID: unmatched codes become readable messages, and spilled lists filter and sort themselves.

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

  • Project 02

    Dunder Michael Paper Company employee database

    An employee list in the course, it is where you learn to clean a key column: stray spaces trimmed, spellings made consistent and repeated employee IDs removed, so each ID on your own staff list points to one person and one row before anything is looked up.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 15 of them, 1 h 21 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 your training log is already a tidy list with an employee ID on every row: the lookups begin there, on the PeopleInsight dataset. If your staff list carries stray spaces or names a person twice, take Lesson 22 and Lesson 23 first, and Lesson 19 if your lists are not yet tables. Never opened Excel before? The course itself starts at Lesson 1, ahead of this path. Writing VLOOKUP already? Go to Lesson 69 for XLOOKUP's if-not-found answer and the two-way lookup.

15 of 186 lessons · 1 h 21 min

03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 1 of 9 lessons · 8 min Excel tables on an employee database: a table grows as rows arrive and carries its formulas down, so a staff list kept as a table takes in new starters, and lookups that point at its columns take them in too.
  1. 19 Excel tables Create and format a table, structured references and total row 8 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 2 of 9 lessons · 19 min Keys that match, on the same employee list: TRIM in a helper column and Paste Special values, Find and Replace for second spellings, then repeated IDs highlighted and the duplicate rows removed, so one ID means one person before a lookup relies on it.
  1. 22 Cleaning data in Excel TRIM, Paste Special values and Find and Replace 13 min
  2. 23 Remove duplicates in Excel Find and delete duplicate rows in an employee list 6 min
08 Advanced Excel functions: lookups, text and arrays 12 lessons · 54 min The lookups themselves, on the PeopleInsight HR dataset: why lookups beat copying between tabs, VLOOKUP with an exact match, XLOOKUP with its if-not-found answer and a two-way lookup, IFERROR for lookup errors, and INDEX with MATCH. Then CONCAT and TEXTJOIN for name keys, LEFT, RIGHT and MID for codes, TODAY, EOMONTH and NETWORKDAYS for dates, UNIQUE, FILTER, SORT and SORTBY for lists that update themselves, and a lookup Ninja Challenge.
  1. 67 Start here 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

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.

Is learning XLOOKUP and VLOOKUP worth it for a training coordinator who matches the same people across the HR list, the course export and the sign-in sheets?

Yes, because those three lists share one thing, the employee ID, and a lookup turns that ID into everything else you need. The Complete Excel Course with AI Integration from Coding Liquids sets the method out on the PeopleInsight HR workbook, an industry-standard project designed after talking with people from many different industries, where each employee row draws its department, HR partner and location from other sheets through a shared code, just as a training log draws from the staff list through an ID. VLOOKUP fetches a department by exact match (Lesson 68), XLOOKUP adds its own answer for a missing person and a two-way lookup (Lesson 69), IFERROR tidies the misses (Lesson 70) and INDEX with MATCH covers what the other two cannot (Lesson 71). The 15 lessons gathered here for joining training records, 1 hour 21 minutes of video, leave you with formulas that do a week of matching in the time it takes to fill a column.

For a new training tracker, should I write XLOOKUP or VLOOKUP, and when does the older one still belong?

XLOOKUP for anything new, and The Complete Excel Course with AI Integration shows you exactly why, side by side on the same HR data. VLOOKUP needs FALSE for an exact match, reads only to the right of its first column and counts columns by number, so Lesson 68 inserts a column into the lookup table and watches the results turn to zeros. XLOOKUP (Lesson 69) points straight at the column it returns, looks left or right and takes a value to show when nothing matches. VLOOKUP still belongs in two places: the inherited trackers already full of it, which you can then read and repair, and a file shared with colleagues on an older Excel, since XLOOKUP needs a modern one, as the course overview in Lesson 2 points out. Knowing both means no workbook a colleague hands you is closed to you.

A lookup that finds no match shows #N/A: how do I make it say something a manager understands?

Give it a message of its own, and The Complete Excel Course with AI Integration shows the way that suits each lookup. XLOOKUP carries its own answer for a missing match: in Lesson 69 the formula's if-not-found argument returns n/a for a location code with no partner, and the same argument returns Not enrolled, Check ID or a blank on your sheets. For VLOOKUP, which has no such argument, Lesson 70 wraps the formula in IFERROR: the lesson breaks a department code on purpose, watches errors appear in two columns and replaces them with NOT MATCHED. Either way the sheet says something a manager understands, where a raw #N/A tells most readers nothing at all. Choose the words with care, since a message that says why a row failed saves you the follow-up question.

Can a lookup flag the training records that belong to people who have left?

Yes: look each ID in the training log up in the current staff list, and a person the list no longer holds is a leaver. The Complete Excel Course with AI Integration teaches the pieces on the PeopleInsight HR workbook. XLOOKUP (Lesson 69) takes a value to return when nothing matches, so the missing person shows Left instead of an error, and for a VLOOKUP, Lesson 70 wraps the formula in IFERROR to the same end. FILTER (Lesson 76) then gathers every Left row onto a sheet of its own in a modern Excel, ready to archive, and a count of the column tells you how many records stopped needing reminders this month. Run it before each report and your completion rate stops counting people who are no longer there to complete anything. The lessons match codes to departments; the same method checks people against a staff list.

Can XLOOKUP read one person's status for one course straight out of a training matrix?

Yes: fetching the value where a person's row meets a course's column is a two-way lookup, and Lesson 69 of The Complete Excel Course with AI Integration carries the words in its title. With it, a matrix of names down the side and courses along the top can be read from anywhere in the workbook, a summary sheet or a manager's view, without scrolling to the intersection. The same lesson fetches city, state, region and work arrangement for every employee and copies the formula across, moving the return range a column at a time, which is how one formula fills several columns of a training report. Lesson 71 adds the classic tool for a grid: INDEX returns the value at a given row and column of a table, and MATCH finds the position of the name or the course to give it.

Can a lookup bring each course's duration, validity period and provider into the bookings list?

Yes, from one course catalogue sheet, and The Complete Excel Course with AI Integration teaches the pattern on the PeopleInsight lookup tabs. In Lesson 69 one XLOOKUP on the location code brings back the city; copied across and pointed at the next return column, the same formula brings the state, the region and the work arrangement. Give your catalogue a column each for title, duration, validity and provider, key it on the course code, and every booking line fills itself. Lesson 68 does the VLOOKUP version, changing the column number from 2 to 3 to fetch a second field, and shows why the range must be locked with F4 before the formula is filled down. A booking list built this way never needs retyping when a course changes: edit its catalogue row and every booking that points at it follows.

The HR team keeps adding columns to the staff list: will my lookups survive?

XLOOKUP and INDEX with MATCH will, and The Complete Excel Course with AI Integration shows you why VLOOKUP may not. In Lesson 68 a column is inserted into the lookup table and the VLOOKUP results turn to zeros, because VLOOKUP counts columns by number and the count no longer lands on the department name. XLOOKUP (Lesson 69) points straight at the column it returns, so a column added between the ID and the department moves the reference along with it and the answers stay right. INDEX with MATCH (Lesson 71) holds up the same way, since MATCH finds a position instead of relying on a typed number. For a staff list that another team owns and edits whenever it likes, that difference alone is reason enough to move a training tracker onto XLOOKUP.

The employee ID is the last column of the HR export: can a lookup still find the name to its left?

Yes, and The Complete Excel Course with AI Integration teaches two lookups that can. VLOOKUP is the one that cannot, because it searches only the first column of its range and returns columns to the right, a limit Lesson 71 names before lifting it: INDEX returns the value at a position, MATCH finds that position in any column, and together they look left, right or anywhere. The lesson names the tables first and uses each row's department ID to fetch the HR business partner down the list. XLOOKUP (Lesson 69) also searches left or right, with the lookup column and the return column chosen separately. Exports from HR and learning systems rarely put the ID where VLOOKUP wants it, so knowing both alternatives saves rearranging someone else's file before every report.

Should I match learners by employee ID, email or name?

By employee ID wherever you have one, and The Complete Excel Course with AI Integration teaches what makes a key safe to match on. An ID, in the words of Lesson 23, should be like a passport number, one person and one ID; the lesson highlights repeated IDs and removes the duplicate rows, since a lookup stops at the first match and never mentions a second. Lesson 22 clears the stray spaces and second spellings that make a match fail, with TRIM and Find and Replace. Names are the weakest key, because two people can share one and a single extra character breaks the match, the point Lesson 70 makes with a code one letter off. Where only names exist, Lesson 72 joins first name and surname into one full-name column to look up on, and an email address, unique to each person, makes a sound second choice.

I tried VLOOKUP once and got errors all the way down the column: will the course show me why?

Yes, it is the commonest lookup fault, and The Complete Excel Course with AI Integration fixes it in the first lookup lesson. In Lesson 68 the VLOOKUP is filled down by double-click and the rows below return errors, because the table range moved with every row; F4 locks the range, and the column fills correctly. Lesson 69 repeats the point for XLOOKUP, where zeros or errors lower down point to the same unlocked range, and the Ninja Challenge (Lesson 78) adds a second cause, an @ in a table reference that takes only the current row when the lookup needs the whole column. Seeing each fault made and fixed on purpose is what lets you repair a colleague's tracker as well as write your own, and the finished PeopleInsight workbook is there to compare against.

Reminders work better with the manager copied in: can a lookup bring each learner's manager onto the overdue list?

Yes, and The Complete Excel Course with AI Integration does almost exactly that on the PeopleInsight HR workbook. Lesson 68 fetches each employee's HR business partner with VLOOKUP, using the third column of the department table, and Lesson 71 fetches the same partner with INDEX and MATCH down the whole list. Point the formula at your staff list's manager column instead, keyed on the employee ID, and every overdue learner carries a manager's name beside it; a second lookup on the manager's own row brings back the manager's email address. Add department and location from Lesson 69 and the reminders can be addressed and grouped from one sheet, with every name ready to paste in. The lessons fetch partners by department; a manager by employee ID is the same lookup, only keyed more precisely.

If I sort the staff list a different way, will my lookups still find the right people?

Every time, because an exact-match lookup finds the ID wherever it sits, and The Complete Excel Course with AI Integration sets every lookup to exact match. Lesson 68 gives VLOOKUP FALSE as its last argument and Lesson 69 gives XLOOKUP 0, both meaning find this exact value, so the order of the rows in the staff list never matters. Sort it by surname, by department or by start date and each lookup returns the same answer as before. Sorting is safe inside a table as well, since a sort there moves whole rows and no detail drifts away from its person (Lesson 20, outside this path). When you want a sorted view without touching the source, Lesson 77 gives one by formula: SORT returns a sorted copy, and SORTBY orders it by a column you need not even show.

Are there lookup exercises to practise on before I touch the real staff list?

Yes, a full workbook of them. The Complete Excel Course with AI Integration gives you the PeopleInsight HR starter file, with its employee sheet and lookup tabs, and the complete file to check every answer against, so each lesson of the section is practised on data shaped like a staff list before you open yours. Lesson 78 then sets a Ninja Challenge on a fresh pair of sheets, products and orders: an XLOOKUP for each order's product name and another for its per-unit figure, a total from the two, and a formatted order ID built by joining a text prefix. You pause, solve the tasks, then follow the solution. A coordinator's version of the same task is a bookings sheet filled from the course catalogue, and after the challenge the step to your own files is a short one.

Can a lookup compare the bookings with the sign-in sheets and show who booked but never came?

Yes: look each booking up in the sign-in sheet, and a booking with no signature behind it is a no-show. The Complete Excel Course with AI Integration gives you every piece on the PeopleInsight HR workbook. Because one person can book several sessions, the key needs both the person and the session, so join the employee ID and the session code into one text key on each sheet with the CONCAT or the ampersand of Lesson 72. XLOOKUP (Lesson 69) then searches the sign-in keys and returns your own word, No-show, when nothing matches. FILTER (Lesson 76) gathers the no-shows in a modern Excel, ready for the follow-up that asks why. Counted by session, they show which dates lose most people, the start of a useful conversation with the managers concerned.

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.