The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for data analysts

Most analysis starts with two tables that should be one: orders without product names, employees without their department, a sales table without its region names. The Complete Excel Course with AI Integration teaches data analysts to join them with XLOOKUP, VLOOKUP and INDEX MATCH on PeopleInsight, an industry-standard HR workbook, then carries the same join into a formula model, a Power Query merge and a data model. This page picks out those lessons, from the first lookup to joins that refresh.

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:

  • Join a lookup table onto a dataset with XLOOKUP, using an exact match, an if-not-found answer and a return column that survives inserted columns.
  • Read, repair and extend VLOOKUP in shared workbooks: FALSE for an exact match, a locked table range and the column number that breaks when columns move.
  • Return a value from the left of the key, or from a row and a column at once, with INDEX and MATCH and XLOOKUP's two-way lookup.
  • Make unmatched keys visible with IFERROR and XLOOKUP's if-not-found answer, so missing records are counted instead of hidden.
  • Build a key from several fields with CONCAT, TEXTJOIN or the ampersand, and take a packed code apart with LEFT, RIGHT and MID.
  • Return every matching row, not only the first, with FILTER under AND and OR conditions, and list each key once with UNIQUE.
  • Set two tables side by side by a shared key without losing a row from either: SORT, UNIQUE and VSTACK for the full key list, SUMIFS for each table's figures.
  • Move a join out of the grid when it outgrows it: a Power Query merge with a left outer join, and Power Pivot relationships in a data model, which need Excel for Windows.

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.

    The lookup workout an analyst needs: an employee table filled from department and location sheets three ways, unmatched codes caught with IFERROR, packed codes split into parts, and FILTER, UNIQUE and SORT spilling lists beside it, then a challenge to solve alone.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    A join that loses nothing from either side: one sorted list of every key in two tables, each key unpacked into period, department and category, and SUMIFS fetching both tables' figures beside it, the pattern for setting any two sources against each other.

  • Project 12

    SalesFusion

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

    Lookups that rerun themselves: product and region tables merged onto every sales row with a left outer join, blanks checked after each merge, and the tables finally related in a data model so reports read across them with no lookup column.

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 15 of them, 1 h 14 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 you know IF and SUMIFS: the PeopleInsight workbook opens there, and every lookup on this page grows from it. New to formulas? Take Lesson 28 to Lesson 37 first, or begin at Lesson 1 if Excel itself is new. Already writing XLOOKUP? Move on to Lesson 75 for UNIQUE and FILTER, then to the model joins: FinanceGuard opens at Lesson 115, and the Power Query merges work on queries SalesFusion builds from Lesson 153.

15 of 186 lessons · 1 h 14 min

08 Advanced Excel functions: lookups, text and arrays 5 of 12 lessons · 21 min The three lookups side by side on one HR dataset: why lookups beat copying between tabs, VLOOKUP with an exact match and a locked table range, XLOOKUP with an exact match, an if-not-found answer and a two-way lookup, IFERROR on lookup errors in VLOOKUP and XLOOKUP formulas, and INDEX with MATCH for a return column anywhere in the table. The data is employee records; a customer, product or campaign key joins the same way.
  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
08 Advanced Excel functions: lookups, text and arrays 2 of 12 lessons · 10 min Keys that are not ready to join: CONCAT, the ampersand and TEXTJOIN to combine fields into one string, and LEFT, RIGHT and MID to take apart a code that packs a location, a department and an ID into one cell. Analysts meet both whenever two systems store the same thing differently.
  1. 72 CONCAT and TEXTJOIN in Excel Combine employee names and text with a delimiter 3 min
  2. 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 4 of 12 lessons · 18 min Beyond a single match: UNIQUE to list each key once, FILTER to return every row that meets one condition or several with AND and OR, SORT and SORTBY to order the results, then a challenge that fills an orders sheet with product details by XLOOKUP before you watch the solution.
  1. 75 UNIQUE function in Excel Extract a distinct list with dynamic arrays 6 min
  2. 76 FILTER function in Excel Dynamic array filtering with AND and OR criteria 5 min
  3. 77 SORT and SORTBY in Excel Sort data dynamically with formulas 4 min
  4. 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) 1 of 10 lessons · 8 min A join when keys repeat: SORT, UNIQUE and VSTACK build one list of every key found in either of two tables, LET and TEXTSPLIT unpack each key, and SUMIFS brings each table's figures in beside it. Nothing is lost from either side, which a single lookup in one direction cannot promise.
  1. 117 Budget vs actual model in Excel SORT, UNIQUE, VSTACK, LET, TEXTSPLIT, SUMIFS 8 min
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min The lookup rebuilt as a Power Query merge: product and region tables joined to a sales query on their codes with a left outer join that keeps every sales row, so the join reruns on every refresh instead of living in a column of formulas.
  1. 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 2 of 21 lessons · 12 min Joins at the scale of a model: a fact table built from merges with its lookups and appended history, checked for blanks after every merge, then loaded into the data model and related to its lookup tables one to many in Power Pivot's Diagram View, where a relationship does the work of a lookup column copied down every row. The Power Pivot lesson needs Excel for Windows.
  1. 168 Build a sales fact table in Power Query Merge lookups and append history 6 min
  2. 169 Power Pivot Data Model in Excel Relationships and Diagram View 6 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 there an Excel course that teaches data analysts to join tables with XLOOKUP and VLOOKUP?

Yes. The Complete Excel Course with AI Integration from Coding Liquids teaches lookups the way analysis uses them, as joins between tables, on PeopleInsight, an industry-standard HR workbook whose employee table needs departments, HR business partners and locations from separate lookup sheets. VLOOKUP brings in department names with an exact match (Lesson 68), XLOOKUP fills four location columns with an if-not-found answer (Lesson 69), and INDEX with MATCH returns a column from anywhere in the table (Lesson 71). The page then goes where analysts go next: FILTER for every matching row, a model that joins two tables by a key with SUMIFS, a Power Query merge and a Power Pivot data model. That is 15 lessons in all, 1 hour 14 minutes, and every project was designed after talking with people from many different industries, so the joins you practise are the ones real reports depend on.

Which is better for analysis work, XLOOKUP or VLOOKUP?

XLOOKUP, for nearly every new formula, and The Complete Excel Course with AI Integration shows why on the same data. In Lesson 68, VLOOKUP counts its return column by number and searches only to the right of the key, so a column inserted into the lookup table throws the results off, which the lesson demonstrates before undoing it. In Lesson 69, XLOOKUP points straight at the column it returns, so an inserted column leaves it unharmed; it looks left as well as right, takes an if-not-found answer inside the formula and does a two-way lookup. For an analyst whose lookup tables change shape as a project grows, that robustness is worth more than any other feature. VLOOKUP still earns its lesson: it fills the workbooks colleagues send, and it runs in versions of Excel that came before XLOOKUP, which needs a modern Excel such as Microsoft 365.

Most files I inherit use VLOOKUP: does the course teach it properly, faults included?

Yes, faults first, because those are what break inherited files. The Complete Excel Course with AI Integration builds VLOOKUP in Lesson 68 and then makes it fail on purpose: filled down without a locked table range, the rows below return errors until F4 fixes the range, and a column inserted into the lookup table turns results to zero until it is undone. FALSE for an exact match is set from the start, the setting whose absence lets a lookup quietly return the wrong row. Lesson 70 then changes a code so it no longer matches and wraps the formula in IFERROR, so the cell explains the problem instead of showing #N/A. People keep VLOOKUP for good reasons, older versions and habit among them, so an analyst who reads it fluently can repair a colleague's report in minutes and decide which formulas are worth moving to XLOOKUP.

What are the three types of lookup function, and does the course teach all of them?

Usually VLOOKUP, XLOOKUP and INDEX with MATCH, and The Complete Excel Course with AI Integration teaches all three on one dataset, so the differences show. VLOOKUP finds a key in the first column of a range and returns a column counted by number (Lesson 68). XLOOKUP takes a lookup range and a return range separately, with an if-not-found answer and a two-way lookup (Lesson 69). INDEX returns the value at a position and MATCH finds that position, so together they return from any column, left of the key included (Lesson 71). HLOOKUP, the sideways twin of VLOOKUP, has no lesson: XLOOKUP works along a row as well as down a column, so it covers that job. Power Query adds a fourth way to join for work that repeats, the merge (Lesson 163), and this page includes it, because a join you rebuild every month belongs in a query.

Is XLOOKUP the last word in lookups, or do analysts move on to something else?

Nothing has replaced XLOOKUP inside a worksheet, but analysts add three tools beside it as data grows, and The Complete Excel Course with AI Integration teaches each. FILTER returns every row that matches, where XLOOKUP stops at the first, and takes several conditions with AND and OR (Lesson 76). A Power Query merge joins a lookup table to a whole query with a left outer join and reruns at every refresh, so the join lives in the query instead of in a column of formulas (Lesson 163). A Power Pivot data model goes further, relating a sales table to its lookups one to many, so PivotTables read across all of them with no lookup column at all (Lesson 169); Power Pivot needs Excel for Windows. XLOOKUP stays the everyday tool, and the others take over when a join repeats every period or the tables multiply.

My key column sits in the middle of the export: which lookup can return values from its left?

XLOOKUP or INDEX with MATCH, and The Complete Excel Course with AI Integration teaches both for exactly this case. VLOOKUP needs the key in the first column of the range it searches, so a value to the left of the key is out of its reach. XLOOKUP takes the column to search and the column to return as separate ranges, so their order does not matter (Lesson 69). INDEX and MATCH split the job in two: MATCH finds the key's position in its column, with 0 for an exact match, and INDEX returns the value at that position from any other column (Lesson 71). The lesson names the tables first, then writes the formula with an @ reference to the current row's key, a habit that keeps a lookup readable months later. Exports rarely put the key where VLOOKUP wants it, so this is a daily need in analysis, not an edge case.

Two sources hold the same IDs, yet the lookup still fails: what usually causes it?

Small differences nobody can see, and The Complete Excel Course with AI Integration teaches you to find and remove them. Lesson 70 shows how little it takes: one changed letter in a department code breaks the match, and IFERROR turns the error into a message a reviewer understands. Stray spaces are the commonest cause, which TRIM removes on the worksheet (Lesson 22) and Power Query's Trim removes from every future export, beside UPPERCASE for codes typed in mixed case (Lesson 157). Numbers stored as text are the other usual suspect, and COUNT exposes them because it skips them (Lesson 34). A range left unlocked when a formula was filled down produces errors further down the column too, the slip Lesson 68 makes and fixes with F4. Clean the keys first and most mysterious lookup failures disappear.

Can a lookup use a combined key, such as region plus product, when no single column is unique?

Yes, and The Complete Excel Course with AI Integration gives you three ways, each on a real project. The first builds the combined key itself: CONCAT, the ampersand or TEXTJOIN joins fields into one string with a separator (Lesson 72), and a lookup on that column then finds the row that matches both. FinanceGuard works this way at scale, with a key that packs the period, the department and the category between separators, unpacked again with TEXTSPLIT, and SUMIFS bringing in each table's figure for every key (Lesson 117). The third skips the key: FILTER with the asterisk returns the rows where both conditions hold (Lesson 76), and SUMIFS adds up a figure under both conditions at once (Lesson 37). Analysts need this constantly, because few business tables have one column that identifies a row on its own.

Can a lookup return every matching row instead of only the first?

Yes, with FILTER, the function The Complete Excel Course with AI Integration teaches soon after XLOOKUP for exactly that. XLOOKUP and VLOOKUP return one value, the first match they meet, which is right for a code with one row and wrong for a customer with many orders. Lesson 76 uses FILTER on the employee table to return every row for one location, then every row at one job level, then the rows meeting two conditions at once with the asterisk for AND, and the rows meeting either of two with the plus sign for OR, each result spilling beside the table under its own heading. SORT and SORTBY then order a result by any column, shown or not (Lesson 77). FILTER needs a modern Excel such as Microsoft 365, and it changes how much an analyst can pull from a table with one formula.

How can I see which records found no match between two sources?

By making a missing match say so, and The Complete Excel Course with AI Integration teaches it three ways. XLOOKUP's if-not-found argument returns a message of your choosing wherever a key has no partner (Lesson 69), and Lesson 70 handles lookup errors in VLOOKUP and XLOOKUP formulas with IFERROR, showing NOT MATCHED in place of #N/A. A filter or a count on that message then lists or totals the orphans, a figure worth reporting in its own right. In Power Query, a left outer join keeps every row of the first table and leaves the looked-up columns empty where nothing matched (Lesson 163), and Lesson 168 checks for those blanks after every merge before the table goes anywhere. For an analyst the unmatched rows are often the finding itself: customers missing from the master list, or products the catalogue has not caught up with.

Lookups, merges or relationships: which way of joining tables suits which job?

Each suits a different rhythm of work, and The Complete Excel Course with AI Integration teaches all three. A lookup formula suits a one-off question or a small table: XLOOKUP in a column answers at once and shows its working in the cell (Lesson 69). A Power Query merge suits a join that comes back every period: set once with a left outer join, it reruns on next month's file at a refresh, and the joined columns arrive cleaned (Lesson 163). A data model suits several tables that many reports share: the sales table and its lookups are related one to many in Diagram View, and every PivotTable built on the model reads across them without a lookup column (Lesson 169), the lesson's point being that one relationship replaces a VLOOKUP dragged down thousands of rows. The data model lessons need Excel for Windows. Knowing all three lets you pick the right join instead of the familiar one.

My lookup table repeats some IDs: which row will XLOOKUP return?

The first match it meets, without a warning, which is why The Complete Excel Course with AI Integration teaches you to check keys before joining on them. XLOOKUP and VLOOKUP both stop at the first row whose key matches, so a duplicate in the lookup table silently hides the second record. UNIQUE lists each value of a column once (Lesson 75), and set beside a count of the column's rows it tells you whether the key really is unique. Remove Duplicates deletes repeated rows by the columns you choose, after Conditional Formatting has highlighted them for a look first (Lesson 23), and in Power Query, Remove Duplicates on an ID column does the same inside the query (Lesson 160). In a data model the rule is built in: the lookup side of a one-to-many relationship holds each code once (Lesson 169).

Copilot and Claude can draft an XLOOKUP: what does an analyst still need to know?

Enough to tell a sound lookup from a plausible one, and The Complete Excel Course with AI Integration teaches exactly that. AI tools draft formula columns quickly: in Lesson 95 Copilot and ChatGPT write columns that are read and tested before they go in, and in Lesson 104 Claude repairs a broken column inside Excel. A drafted XLOOKUP still needs your eye on the faults that raise no error: a lookup range left unlocked as the formula fills down, a return range shifted by a column, a key with stray spaces, an if-not-found answer that hides a real gap. The lookup lessons on this page teach each of those by making the mistake and fixing it, and Lesson 99 adds a checklist for any AI result. AI drafts and you sign off, and a join is the formula where signing off matters most.

How long until I can join datasets with confidence, and is there a challenge to prove it?

About 1 hour 14 minutes for everything here, and the core of it in under half of that. In The Complete Excel Course with AI Integration, the worksheet lookups, from VLOOKUP to INDEX and MATCH with IFERROR, take the first stretch of the path, and the challenge in Lesson 78 then hands you an orders sheet and a products sheet to join on your own with XLOOKUP before the solution plays, a fair test of whether the skill has stuck. The PeopleInsight starter and finished workbooks let you check every column you build. The model joins follow on FinanceGuard and SalesFusion, whose dataset and finished workbook come with the course. The course is yours for life, so the lessons wait for the next join that needs them, and completing it earns a Certificate of Completion, a PDF any employer can verify by its link.

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.