The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for treasury analysts
For treasury analysts whose sheets lean on reference tables: a bank and an entity for each account, a rate for each code, a limit for each counterparty. The Complete Excel Course with AI Integration teaches the lookups that fetch them on industry-standard projects, and the lessons chosen here run from clean keys through XLOOKUP and VLOOKUP, then INDEX with MATCH, to readable messages for unknown codes, lists that spill, lookups on two criteria 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:
- Fetch each account's bank, entity and limit from one reference table with XLOOKUP, keeping the table locked as the formula fills down.
- Repair inherited VLOOKUP templates, knowing why an inserted column throws their results and why FALSE matters for an exact match.
- Read a rate out of a grid of dates and codes with a two-way lookup, in XLOOKUP or in INDEX and MATCH.
- Show a clear message instead of an error when a statement carries an account code missing from the mapping table, with XLOOKUP's not-found answer or IFERROR.
- Clean the keys before matching, trimming stray spaces from account codes, and cut a bank's code out of a longer reference with LEFT, RIGHT and MID.
- List every deposit with one bank in maturity order with FILTER, SORT and SORTBY, and spill the distinct counterparties with UNIQUE.
- Fetch a figure by two keys at once, account and date, with SUMIFS against a combined key.
- Map whole statement files to account details through a Power Query merge that holds at every refresh.
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 for HR data, it is where every lookup on this page is written: department and location details fetched by ID, errors given readable messages, codes split apart and distinct lists spilled, the same moves that fetch a bank, an entity or a rate by account number.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
A budget variance analyser in the course, it shows the lookup that adds rather than fetches: SUMIFS against a key that packs period, department and category together, the shape a balance takes when it is fetched by account and date.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built on sales files, it carries the lookup into Power Query, where a merge maps codes to names for every row of every file the query reads.
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 8 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 SUMIF and locked references are already second nature: the PeopleInsight workbook opens there and VLOOKUP follows at once. Do your account codes arrive with stray spaces? Lesson 42 comes first on this path for that reason. If a reference still slips when a formula is filled down, take Lesson 10 before anything here. Already at home with XLOOKUP? Jump to Lesson 75 for lists that spill, or to Lesson 163 to map whole statement files in Power Query. Starting Excel from nothing? The course opens at Lesson 1.
14 of 186 lessons · 1 h 8 min
05 Text functions and data validation (enhancing data quality) TRIM, UPPER, LOWER and PROPER clean stray spaces and untidy capitals out of text, and the clean text is pasted back as values. A trailing space is a common reason an account code fails to match, and this lesson removes it; capitals never stop a lookup, though tidy names make a cleaner report.
- 42 TRIM, UPPER, LOWER and PROPER in Excel Clean messy text and fix capitalisation 6 min
08 Advanced Excel functions: lookups, text and arrays The lookup run on the PeopleInsight HR workbook: why lookups beat copying between sheets, VLOOKUP with an exact match and a locked table, XLOOKUP with its own not-found answer and a two-way lookup, IFERROR round both, INDEX with MATCH, then CONCAT, TEXTJOIN, LEFT, RIGHT and MID to build and cut the codes a lookup runs on. Employee IDs stand where account numbers would.
- 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
- 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 Lookups that return whole lists: UNIQUE for the distinct values in a column, FILTER on AND and OR conditions, SORT and SORTBY for an order that keeps itself up to date, and a Ninja Challenge of XLOOKUPs against a product sheet, with a solution file to check. These need a modern Excel.
- 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
- 77 SORT and SORTBY in Excel Sort data dynamically with formulas 4 min
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) FinanceGuard's model fetches by key: one spilled list of keys from two tables, TEXTSPLIT reading the parts of each key, and SUMIFS bringing the budget and the actual figure in beside it. It is the pattern for looking up a figure by two keys at once.
- 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 A merge in Power Query, the lookup done once for a whole table: product and region details joined onto sales rows read from CSV files, through a Left Outer join, so no row is dropped and the details fill in wherever a code matches. Statement files mapped to accounts this way stay mapped at every refresh.
- 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.
On a treasury desk, which jobs belong to XLOOKUP and which still belong to VLOOKUP?
XLOOKUP takes the new work and VLOOKUP keeps the inherited files running, and The Complete Excel Course with AI Integration from Coding Liquids gives you both, with INDEX and MATCH beside them. XLOOKUP is the one to build on: it searches left or right, points straight at the column it returns, survives an inserted column and carries its own answer for a code it cannot find (Lesson 69). VLOOKUP still fills the bank templates and reconciliation sheets a treasury team inherits, and it runs in older Excel, where XLOOKUP needs a modern version; Lesson 68 teaches it with an exact match and a locked table, and shows what breaks it. The 14 lessons picked here, 1 hour 8 minutes in all, are built on PeopleInsight, an industry-standard project designed after talking with people from many different industries, where employee IDs do the work account numbers do on a cash sheet.
An inherited cash template shows zeros after someone inserted a column in its account table: what went wrong?
VLOOKUP counted columns, and the count no longer points where it did. The Complete Excel Course with AI Integration stages exactly this in Lesson 68: the formula asks for column two or three of the lookup table by number, so a column inserted inside that table shifts every return one place, and the lesson watches the results turn to zeros before undoing the insert. On a cash template the shifted column can just as easily hold another figure, which is worse than a zero because nothing looks broken. Lesson 69 gives the cure: XLOOKUP names the return column itself, so an inserted column leaves it untouched, and the lesson notes that errors or zeros further down usually mean an unlocked range instead. Lesson 71 shows INDEX and MATCH, the older pairing that also points at its column directly. Repair the template once, and the next change of layout passes harmlessly.
Can XLOOKUP pick the right FX rate out of a grid with dates down the side and codes across the top?
Yes: a two-way lookup returns the value where a chosen row and a chosen column meet, and The Complete Excel Course with AI Integration teaches it by name in Lesson 69. A daily rate grid is exactly that shape, dates down and codes across, so one formula serves every payment line, however many codes the grid holds. Lesson 71 hands you the parts of the classic version: INDEX takes a row number and a column number, MATCH finds a position, and two MATCHes inside one INDEX read the same grid, the form older treasury models are written in. Both lessons work in exact match, which suits rates: a date missing from the grid, such as a bank holiday, shows up as not found instead of quietly borrowing another day's rate, and you decide which rate applies. The lessons look up employee locations by code; a rate grid is read the same way, row by column, with the ranges locked before the formula fills down.
What should the sheet show when a statement carries an account code our mapping table has never seen?
A plain message in place of an error, and The Complete Excel Course with AI Integration teaches two ways to put one there. XLOOKUP carries its own not-found answer, so the cell reads whatever you set, such as a note to add the account, instead of an error code (Lesson 69). For VLOOKUP, Lesson 70 wraps the formula in IFERROR with a message such as NOT MATCHED, after changing one department code so the lookups fail on purpose: one wrong letter is enough. On a treasury sheet that message earns its place twice: whoever reviews the position sees at once which line is unmapped and why, and a FILTER on the message (Lesson 76) gathers every new account into one list for the reference table. A raw error tells most readers nothing; a message tells them what to do, and the position never carries a silent gap.
Exact or approximate match: why does it matter when a lookup fetches a rate or a limit?
Because an approximate match can return a wrong figure without any warning, and The Complete Excel Course with AI Integration builds every lookup in exact match for that reason. VLOOKUP's last argument decides it: FALSE asks for an exact match (Lesson 68), and left out, VLOOKUP falls back to an approximate search that can quietly hand back another row's figure. XLOOKUP is set to an exact match with a 0 in Lesson 69, and MATCH takes the same 0 in Lesson 71. For a treasury sheet the rule is simple: an account, a counterparty or an FX code either matches or it does not, and a miss should surface as a message, never as a neighbour's number. The lessons use employee and location codes; the habit transfers line for line to rate tables and limit lists, where a near miss is the most expensive kind of mistake.
A treasury model handed to me runs on nested INDEX and MATCH: how quickly will those formulas make sense?
Within a single lesson, because The Complete Excel Course with AI Integration takes INDEX and MATCH apart piece by piece, so the formulas stop looking like code. In Lesson 71 INDEX first returns the value at a given row and column of a table, then MATCH returns the position of a code in a column, with 0 for an exact match, and only then are the two joined: MATCH finds the row, INDEX fetches the value. The lesson finishes with tables named on the Table Design tab and the @ sign taking the current row's code, the style many models are written in. Because INDEX points at the return column directly and MATCH can search any column, the pair has none of VLOOKUP's left-to-right limit. Once you can read one, a long nested model formula breaks down into parts you recognise, and you can decide whether to keep it as it stands or rewrite it as XLOOKUP.
Can XLOOKUP match today's statement lines to the payments we expected, and show what is left over?
Yes, and The Complete Excel Course with AI Integration supplies both halves: the match and the list of leftovers. XLOOKUP searches the expected payments for each statement line's reference and returns its details, with the not-found answer marking any line nobody expected (Lesson 69); turned round, the same lookup from the expected list marks the payments that have not yet arrived. FILTER then gathers either set into one list of its own (Lesson 76), so the morning's open items sit together rather than scattered down a long sheet. For whole files that arrive every day, a Power Query merge does the matching for every row at each refresh (Lesson 163). The lessons join employee, department and location tables; a statement against an expected-payments list is the same join on a reference. Where references are typed inconsistently, the trimming lesson comes first, since a lookup needs one key on both sides.
Our statement shows the full account reference, but the limits table is keyed by bank code alone: how do the two meet?
Cut the bank code out of the reference with a text formula, then look it up, and The Complete Excel Course with AI Integration teaches both steps. Lesson 73 splits a code that packs a location, a department and a number into one cell: LEFT reads from the start, RIGHT from the end, and MID takes a start position and a length for the middle. Pull the bank's code out of an account reference the same way, and XLOOKUP turns it into the bank's name, its entity or its limit. The reverse comes up too, building one key from two columns, and Lesson 72 joins text with CONCAT, the & sign and TEXTJOIN, whose separator is set once. In FinanceGuard, Lesson 117 goes further, with keys that hold a period, a department and a category, split apart by TEXTSPLIT. Codes that look identical but carry a stray space are cleaned first with TRIM (Lesson 42).
Why does a lookup return #N/A for an account number that is plainly in the list?
Almost always for one of four reasons, and The Complete Excel Course with AI Integration shows each of them. A stray space at the end of a code makes two identical-looking keys differ, and Lesson 42 trims it out and pastes the clean text back as values. A table range left unlocked slides as the formula fills down, so rows further down miss the table, which Lesson 68 fixes with F4. A code one letter out fails outright, as Lesson 70 shows on purpose. And an account number held as text on one sheet and as a number on the other will not match, which the COUNT against COUNTA check of Lesson 35 brings to light. Capitals are not on the list: a lookup reads upper and lower case alike. Knowing the four turns an afternoon of staring at the screen into a quick, orderly check of the keys.
Can one lookup formula fill the bank, the entity and the limit columns for each account?
One formula per column, written once and copied across, and The Complete Excel Course with AI Integration shows how to copy it without breaking it. In Lesson 69 XLOOKUP fills city, state, region and work arrangement for every employee from one location table: the first formula is written with its ranges locked, then copied across, each copy pointing its return range one column further on. The lesson also catches the slip that copying across causes, the lookup value drifting a column to the right, and sets it back, the same reference discipline every cash sheet needs. Lesson 68 does the VLOOKUP version, changing only the column number for the second field. Put your account list where the location table stands, with bank, entity and limit as its columns, and every statement line gains all three at once, ready for the SUMIFS that build the position.
The account list lives on its own sheet and the statement on another: will the lookup reach across?
Yes, and reaching across sheets is the first thing The Complete Excel Course with AI Integration does with a lookup. Lesson 67 sets out why it matters: copying between tabs is slow and invites mistakes, while a lookup joins two sheets through one shared value. In Lesson 68 the employee sheet fetches department names from a separate lookup sheet with VLOOKUP, the table range locked with F4 before the formula fills down, and Lesson 69 does the same with XLOOKUP against a location sheet. Lesson 71 then names the tables on the Table Design tab, so a formula reads the account list by name instead of by a block of sheet references, which is far easier to check months later. Keep the account list on its own sheet, maintained in one place, and every statement sheet in the workbook reads from it, so a bank's new limit is typed once and reaches every line.
When does a Power Query merge beat XLOOKUP for mapping statement files to our account list?
When the same files come back every day, and The Complete Excel Course with AI Integration teaches both so you can choose. XLOOKUP is right for the sheet in front of you: quick to write, easy to check, visible in every cell. A merge in Power Query, which Lesson 163 builds by joining product and region details onto sales rows read from CSV files, is Power Query's version of the same lookup, applied to the entire table in one step: its Left Outer kind keeps every statement row and fills the account details wherever the codes agree. Set up once, it maps tomorrow's file at the next refresh with no formula to fill down, and the result is a clean table ready for SUMIFS or a PivotTable. The lessons map sales codes; account numbers map the same way. XLOOKUP remains the tool for a one-off question, the merge for the daily routine.
Our balances are keyed by account and date together: can a lookup work on two criteria?
Two ways, and The Complete Excel Course with AI Integration teaches both. For a figure, SUMIFS is the simplest two-criteria lookup there is: give it the account and the date as conditions and it returns the amount, adding every line that matches, which is what a balance built from many flows needs (Lesson 37 teaches it, outside this path). FinanceGuard takes the second route in Lesson 117: each row carries one key that combines a period, a department and a category, and SUMIFS fetches the budget and the actual figure against that key from two tables at once. Build an account-and-date key the same way in a helper column, with the & sign from Lesson 72, and XLOOKUP can find the matching row for text as well as numbers. The lessons fetch budgets by key; balances by account and date use the same move.
Which earlier skills does the lookup run lean on, so I arrive ready?
Locked references above everything, and The Complete Excel Course with AI Integration teaches them well before the lookups arrive. Every lookup on this page holds its table range fixed while the formula fills down, and Lesson 10 is where F4 and the locked, mixed and relative forms are learned; without them the rows below the first return errors, the exact fault Lesson 68 fixes. It also helps to know Excel tables, because the later lessons name their tables and refer to whole columns (Lesson 19 teaches tables and structured references), and to have written a few IF and SUMIF formulas. Nothing else is assumed: PeopleInsight arrives as a starter file with every sheet in place and a finished file to compare. If a lesson still loses you, a question sent through the inbox under it reaches the instructor on the support plan.
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 treasury
- Pivot tables for treasury
- Excel charts for treasury
- Excel dashboards for treasury
- Conditional formatting for treasury
- Data cleaning for treasury
- Data validation for treasury
- Excel tables for treasury
- Text functions for treasury
- Date functions for treasury
- Dynamic arrays for treasury
- Power Query for treasury
- Power Pivot and DAX for treasury
- Macros and VBA for treasury
- Power Automate for treasury
- Copilot in Excel for treasury
- ChatGPT for Excel for treasury
- Claude in Excel for treasury
XLOOKUP and VLOOKUP for other jobs
- Lookups for credit controllers
- Lookups for accounts payable clerks
- Lookups for financial planners
- Lookups for credit analysts
- XLOOKUP and VLOOKUP for underwriters
- XLOOKUP and VLOOKUP for claims handlers
- Lookups for reconciliation analysts
- XLOOKUP and VLOOKUP for medical billing
- XLOOKUP and VLOOKUP for every job