The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for auditors
So much of audit testing is agreeing one list to another: payments to the approved supplier file, payroll to the HR master, a schedule to the ledger. The Complete Excel Course with AI Integration builds those matches on PeopleInsight, an industry-standard project, and this page gathers what an auditor needs from it and around it: unique keys first, VLOOKUP and XLOOKUP on exact matches, unmatched items made visible, INDEX and MATCH, keys built from two fields, FILTER and a Power Query merge.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Test a master file's key for repeats before relying on it, with Duplicate Values highlighting and Remove Duplicates, so a lookup never answers from the wrong one of two records.
- Agree each item on a client listing to a master file with VLOOKUP on an exact match, its table range locked so every row below returns the right answer.
- Use XLOOKUP to return a field from either side of the key, with a not-found message of your own, so an inserted column never changes a result.
- Turn every item with no partner into a readable exception through IFERROR or XLOOKUP's own not-found argument, then filter for the list to follow up.
- Write INDEX and MATCH for a lookup in any direction that still works when a client opens the file in an older Excel.
- Build a match key from two fields with CONCAT, TEXTJOIN or the ampersand, and cut a packed reference into its parts with LEFT, RIGHT and MID.
- List the distinct values a column holds with UNIQUE, and pull every row that meets one condition or two with FILTER, where a lookup stops at the first match.
- Match a whole client export to a lookup table in one step with a Power Query merge and a left outer join, with codes that find no partner left blank to catch.
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.
Built on HR data, it rehearses the payroll tests: employees matched to department and location tables by code, a code broken on purpose to show an unmatched row, and an employment status of Active, On Leave or Terminated on every record.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
For the client who sends the same export every month: a merge on the product and region codes, run as a step of a query, keeps every sales row and leaves blanks wherever a code has no partner, so the exceptions rebuild themselves at each refresh.
-
Project 02
Dunder Michael Paper Company employee database
Built as an employee list, it teaches the step before any lookup: repeated IDs highlighted, then cleared with a say in which record stays, because a master file holding two rows for one key answers a lookup with whichever comes first.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 12 of them, 56 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 23 Remove duplicates in Excel
Begin at Lesson 23: before any list is agreed to a master file, that master must hold one row per key, and this short lesson shows how to prove it. The lookups follow from Lesson 67, on a workbook whose employee data and lookup tables sit on separate sheets. Unsure about locking a range with F4? Watch Lesson 10 first. New to Excel? Start at Lesson 1. Comfortable with VLOOKUP already? Skip ahead to Lesson 69, where XLOOKUP adds a not-found answer of its own.
12 of 186 lessons · 56 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) The check before any lookup: repeated IDs in an employee list coloured by Duplicate Values, then removed from one column or as whole rows, or picked out with the table's filter so you decide which record stays. A master file must hold one row per key, or a lookup quietly answers with the first of two.
- 23 Start here Remove duplicates in Excel Find and delete duplicate rows in an employee list 6 min
08 Advanced Excel functions: lookups, text and arrays Agreeing one list to another, five ways: lookups set against copying between sheets, VLOOKUP told to match exactly and locked before it is filled down, a column inserted to show how its answers shift, XLOOKUP bringing four location fields onto every employee with an n/a message for a missing code, IFERROR writing NOT MATCHED when a code is broken on purpose, and INDEX with MATCH for a search in either direction. Employee tables stand in for the supplier file or payroll master you will test against.
- 67 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
08 Advanced Excel functions: lookups, text and arrays Keys built and taken apart: CONCAT, the ampersand and TEXTJOIN join two fields into one value to match on, such as a supplier and an invoice number, and LEFT, RIGHT and MID cut a packed position code into the separate parts a test needs.
- 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 Beyond the first match: UNIQUE spills every distinct value a column holds, a quick list of the payees or codes to test, and FILTER returns all the rows meeting a condition, the asterisk standing for AND and the plus sign for OR, where a lookup stops at its first hit. UNIQUE and FILTER spill their results, which takes a current Excel such as Microsoft 365.
- 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 A matching challenge done unaided first: each order matched to a product sheet by its ID, two fields returned with XLOOKUP, a line total worked from them, an order ID rebuilt by joining text to it, and the stray @ that limits a lookup to one row found and removed.
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
15 SalesFusion: advanced data tools and a Power Query modelling system The lookup for exports that come back every period: a Power Query merge joins a sales table to product and region tables on their codes with a left outer join, keeping every sales row and bringing details in only where a code matches, so whatever is missing from the lookup tables arrives blank.
- 163 Merge queries in Power Query Look up product and region names with a left join 5 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.
Where can auditors learn XLOOKUP and VLOOKUP for matching one listing against another?
Here, in The Complete Excel Course with AI Integration from Coding Liquids, where both are taught on PeopleInsight, an industry-standard project built after conversations with people from many different industries, and this page arranges them around the audit task of agreeing one list to another. The order follows the way an auditor meets them: first proving the master file holds each key once (Lesson 23), then VLOOKUP with FALSE and a locked range, the version most client files contain (Lesson 68), then XLOOKUP with its own message for a missing item and a lookup across rows and columns at once (Lesson 69). Unmatched codes become NOT MATCHED through IFERROR, INDEX and MATCH serves older files, and a Power Query merge handles exports that recur. That is 12 lessons and 56 minutes of lessons, with every match built by you on the course's files before it ever touches a client's.
When should an auditor use XLOOKUP instead of VLOOKUP?
For any new test, and The Complete Excel Course with AI Integration shows the three reasons in its own lessons. First, a stable answer: VLOOKUP counts columns, so in Lesson 68 a column inserted into the lookup table changes every result at once, while XLOOKUP points straight at the column to return and ignores the insertion (Lesson 69). Second, direction: XLOOKUP reads to the left or the right of the key, where VLOOKUP reads only rightwards from its first column. Third, a missing item announced in plain words, through XLOOKUP's own if-not-found argument, where VLOOKUP needs IFERROR around it (Lesson 70). Keep VLOOKUP for reading and re-performing a client's existing formulas, and for a file that must open in an Excel without XLOOKUP, reach for INDEX and MATCH (Lesson 71). XLOOKUP itself asks for a current Excel, which the course flags the moment it comes up.
Why is VLOOKUP's match type an audit risk, and how does the course handle it?
Because VLOOKUP, given no fourth argument, does not insist on an exact match, and a test built that way can pass an item it should fail. Picture a payment to a supplier missing from the approved list: an approximate lookup into a sorted list may hand back the supplier just above it, so the exception never appears. The Complete Excel Course with AI Integration closes the gap from the first formula. Lesson 68 ends every VLOOKUP with FALSE, Lesson 69 gives XLOOKUP a 0 for an exact match alongside its not-found message, and INDEX with MATCH takes 0 as well (Lesson 71). The habit carries straight into reviewing a client's file: read the last argument of each lookup before trusting any reconciliation built on it, and treat a blank or TRUE there as a finding to raise rather than a matter of style.
Can a lookup show which payments went to suppliers missing from the approved list?
Yes, and it is one of the clearest tests a lookup gives you. Look up each payee from the payments listing in the approved supplier file with XLOOKUP and a not-found message (Lesson 69), or with VLOOKUP wrapped in IFERROR (Lesson 70), and every payment to a supplier the file does not hold comes back marked, ready to filter. The Complete Excel Course with AI Integration rehearses exactly that mechanism: in Lesson 70 a department code is altered on purpose, the lookup stops finding it, and NOT MATCHED replaces the raw error, a message the lesson notes will tell a reviewer far more than #N/A ever does. PeopleInsight pairs employees with their department and location records; payees set against a supplier master behave identically. Turn the test round as well, and suppliers on the approved list who were never paid show up as candidates to remove.
Can XLOOKUP check a payroll listing against the HR master for leavers or unknown names?
Yes: a payroll test is a lookup in both directions, and The Complete Excel Course with AI Integration teaches it on employee data. Look up each employee ID from the payroll listing in the HR master, and one that is not found is a payee with no employee record, the classic ghost to investigate. Return the master's employment status beside each payee with the same XLOOKUP (Lesson 69), and anyone marked Terminated who is still being paid stands out at once. The PeopleInsight master carries exactly such a status field, and Lesson 75 lists its values with UNIQUE: Active, On Leave and Terminated. Because XLOOKUP returns a field from the left or the right of the key, the master's layout never gets in the way, and INDEX and MATCH (Lesson 71) does the same in an older file. The lessons enrich employee records; the payroll test is your own use of those formulas.
Can XLOOKUP match a payment on its supplier and invoice number together?
Yes, by matching on a key built from both fields, which The Complete Excel Course with AI Integration teaches in Lesson 72. CONCAT, the ampersand or TEXTJOIN join two cells into one value, and the lesson's own point applies: Excel adds no separator by itself, so put one in quotes, or supplier 1 with invoice 23 collides with supplier 12 with invoice 3. Build the same key on both listings, XLOOKUP the key from one in the other, and only a payment that agrees on both fields finds its partner. The key serves the duplicate test too: count each key with COUNTIF (Lesson 36), and any count above one repeats a supplier and invoice pair. Where every matching row is wanted rather than the first, FILTER with both conditions joined by the asterisk returns them all (Lesson 76). No lesson writes one XLOOKUP across two columns; the joined key does that work and shows its logic in a column a reviewer can read.
What happens to a lookup when the master file holds the same key twice?
It returns the first match and says nothing about the second, which is why The Complete Excel Course with AI Integration teaches the duplicate check before any master is relied on. VLOOKUP, XLOOKUP and MATCH each stop at the first row that matches, so if a supplier code appears twice with different bank details, the test reads one record and never sees the other. Lesson 23 gives you two ways to find out: Duplicate Values under Conditional Formatting colours every repeated ID, and the table's filter sets the repeats side by side before anything is decided, the lesson's point being that an ID should work like a passport number, one per person. For an auditor the duplicate is often the finding in its own right: two vendor records for one supplier, or one employee ID shared by two names. COUNTIF on the key column (Lesson 36) gives the same answer as a number on every row.
Will I be able to read and repair the lookups in a client's workbook?
Yes, because The Complete Excel Course with AI Integration makes each lookup failure happen on purpose, so you recognise it in someone else's file. In Lesson 68 a VLOOKUP filled down without its table locked returns errors further down the column until F4 fixes the range, and a column inserted into the lookup table shifts the answer because the formula counts columns by number. Lesson 70 adds one letter to a code and the match fails. Lesson 78 finds an @ in a table reference that confines a lookup to the current row. And Lesson 69 notes that errors or zeros lower down usually mean an unlocked range. Knowing those, you can review a client's lookup column quickly: exact match, locked range, column number, and any IFERROR that turns failures into blanks. Where a repair is needed, XLOOKUP or INDEX and MATCH rebuilds it in a form that survives the next edit.
Can lookups carry out a three-way match of orders, receipts and invoices?
Yes: a three-way match is two lookups and a comparison, and The Complete Excel Course with AI Integration teaches all three pieces. From each invoice line, XLOOKUP brings in the ordered quantity and amount from the purchase order listing by order number, and a second XLOOKUP brings in the quantity received from the goods received listing (Lesson 69). An IF with AND then marks the line Matched only when invoice, order and receipt agree, and Investigate otherwise (Lesson 33), while the not-found message flags an invoice with no order behind it at all. The challenge in Lesson 78 is the same mechanism in miniature: each order is matched to a product sheet by its ID, two fields come back, and a total is worked out from them. Quantities may differ legitimately within a tolerance; keep the tolerance in a locked cell for the IF to compare against, so the rule is visible to anyone reviewing the test.
Will I get files to practise lookups on before I use them on client data?
Yes: every lookup on this page is practised on the course's own files first, so a client's data is never your training ground. The Complete Excel Course with AI Integration gives you the PeopleInsight starter workbook, with employee, department, location, compensation and survey sheets laid out for matching, and the finished workbook to compare against when your results disagree. Lesson 78 adds a challenge with a problem file and a solution file: you pause, write the XLOOKUPs, the total and the joined order ID yourself, then check. The duplicate lesson (Lesson 23) and the merge lesson (Lesson 163) bring data of their own. Practising this way means each failure, the unlocked range, the inserted column, the broken code, happens to you once on a file that does not matter, and never for the first time on a live engagement.
Can the same matching test be rerun on next quarter's export without rebuilding it?
Yes, and The Complete Excel Course with AI Integration offers two routes to it. Keep the test in formulas and hold the listing as an Excel table: a formula written in one row of a table fills down by itself and stays consistent as rows arrive (Lesson 30), so pasting next quarter's listing in place reruns every lookup. Or move the match into Power Query: in Lesson 163 a sales table is merged with product and region tables on their codes using a left outer join, which keeps every row of the listing and fills details only where a code matches, so unmatched items arrive blank. Point the query at the new export and a refresh brings the whole match up to date. Lesson 168 adds the closing habit after every merge, a look for blanks before anything is relied on. Formulas suit a test you keep adjusting; a merge suits one you rerun unchanged.
Will AI tools match two listings for me, or do I still need lookups?
You still need them, because audit evidence has to be re-performed, and a formula can be while a chat reply cannot. The Complete Excel Course with AI Integration puts AI to work at speed: Copilot and ChatGPT draft formula columns that you verify (Lesson 95), Claude works inside the workbook and changes one thing at a time with your permission (Lesson 104), and a short QA checklist confirms the right data was selected before any result is trusted (Lesson 99). For matching, the safest use is to let AI write the lookup and then check it as you would a junior's work: exact match set, range locked, not-found message in place. What lands in the workpaper is a visible XLOOKUP that a reviewer can re-perform on the same two listings and get the same exceptions, which no summary pasted from a chat window provides. The lookup lessons are what make that check quick.
I find VLOOKUP confusing: can a beginner follow these lessons?
Yes, and plenty of people who never warmed to VLOOKUP find XLOOKUP the easier of the two, which The Complete Excel Course with AI Integration teaches straight after it. The lookup lessons are short and each adds one idea: why a lookup beats copying between sheets (Lesson 67), then VLOOKUP's four arguments filled in on a real table (Lesson 68), then XLOOKUP, which asks only what to find, where to look and what to bring back (Lesson 69). If locking a range with F4 is a mystery, Lesson 10 explains it briefly, and it matters, since an unlocked range is what usually sits behind errors lower down a lookup column. With the instructor support plan, a lookup that refuses to work can be sent to the instructor through the inbox under the lesson and answered in writing, and the Ask AI button in each lesson replies at once.
How long until lookups are paying off on a live engagement?
About 56 minutes for every lesson here, and the first usable test arrives far sooner. The Complete Excel Course with AI Integration has VLOOKUP on an exact match working by Lesson 68 and XLOOKUP with a not-found message by Lesson 69: enough to agree a payments listing to a supplier file the next morning. Unmatched items as readable exceptions, INDEX and MATCH for older files, and keys built from two fields take a few short lessons more, and the challenge at Lesson 78 confirms you can do it unaided. Every lesson on this page runs on Windows or Mac, since no Power Pivot or Power Automate lesson is among them, though XLOOKUP, UNIQUE and FILTER need a current Excel such as Microsoft 365. The lessons stay open for life, ready for the year-end that needs a merge you have not built since, and finishing the course brings a Certificate of Completion any 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.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
More skills for this job
- Excel formulas for auditors
- PivotTables for auditors
- Excel charts for auditors
- Dashboards for auditors
- Conditional formatting for auditors
- Data cleaning for auditors
- Data validation for auditors
- Excel tables and filters for auditors
- Text functions for auditors
- Date functions for auditors
- Dynamic arrays for auditors
- Power Query for auditors
- Power Pivot and DAX for auditors
- Macros and VBA for auditors
- Power Automate for auditors
- Copilot for auditors
- ChatGPT for auditors
- Claude in Excel for auditors