The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for accountants
Month end means moving figures between sheets: account names onto a trial balance, rates onto invoices, statement lines matched against the ledger. The Complete Excel Course with AI Integration teaches the lookups that do it on PeopleInsight, an industry-standard project, and this page picks out the lessons an accountant needs: VLOOKUP and XLOOKUP on exact matches, messages for codes with no match, INDEX and MATCH, codes split and joined, and lookups by a key.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring account names, categories or rates onto a report with VLOOKUP on an exact match, its table range locked so every row below stays right.
- Use XLOOKUP to search left or right with a not-found message of your own, so an inserted column never shifts a figure.
- Find the value where a row and a column meet with a two-way lookup, such as one account's figure for one month.
- Show an unmatched code as NOT MATCHED with IFERROR, or through XLOOKUP's own argument, so a missing mapping is seen instead of buried in #N/A.
- Write INDEX and MATCH for lookups in any direction, in workbooks opened by colleagues on older versions of Excel.
- Split an account string into its segments with LEFT, RIGHT and MID, and join fields into a lookup key with CONCAT, TEXTJOIN or the ampersand.
- List every code a ledger holds with UNIQUE, and pull every line for one code, or for two conditions at once, with FILTER.
- Read budget and actual onto each line of a model by a composite key with SUMIFS, once TEXTSPLIT has broken that key into its parts.
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.
Lookup tables of the kind a chart of accounts or a cost centre list becomes: codes on one sheet, names and attributes on others, brought together by VLOOKUP, XLOOKUP and INDEX and MATCH, and a code broken on purpose to show what an unmatched row looks like.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
A lookup by composite key at the heart of a variance model: each key carries year and month, department and category, SUMIFS reads budget and actual by it, and TEXTSPLIT breaks it back into the columns a manager filters on.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
The lookup done once for a whole table: a Power Query merge brings product and region names in beside their codes with a left outer join, and any code without a partner comes back blank for you to catch.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 11 of them, 52 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 can write SUM and copy a formula: the lookup run begins there, on a workbook of separate data and lookup sheets. If a fill-down result has ever surprised you, take Lesson 10 on absolute references first, since every lookup here locks its table; new to Excel altogether, begin at Lesson 1. Already fluent in VLOOKUP? Move straight to Lesson 69 for XLOOKUP and on to the lookups by key.
11 of 186 lessons · 52 min
08 Advanced Excel functions: lookups, text and arrays The lookup core on PeopleInsight: why lookups beat copying between tabs, VLOOKUP on an exact match with FALSE and a table range locked as an absolute reference, what an inserted column does to it, XLOOKUP with its own not-found text and a two-way lookup, IFERROR turning a broken code into NOT MATCHED, and INDEX and MATCH for lookups in any direction. The tables hold employees and departments; a chart of accounts and a cost centre list behave the same way.
- 67 Start here 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 made and taken apart: CONCAT, the ampersand and TEXTJOIN join fields into one string, and LEFT, RIGHT and MID cut a packed code such as DAL-SAL-0001 into its parts, the way an account string splits into entity, account and cost centre.
- 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 Every value and every match: UNIQUE spills the distinct codes a column holds, a list to check against a mapping table, and FILTER returns all the rows that meet a condition, with AND and OR between conditions, where a lookup stops at the first.
- 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 lookup challenge solved before the answer is shown: XLOOKUP matches each order to a product sheet by its ID and brings back two of its fields, a line total follows from them, and an order ID is reformatted by joining text to it.
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) A lookup by key in a finance model: FinanceGuard's keys join year and month, department and category, one sorted list of them spills from both tables, TEXTSPLIT breaks each key into its parts, and SUMIFS reads budget and actual against it with a mixed reference.
- 117 Budget vs actual model in Excel SORT, UNIQUE, VSTACK, LET, TEXTSPLIT, SUMIFS 8 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.
XLOOKUP or VLOOKUP: which should an accountant learn, and where?
Both, with XLOOKUP as the everyday choice, and The Complete Excel Course with AI Integration from Coding Liquids teaches them side by side on PeopleInsight, an industry-standard project designed after talking with people from many different industries. VLOOKUP comes first (Lesson 68), because the workbooks you inherit are full of it, and the lesson shows exactly how it fails: an unlocked table range, a column inserted into the lookup table. XLOOKUP follows (Lesson 69) with a return column of its own, a not-found message and a two-way lookup, then INDEX and MATCH for the cases neither covers. This page gathers 11 lessons on lookups and the keys they depend on, 52 minutes in all, and ties each to a piece of an accountant's month: names onto codes, unmatched items, segment codes, budget against actual.
Our old workbooks are full of VLOOKUP: will the course help me maintain them?
Yes: The Complete Excel Course with AI Integration teaches VLOOKUP properly before it moves on, so an inherited file holds no surprises. In Lesson 68 you build it from its four arguments, the lookup value, the table, the column number and FALSE for an exact match, then meet the two faults behind most broken VLOOKUPs. A table range left unlocked returns errors lower down the column until it is made absolute, and a column inserted into the lookup table quietly changes what comes back, because VLOOKUP counts columns by number. Knowing both, you can audit an old schedule quickly: check the FALSE, check the dollar signs, check that the column number still points where it should. Lesson 70 then wraps those formulas in IFERROR, so a mismatch reads NOT MATCHED instead of a bare #N/A that tells a reviewer nothing.
Why did my VLOOKUP start returning the wrong figures after someone inserted a column?
Because VLOOKUP finds its answer by counting columns, and The Complete Excel Course with AI Integration shows the moment it goes wrong. In Lesson 68 a column is inserted into the lookup table on purpose, the results change at once, and the lesson undoes it to make the point: the formula still asks for the same column number, but that column now holds something else. In an accounting file that means a rate, a balance or an account name pulled from the wrong place, with nothing to warn you. XLOOKUP removes the risk by pointing straight at the column to return (Lesson 69), so an inserted column leaves it untouched, and INDEX with MATCH does the same in any version of Excel (Lesson 71). For a schedule you depend on, the fix is to rebuild its lookups that way, which these lessons teach in full.
Why does an exact match matter so much in reconciliations?
Because an approximate match returns a confident wrong answer, and The Complete Excel Course with AI Integration sets the exact match from the start. VLOOKUP's last argument is FALSE in Lesson 68, XLOOKUP is told to match exactly in Lesson 69, and MATCH takes 0 in Lesson 71: three spellings of one rule, find this code or nothing. Left to an approximate match, a lookup for an invoice missing from the list can return a neighbouring line, and the reconciliation balances on paper while being wrong. With the exact match set, a missing item becomes visible, which is the whole purpose of matching a statement against a ledger. Lesson 70 then shows how one stray letter in a code breaks a match, and why a readable message serves anyone reviewing the file far better than a raw #N/A.
Can a lookup show me which ledger codes are missing from my mapping table?
Yes, and The Complete Excel Course with AI Integration teaches every piece of that check. Lesson 75 spills the distinct values a column holds with UNIQUE, so the codes your ledger actually uses sit in one list. A lookup against the mapping then brings back each code's report line, and a code with no partner announces itself: as NOT MATCHED through IFERROR in Lesson 70, or as the not-found text you give XLOOKUP in Lesson 69. The lesson breaks a department code deliberately to show the effect, which is what happens when an account is opened this month and nobody has mapped it yet. Filter for the message and you hold the list of codes to add before anything is reported. The lessons check employees against department and location tables; a chart of accounts mapping responds to the same formulas.
Can XLOOKUP look to the left of the code, or fill several columns from one table?
Both, and The Complete Excel Course with AI Integration shows each on the location table of PeopleInsight. XLOOKUP takes a lookup column and a return column separately, so the answer can sit to the left or the right of the code (Lesson 69), which VLOOKUP, reading rightwards from its first column only, cannot do. In the same lesson one locked XLOOKUP brings in city, then state, then region and work arrangement, the formula copied across with its return range moved a column each time and its lookup value reset to stay on the code. For an accountant that is a supplier code bringing in name, payment terms and nominal code from the supplier list, all along one row. INDEX and MATCH (Lesson 71) reaches leftwards too, in any version of Excel, so an inherited file never forces you to rearrange its table.
Does the course teach a two-way lookup, such as one account's figure for one month?
Yes: the two-way lookup is part of the XLOOKUP lesson of The Complete Excel Course with AI Integration (Lesson 69), alongside the exact match and the not-found message. A two-way lookup finds the value where a row and a column meet, which is the shape of most finance grids: accounts down the side and months across the top, cost centres against periods, a rate table by band and year. Instead of counting columns or adding a helper, one formula takes the account and the month and returns the figure at their crossing, and it keeps working when a column is added. INDEX and MATCH (Lesson 71) offers the same reach in older workbooks, since INDEX takes a row and a column position, as the lesson shows, and MATCH finds a position for you. For a grid that needs reshaping instead, Power Query's Unpivot (Lesson 173) turns month columns into rows.
Can I look up by two criteria, such as account and cost centre together?
Yes, and The Complete Excel Course with AI Integration gives you three ways to do it, each taught in a lesson of its own. A key: CONCAT, TEXTJOIN or the ampersand join two fields into one string (Lesson 72), and the match runs on that joined key; FinanceGuard works this way, its key holding year and month, department and category, with SUMIFS reading budget and actual against it (Lesson 117). Every match: FILTER with two conditions multiplied together returns all the rows where both are true (Lesson 76). A total: SUMIFS takes as many conditions as you need (Lesson 37) and returns a single figure when only one row qualifies. The lessons build keys from employee and budget data, and a single XLOOKUP testing two columns at once is not set as an exercise; the key method covers the same ground and is easier to audit.
Our account codes pack entity, account and cost centre into one string: can formulas split them?
Yes: The Complete Excel Course with AI Integration teaches exactly that on a packed position code, DAL-SAL-0001, in Lesson 73. LEFT takes the first characters, RIGHT the last ones and MID a stretch from the middle once you give it a start position and a length, so one string becomes three columns: location, department and ID. The lesson's point is that these suit any code holding several facts in one cell, which describes most account strings, where an entity, a natural account and a cost centre sit side by side. Split out, each segment can be looked up on its own table: the cost centre against its owner, the account against its report line. FinanceGuard's TEXTSPLIT does the same job by a delimiter, breaking its keys at each pipe (Lesson 117), the better tool when segments vary in length.
Is INDEX and MATCH still worth learning when I have XLOOKUP?
Yes, for two reasons an accountant meets every month, and The Complete Excel Course with AI Integration teaches it right after XLOOKUP. First, files travel: a schedule sent to a client or an auditor may be opened in a version of Excel without XLOOKUP, and INDEX and MATCH works in every one. Second, inherited models are full of it, and reading a formula is the first step to trusting it. Lesson 71 builds it in pieces: INDEX returns the value at a row and column position, MATCH with 0 finds the position of an exact code, and together they look in any direction without counting columns. The lesson then names the tables and uses the current row's code, so the formula reads almost like a sentence. For new work XLOOKUP is simpler; knowing both means no lookup in any workbook is a mystery to you.
Will lookups help me match a supplier statement against the ledger?
Yes: matching one list against another is what a lookup does, and The Complete Excel Course with AI Integration has you do it on its own files until it is routine. In the challenge of Lesson 78 each order on one sheet is matched to a product sheet by its ID, and XLOOKUP brings back two of its fields so a line total can be worked out; a statement against a ledger is the same task, with invoice numbers in place of product IDs. With the exact match set and a not-found message (Lesson 69), every statement line either finds its ledger partner or says plainly that it has none, and filtering for that message leaves the items to chase. For lists that arrive every month, Power Query's merge with a left outer join (Lesson 163) does the same for whole tables. Matching on partial references is not taught; for exact invoice numbers the method is complete.
When should I use a Power Query merge instead of XLOOKUP?
When the same mapping has to run on every new export, and The Complete Excel Course with AI Integration teaches both so the choice is yours. XLOOKUP lives in the sheet: ideal for a schedule you build once, a check you run today, a report line that must show its working cell by cell (Lesson 69). A merge lives in a query: in Lesson 163 the SalesFusion sales table takes product and region names from their code tables with a left outer join, every row in one step, and the merge runs again on next month's file at a refresh. A code the mapping lacks comes back blank, ready to catch, just as an unmatched XLOOKUP shows its not-found text. A rule of thumb: formulas for a workbook you maintain by hand, a merge for an export that returns every period. Neither needs Power Pivot, so both run in Excel for Windows or Mac.
I have never got VLOOKUP to work: how long until I can rely on lookups at work?
About 52 minutes of lessons, and The Complete Excel Course with AI Integration is built for exactly your starting point. Lesson 67 begins with the problem rather than the syntax: related facts sit on different sheets, and copying between tabs is slow and invites mistakes. Lesson 68 then builds VLOOKUP one argument at a time and walks through the errors that defeat most first attempts, the unlocked range that breaks every row below the first and the inserted column that shifts the answer, so you learn why it failed before, not only how it works now. XLOOKUP, IFERROR and INDEX and MATCH follow in short lessons, and the challenge at Lesson 78 asks you to write the lookups yourself before seeing the solution. Every lesson here runs on Windows or Mac; XLOOKUP needs a current Excel, and the course says so when it appears.
Can I trust a lookup that Copilot or Claude drafts for my accounts?
Once you have checked it, yes, and The Complete Excel Course with AI Integration makes sure you can tell a good draft from a bad one. Lesson 95 has Copilot propose formula columns and asks you to read each formula's logic before inserting it, checking one row by hand, and Lesson 104 has Claude, working inside Excel, calculate a column and repair an error, with your permission given one change at a time. Lookups are where that checking matters most: a draft with an unlocked table range or an approximate match produces figures that look entirely plausible, and only someone who knows what FALSE, an absolute reference and a not-found argument do will see the fault. Learn the lookups on this page first and AI becomes a quick way to write them; Lesson 99 adds the short checklist to run before any AI figure reaches a report.
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 accountants
- PivotTables for accountants
- Charts for accountants
- Dashboards for accountants
- Conditional formatting for accountants
- Data cleaning for accountants
- Data validation for accountants
- Excel tables for accountants
- Text functions for accountants
- Date functions for accountants
- Dynamic arrays for accountants
- Power Query for accountants
- Power Pivot and DAX for accountants
- Macros and VBA for accountants
- Power Automate for accountants
- Copilot for accountants
- ChatGPT for accountants
- Claude in Excel for accountants