The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for business analysts

Two systems, one set of records, and a go-live that waits on proof that they agree: that is where a business analyst's lookups earn their keep. The Complete Excel Course with AI Integration teaches XLOOKUP, VLOOKUP and INDEX and MATCH on an industry-standard HR workbook, and this page picks out the lessons for mapping and reconciliation: lookups and their errors, keys built and split, exception lists with FILTER, then merges and relationships for checks that repeat.

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:

  • Apply a source-to-target mapping table to a whole extract with XLOOKUP, using an exact match and ranges locked with F4, so every legacy code carries its new value.
  • Label every record with no partner in the other system, through XLOOKUP's not-found text or IFERROR round VLOOKUP, and pull the exceptions into a list of their own with FILTER.
  • Read, repair and document the VLOOKUP chains in an inherited reporting workbook: the column number it counts, the exact-match argument and the inserted column that breaks it.
  • Use INDEX and MATCH where a lookup has to look left, and a two-way lookup where the answer sits where a row and a column meet.
  • Build a composite key with CONCAT or TEXTJOIN, and take a packed legacy code apart with LEFT, MID and RIGHT, so records from two systems can find each other.
  • Return every record behind one key with FILTER, ordered by SORT or SORTBY, and list the distinct codes a field holds with UNIQUE as the start of a mapping table.
  • Move a reconciliation that repeats into a Power Query merge with a Left Outer join and a check for blanks, and relate tables in a data model where lookups would otherwise be filled down.

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.

    A source-to-target exercise in miniature: an extract on its own sheet and reference tables for departments and locations beside it, codes resolved by three different formulas, a department code altered so a missing match shows itself, and packed position codes split into their parts.

  • Project 12

    SalesFusion

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

    Reconciliation that repeats without rework: merges on product and region codes that keep every row of the main table, a check for blanks after each one, and finally relationships in a data model in place of lookup formulas, that last step needing Excel for Windows.

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 6 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 67 Lookup functions in Excel

Start at Lesson 67: the PeopleInsight workbook opens there, with the case for lookups over copying between tabs. The one habit it assumes is locking a range with F4, taught in Lesson 10 if it is new to you, and Lesson 1 starts anyone new to Excel. Already at home with VLOOKUP? Go straight to XLOOKUP at Lesson 69. The merges sit inside SalesFusion, so build that project from Lesson 153 before Lesson 163 if you have not.

14 of 186 lessons · 1 h 6 min

08 Advanced Excel functions: lookups, text and arrays 5 of 12 lessons · 21 min The three lookups and the ways they fail, on an HR extract with separate reference sheets: why copying between tabs breaks down, VLOOKUP with an exact match and the column number it counts, F4 to lock the table before filling down, XLOOKUP pointing straight at its return column with its own not-found text and a two-way lookup, IFERROR turning a failed match into NOT MATCHED, and INDEX with MATCH for the lookups VLOOKUP cannot do. Employee rows meet department and location tables here; legacy codes meet a target system's values 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 need shaping before they match: CONCAT, the ampersand and TEXTJOIN join fields with a separator of your choice, and LEFT, RIGHT and MID take a packed code such as DAL-SAL-0001 apart into location, department and number. A legacy identifier holding three facts in one cell becomes fields a target system can match on.
  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 Lists that keep up with the data: UNIQUE for the distinct values a field holds, the first draft of any mapping table, FILTER with the asterisk for AND and the plus sign for OR to pull out every row that meets a rule, SORT and SORTBY for ordered lists that re-sort themselves, then a challenge that fills an order sheet from a product sheet with XLOOKUP and clears the error an @ causes.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 5 min The lookup as a Power Query step: a sales query merged with product and region tables on their codes, using a Left Outer join that keeps every row and adds the matching details beside it, so the mapping runs again on each new extract at a refresh.
  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 1 of 21 lessons · 6 min The fact table finished from its merges and its history, then checked for nulls, because a merge lets a blank in wherever a code found no partner: the habit that turns a mapping into a reconciliation.
  1. 168 Build a sales fact table in Power Query Merge lookups and append history 6 min
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 6 min Relationships instead of lookup formulas: the main table and its product and region lookups loaded into a Power Pivot data model and joined one to many in Diagram View. Power Pivot needs Excel for Windows, the one lesson on this page that does.
  1. 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.

Will a course on XLOOKUP and VLOOKUP cover the data mapping and reconciliation a business analyst does between systems?

Yes, because both are joins on a shared key, and The Complete Excel Course with AI Integration from Coding Liquids teaches them on exactly that kind of work. In a business analyst's hands a join means applying a mapping table to an extract, proving that every record of one system has its partner in the other, and enriching a raw export with the reference data a stakeholder expects to see. The course does it on PeopleInsight, an industry-standard HR workbook designed after talking with people from many different industries: employee rows given their department and location from separate reference sheets with VLOOKUP (Lesson 68), XLOOKUP (Lesson 69) and INDEX and MATCH (Lesson 71), the misses labelled (Lesson 70), keys built and split, and exception lists made with FILTER. SalesFusion then repeats the join as a Power Query merge. The 14 lessons picked out below take 1 hour 6 minutes, and the project files include finished workbooks to check your joins against.

For a mapping workbook that others will maintain after go-live, should I write XLOOKUP or VLOOKUP?

XLOOKUP, wherever everyone who opens the file has a current Excel, and The Complete Excel Course with AI Integration shows why on the same HR workbook. XLOOKUP names its lookup column and its return column separately, so a column inserted into the reference table later does not shift the answer, and it searches left as well as right (Lesson 69). VLOOKUP counts columns by number, and Lesson 68 inserts a column into the lookup table on purpose to show the results turning to zero, then undoes it. XLOOKUP also takes its own not-found text, so the support team that inherits your workbook reads a plain message instead of #N/A. Both formulas in the lessons set an exact match and lock the reference range with F4 before filling down, the two settings a mapping cannot do without. Where a colleague still runs an older Excel without XLOOKUP, VLOOKUP or INDEX and MATCH (Lesson 71) keeps the file working for them.

When I document an as-is reporting process, I meet chains of VLOOKUP: will I understand what each one does and where it can fail?

Yes, and that reading skill is worth as much as writing new lookups, so The Complete Excel Course with AI Integration teaches VLOOKUP properly rather than skipping to its successor. Lesson 68 takes it argument by argument: the value to find, the table to search, the column number to return and FALSE for an exact match. It then breaks it the ways real workbooks break: rows lower down returning errors because the table range was never locked, and a column inserted into the lookup table that quietly changes what comes back. Lesson 70 adds the IFERROR wrapper that inherited files often carry, and INDEX and MATCH (Lesson 71) covers the other formula you will meet in older models, MATCH finding the position and INDEX returning the value there. With those in hand, an as-is document can say exactly where a report depends on column order, often the first fragility a to-be design removes.

Can XLOOKUP apply a source-to-target mapping table across a whole extract during a migration?

Yes: that is a lookup's purest job, and The Complete Excel Course with AI Integration teaches it on two reference sheets. In Lesson 69, each employee's location code is looked up in a location table and comes back as a city, a state, a region and a work arrangement, one XLOOKUP per column, the ranges locked with F4 so the formula fills down the whole extract and copies across without drifting. Lesson 68 does the same for department codes with VLOOKUP, returning the department name and its HR business partner. Swap the location table for your mapping of legacy codes to target values and the formula is unchanged: every row of the extract gains its target value, and any code the mapping does not cover returns the not-found text you chose, which becomes your list of gaps to raise with the data owner. The lessons join HR records across sheets of one workbook; a mapping kept on its own sheet works exactly the same way.

How do I list the records that exist in one system's extract but not in the other's?

Label the misses, then filter them into a list of their own, and The Complete Excel Course with AI Integration teaches both steps. XLOOKUP's not-found argument writes your own text, such as n/a, wherever a key has no partner (Lesson 69), and IFERROR does the same for VLOOKUP, turning a broken match into NOT MATCHED (Lesson 70), where a code changed by one letter shows how little it takes. FILTER then pulls every row that meets a condition into a separate spilled list that updates by itself (Lesson 76), so a condition on that label gives you the exceptions alone, ready for a defect log or a data owner. UNIQUE lists the distinct codes among them (Lesson 75). For a reconciliation repeated every week until go-live, the SalesFusion merge keeps every row of the main table and leaves blanks where nothing matched, and Lesson 168 checks for those blanks after each merge.

Legacy IDs pack site, team and number into one code: can I split them to match the new system's separate fields?

Yes, with LEFT, MID and RIGHT, and The Complete Excel Course with AI Integration teaches them on exactly that kind of code. In Lesson 73, a position code such as DAL-SAL-0001 holds a location, a department and an ID in one cell: LEFT takes the first three characters, RIGHT the last four and MID the three in the middle from a given start, and each result fills down its own column for every employee. Those columns can then be matched against a target system's separate fields with XLOOKUP. The opposite case is covered too: when the target expects one combined key, CONCAT, the ampersand and TEXTJOIN join fields with the separator you choose (Lesson 72), and the lesson's reminder that Excel adds no space by itself saves a mismatch. Excel's newer TEXTSPLIT, used in the FinanceGuard model (Lesson 117), splits a key at its separators in a single formula.

One requirement traces to several test cases: can a lookup bring back all of them, not just the first?

A lookup returns the first match and FILTER returns them all, and The Complete Excel Course with AI Integration teaches both so you pick the right one. XLOOKUP and VLOOKUP stop at the first row whose key matches (Lesson 69), which suits a mapping where each code appears once. For one-to-many links, such as a requirement covered by several test cases or a process step with several open defects, FILTER spills every matching row into the cells below (Lesson 76). The lesson filters by one value, then joins conditions: the asterisk where both must hold, the plus sign where either will do, so the failed tests of one requirement come back from a single formula. SORT orders the result, and SORTBY can order it by a column you never display (Lesson 77). The lessons filter employee records by location, job level and status; a traceability matrix answers to the same formulas.

During testing the mapping sheet shows #N/A for records I can see in the other table: what should I check first?

Three things, in this order, and The Complete Excel Course with AI Integration demonstrates each one. First, whether the range was locked: a lookup filled down with a relative table range slides off the data, and the rows lower down return errors or zeros (Lesson 68 and Lesson 69). Second, whether the keys really match: Lesson 70 changes one department code by a single letter and the match fails, and stray spaces do the same, which TRIM clears (Lesson 22). Third, whether a table reference carries an @, which reads only the current row when the lookup needs the whole column, the very error the challenge in Lesson 78 has you clear. Once the cause is fixed, IFERROR or XLOOKUP's own not-found text turns the rows that truly have no partner into a readable message, so a tester's report separates a broken formula from a genuine data gap.

When the reconciliation has to run every week until go-live, should it stay in formulas?

Move it into Power Query once it repeats, and The Complete Excel Course with AI Integration teaches the move in SalesFusion. A merge is Power Query's version of VLOOKUP: Lesson 163 merges the sales query with product and region tables on their codes, with a Left Outer join that keeps every row of the main table and brings the matching details in beside it. Because the merge is a saved step, next week's extract is matched again at a refresh, with no formula filled down. Lesson 168 builds the finished table from those merges and checks for blanks afterwards, since a merge lets a null in wherever a code had no partner. Lesson 164, outside this page, reads through the other join kinds on the list, inner and full outer among them. For a one-off check, formulas stay quicker to write; for a check that must be repeated identically, the query is the better record of what was done.

Do relationships in a data model replace lookups altogether?

For reporting across related tables they do, and The Complete Excel Course with AI Integration shows the switch in Lesson 169. Three tables, the main sales table and its product and region lookups, are loaded into a Power Pivot data model and related in Diagram View by dragging each code onto its partner: two one-to-many relationships, the 1 on the lookup side and the many on the sales side. A PivotTable built on the model then reads all three at once, so no lookup formula is dragged down thousands of rows. Business analysts will recognise the picture, much like an entity relationship diagram of the data, drawn inside Excel. Lookups do not disappear: a mapping workbook, a reconciliation and a quick check on an extract still call for XLOOKUP. Power Pivot needs Excel for Windows, as the course's requirements say plainly, while every lookup formula on this page runs on a Mac too.

Can a lookup read a value from a matrix, such as a service level by priority and severity?

Yes, with a two-way lookup, and The Complete Excel Course with AI Integration teaches it in Lesson 69, where XLOOKUP finds the value at the meeting point of a row and a column. A business analyst meets that shape constantly: a service-level grid with priorities down the side and severities across the top, a rate card, a matrix of responsibilities. INDEX and MATCH offer a second route (Lesson 71): INDEX returns the value at a given row and column of a table, and MATCH works out a position, with 0 for an exact match, so MATCH can supply the row and the column that INDEX needs. The lesson's own data is a location table, and the method does not depend on what the grid holds. Lock the ranges with F4 before copying, a habit the lookup lessons repeat, and one formula serves a whole column of tickets or requests.

Will my lookups work for stakeholders on an older Excel?

VLOOKUP and INDEX and MATCH work in practically any Excel, while XLOOKUP and the dynamic arrays need a current one, and The Complete Excel Course with AI Integration flags which is which. The course overview says at the start that XLOOKUP and dynamic arrays such as FILTER and UNIQUE need a modern Excel, Microsoft 365 for example (Lesson 2), and the lessons point it out as each arrives. So a mapping workbook for a stakeholder on an older version can be built on VLOOKUP (Lesson 68) or INDEX and MATCH (Lesson 71), both taught on the same data as XLOOKUP, with IFERROR in place of XLOOKUP's not-found text (Lesson 70). Ask before you build: which Excel the people who open the file use is a requirement like any other, and it decides which of the three formulas the workbook should carry.

Can ChatGPT write the lookups from my data mapping specification, and can I trust what it writes?

It can draft them, and The Complete Excel Course with AI Integration makes sure you can judge the draft. The AI lessons show the working pattern: Copilot and ChatGPT write formula columns and each one is read before it is kept, with one row checked by hand (Lesson 95); ChatGPT plans an analysis from the file's own columns before anything is built (Lesson 100); Claude in Excel repairs a broken formula column, asking your permission for each change (Lesson 104); and a QA checklist confirms the data selected, the time frame and the wiring of every chart (Lesson 99). For a mapping, the checks that matter are the ones the lookup lessons drill: is the match exact, are the ranges locked, does the formula return the right column, and what does it show for a missing key. A business analyst who knows XLOOKUP spots a wrong draft in seconds, before it reaches a test cycle.

How soon can I reconcile two extracts on my own, and what will I have built?

After about 1 hour 6 minutes of lessons, and The Complete Excel Course with AI Integration has you doing it within the first few. By Lesson 70 you can join an extract to its reference tables with VLOOKUP and XLOOKUP and label every miss, which is a reconciliation in itself. The rest of the path adds INDEX and MATCH, keys built and split, FILTER for exception lists and the Power Query merge for checks that repeat. You finish with the completed PeopleInsight workbook beside the finished version to compare, a solved challenge that fills an order sheet from a product sheet with XLOOKUP (Lesson 78), and the SalesFusion merges. Lifetime access keeps the lessons open for the next migration, and the Certificate of Completion, with a verification link an employer can check, stands on industry-standard projects you can open in an interview.

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.