The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for bookkeepers

A bookkeeper matches lists all month: bank lines against the cash book, payees against their account codes, supplier statements against the purchase ledger, remittances against open invoices. The Complete Excel Course with AI Integration teaches the lookups that do the matching on PeopleInsight, an industry-standard project, and this page picks them out with the clean-up and counts they depend on: TRIM, COUNTIF, VLOOKUP, XLOOKUP, IFERROR, INDEX and MATCH, references cut from text, and lists of what is left over.

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:

  • Strip stray spaces out of an exported reference with TRIM and Find and Replace, so a code that looks identical to its partner really matches it.
  • Test whether each bank amount or invoice number appears in the other list at all with COUNTIF, before a single lookup is written.
  • Code bank lines from a payee table with VLOOKUP on an exact match, its table range locked so every row below the first stays right.
  • Bring back an account code with XLOOKUP from either side of the payee column, with a word of your own such as Unmapped when no code exists.
  • Replace #N/A with NOT MATCHED by wrapping a VLOOKUP or XLOOKUP in IFERROR, or by giving XLOOKUP its own if-not-found answer.
  • Write INDEX and MATCH for client workbooks that will be opened in older copies of Excel, where XLOOKUP cannot run.
  • Cut an invoice number out of a bank description with LEFT, RIGHT or MID, and join client code and invoice number into one key with CONCAT or the ampersand.
  • List every payee a month holds with UNIQUE, and every unmatched line with FILTER, so what still needs a code or a query sits on one short list.

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.

    A workbook where every record carries codes and their meanings live on separate sheets, which is exactly how a payee list, a chart of accounts and a tax code table sit beside a month of bank lines. Coding it with VLOOKUP, XLOOKUP and INDEX and MATCH, and breaking one code on purpose, teaches the matching a bookkeeper repeats every month.

Tap or pinch to zoom in, drag to move around. Click or scroll to zoom in, drag to move around.

  • Project 02

    Dunder Michael Paper Company employee database

    Its clean-up lesson is the step that makes a match possible: TRIM in a helper column pasted back as values, and Find and Replace for spellings and stray symbols. An exported reference with a hidden space never finds its partner, so this is where a bank file is made fit to look up.

  • Project 03

    Sales Goal Tracker

    SUMIF and COUNTIF on one condition, practised on a sales table: COUNTIF answers whether a reference or an amount appears in another list at all, and SUMIF totals both sides, so you can see whether two lists agree before matching them line by line.

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

Where to start

Lesson 67 Lookup functions in Excel

Open at Lesson 67 once you can total a column and fill a formula down: from there the path works through coding tables in the order you would use them. If your exports carry stray spaces, watch Lesson 22 first, since a padded reference never finds its partner. Excel new to you? Lesson 1 is the start. Confident with VLOOKUP already? Skip ahead to Lesson 69, where XLOOKUP and its message for a missing code begin.

12 of 186 lessons · 1 h 5 min

03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 1 of 9 lessons · 13 min The clean-up that decides whether a lookup finds anything: TRIM in a helper column pasted back as values, Find and Replace for spellings and stray symbols, and the warning to select a column before Replace All. A reference padded with a space never matches its partner, so this comes before the formulas. The lesson cleans an employee sheet, and a bank file comes clean by exactly the same steps.
  1. 22 Cleaning data in Excel TRIM, Paste Special values and Find and Replace 13 min
04 Essential formulas and functions (IF, SUMIF and more) 1 of 13 lessons · 8 min SUMIF and COUNTIF on one condition, with ranges that must line up or the answer comes out quietly wrong. For matching, COUNTIF asks the first question of any reconciliation: does this amount or reference appear in the other list at all, and how many times?
  1. 36 SUMIF and COUNTIF in Excel Conditional sum and count with one criterion 8 min
08 Advanced Excel functions: lookups, text and arrays 5 of 12 lessons · 21 min From copying between tabs to matching by formula, in the order a bookkeeper needs it: the reason lookups exist, VLOOKUP with an exact match and its range locked before it fills down, the inserted column that quietly changes what it returns, XLOOKUP with a message for a missing code and a two-way lookup for a grid of figures, IFERROR replacing #N/A with NOT MATCHED, and INDEX and MATCH for clients on older copies of Excel. The lessons code staff by department and location; payees and account codes follow the identical method.
  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 and references: the ampersand, CONCAT and TEXTJOIN join a client code to an invoice number so one reference is unique across clients, and LEFT, RIGHT and MID lift a reference out of a longer string, as an invoice number sits at a fixed place inside a bank description.
  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 2 of 12 lessons · 10 min Whole lists in place of single answers: UNIQUE gives the distinct payees in a month of bank lines, a list to hold against the coding table, and FILTER returns every line that passes a test, with AND and OR between tests, so the items still to code or to query sit together.
  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
08 Advanced Excel functions: lookups, text and arrays 1 of 12 lessons · 3 min Practice without a safety net: an orders sheet completed from a products sheet by ID, with XLOOKUP returning two fields, a line total calculated from them and each order ID rebuilt by joining text to it. Invoice lines checked against a supplier's list are the same exercise.
  1. 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 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.

XLOOKUP and VLOOKUP for bookkeepers: where can I learn both properly?

The Complete Excel Course with AI Integration from Coding Liquids teaches both, side by side, on PeopleInsight, an industry-standard project designed after talking with people from many different industries, and this page arranges them around a bookkeeper's matching work. The 12 lessons here, 1 hour 5 minutes in all, open with the clean-up and counts a lookup depends on, then teach VLOOKUP on an exact match (Lesson 68), XLOOKUP with a message for a missing code (Lesson 69), IFERROR (Lesson 70), INDEX and MATCH (Lesson 71), references cut out of text, and the lists that show what is left unmatched. You build each lookup yourself on the course's own files, with the finished workbook to compare against, and every one is tied here to a job that comes round each month: coding bank lines, filling supplier details, matching payments and tracking down the items that will not reconcile.

Is XLOOKUP better than VLOOKUP for coding bank transactions?

For new work, yes, and The Complete Excel Course with AI Integration shows exactly why on real lookup tables. Coding a bank line means finding its payee in your mapping table and returning the account code held beside it. VLOOKUP (Lesson 68) can only return a column to the right of the payee, needs FALSE typed for an exact match, and counts columns by number, so a column inserted into the mapping table quietly changes every code it returns; the lesson inserts one on purpose to prove it. XLOOKUP (Lesson 69) points at the return column directly, works to the left or the right, matches exactly unless told otherwise, and takes a message for a payee it cannot find, so a new supplier reads Unmapped instead of a bare #N/A. Keep VLOOKUP for the files that already use it; the course teaches both, so neither one is a mystery when it lands on your desk.

Why do bookkeepers still use VLOOKUP when XLOOKUP exists?

Because client files travel and old workbooks live for years, and The Complete Excel Course with AI Integration prepares you for both. XLOOKUP needs a current Excel such as Microsoft 365, so a workbook sent to a client on an older copy can show errors where your lookups were, while VLOOKUP and INDEX and MATCH work in every copy. Inherited workbooks are full of VLOOKUP too, and keeping them running means reading it fluently. Lesson 68 builds VLOOKUP from its four arguments and walks through the two faults behind most broken ones, an unlocked table range and an inserted column. Lesson 71 then teaches INDEX and MATCH, which reaches in any direction and runs in any copy, so a file for a client on old software can still carry a sturdy lookup. XLOOKUP is the better default for your own files; the other two keep every client's file working.

Can XLOOKUP pull account codes from a chart of accounts on another sheet, or another workbook?

Yes, and across sheets is how The Complete Excel Course with AI Integration teaches every lookup. In PeopleInsight the records sit on one sheet and the lookup tables on others, and Lesson 69 brings city, state, region and work arrangement in from a separate location table, one locked XLOOKUP copied across the row with its return column moved each time. That is your payee list on one sheet and your chart of accounts on another, with the account code and its name brought onto every bank line. A lookup into a second workbook takes the same arguments with the other file named in the reference; it is not a lesson of its own, and the one-workbook pattern the course teaches is the sounder habit anyway, because a coding table stored inside the file cannot go missing when the file is emailed to a client or a reviewer.

Why does my VLOOKUP return #N/A on a bank export?

Almost always because the two values are not exactly the same, and The Complete Excel Course with AI Integration teaches every common cause. A trailing or double space in an exported reference is invisible but fatal to an exact match: TRIM and Find and Replace in Lesson 22 strip it out, with the helper column pasted back as values. One wrong character does the same, as Lesson 70 shows by changing a single department code and watching both lookup columns fail. An unlocked table range is the third cause: the first row works and the rows below return errors until the range is locked, the fix in Lesson 68. Once the data is clean, the #N/A that remains is real information, an item with no partner, and IFERROR round VLOOKUP or XLOOKUP, or XLOOKUP's own if-not-found answer, turns it into a word you can filter.

Will one XLOOKUP assign account codes to a whole month of bank transactions?

Yes: a payee table and one XLOOKUP code the whole month, and The Complete Excel Course with AI Integration builds that pattern on its own lookup sheets. Keep two columns on a coding sheet, payee and account code. On the bank sheet, XLOOKUP takes each line's payee, searches the first column, returns the second, and shows a word of your choosing, such as Unmapped, for a payee nobody has coded yet (Lesson 69). The table range is locked before the formula fills down, the slip Lesson 68 demonstrates when an unlocked range breaks the lower rows. New suppliers then gather in one place: FILTER lists the Unmapped lines (Lesson 76), you add each one to the table once, and every later month codes them for you. The lessons look up staff against departments and locations; a payee list behaves in exactly the same way.

Can I look up on two things at once, such as client code and invoice number?

Yes, and for bookkeeping the joined key is the method to learn first. Lesson 72 in The Complete Excel Course with AI Integration combines cells with the ampersand, CONCAT or TEXTJOIN, so a client code and an invoice number become one reference, and XLOOKUP then matches on it exactly. Build that key the same way in both lists, with the same separator, and an invoice number shared by two clients can no longer pair with the wrong one. Where you only need to know whether a partner exists, COUNTIFS from Lesson 37 counts the rows that match on two columns at once, amount and date on a bank line for instance. To see the lines themselves, FILTER with two tests joined by the asterisk returns every one of them (Lesson 76). The lessons join first and last names; codes and numbers join in exactly the same way.

Can I match customer payments to open invoices with XLOOKUP?

Yes, when the remittance carries the invoice number, and The Complete Excel Course with AI Integration teaches the whole method. List the payments received with their references, then XLOOKUP each one against your open invoices to bring back the invoice amount and the customer (Lesson 69); a reference with no partner returns your own message, such as No invoice, instead of #N/A. A subtraction beside it shows whether the payment clears the invoice or leaves a balance, the same arithmetic the challenge in Lesson 78 uses for its line totals. If the reference arrives buried in a bank description, MID, LEFT or RIGHT cuts it out first (Lesson 73). A part payment, or one payment covering several invoices, still needs your judgement; for every clean one-to-one payment, the lookup does the matching in seconds and leaves you only the exceptions.

Can LEFT, MID or RIGHT pull an invoice number out of a bank description?

Yes, when the number sits in the same place on every line, and The Complete Excel Course with AI Integration teaches all three on a packed code. In Lesson 73 a code such as DAL-SAL-0001 is cut into its parts: LEFT takes characters from the start, RIGHT from the end, and MID a stretch from the middle once you give it a start position and a length. Bank descriptions often follow a pattern of that kind, a fixed prefix and then the reference, so one MID filled down the column lifts every reference into a column of its own, ready for XLOOKUP. Where the position moves from line to line, FIND and SEARCH locate it first (Lesson 43), and Text to Columns splits a description at a separator (Lesson 25). Either way the reference ends up in a clean column that a lookup can match exactly.

Can a lookup fill in the tax rate for each line from its tax code?

Yes: a rate table and one exact-match lookup do it, and The Complete Excel Course with AI Integration gives you every part. Keep the tax codes and their rates in a small table, and XLOOKUP brings each line's rate in from its code (Lesson 69), with a message for a code that does not exist, so a mistyped code shows itself instead of quietly applying no tax. Multiplying the amount by that rate gives the tax on the line, and because the rate is looked up rather than typed, a change of rate is made once, in the table. The exact match matters here more than anywhere: an approximate match can hand back a neighbouring rate without any warning, which is why the course sets FALSE in VLOOKUP (Lesson 68), 0 in XLOOKUP (Lesson 69) and 0 in MATCH (Lesson 71) from the very first formula.

Do I still need lookups if my accounting software matches the bank feed?

Yes, for everything that happens outside the software, and The Complete Excel Course with AI Integration is built for exactly that part of the job. Bank feeds match inside the ledger, but a bookkeeper still receives spreadsheets: a client's own sales list, a supplier statement, a payroll summary, an export from another system, a workbook left by the previous bookkeeper. Each has to be checked against your records before it is posted, and that is lookup work. COUNTIF tells you at once whether a line appears in the other list at all (Lesson 36), VLOOKUP and XLOOKUP pair each line with its partner (Lesson 68 and Lesson 69), IFERROR names what has no partner (Lesson 70), and FILTER lists the leftovers (Lesson 76). Any two lists that share a reference answer to the same formulas, whichever software produced them.

Lookups have always confused me: can I learn them from scratch here?

Yes, and the confusion usually comes from one missing idea, which The Complete Excel Course with AI Integration gives you first. A lookup is the formula version of something you already do by eye: find the supplier on a list, read across to its code, copy it back. Once that picture is clear, VLOOKUP's arguments read as plain instructions, and Lesson 68 adds them one at a time on a real pair of sheets. The other common block is locking: a range that is not locked works on the first line and fails below it, which Lesson 10 explains on a tax column well before the lookups begin. XLOOKUP in Lesson 69 is easier still, with no column numbers to count. The challenge at Lesson 78 then confirms the method has sunk in before you trust it with a client's file.

How long until lookups save me time at a client's month-end?

About 1 hour 5 minutes of lessons, and the first job they speed up is coding. The Complete Excel Course with AI Integration has VLOOKUP and XLOOKUP working on real tables by Lesson 69, early on this path, and from that point a payee table codes a month of bank lines in one fill-down instead of line by line. IFERROR and INDEX and MATCH follow at once, and the lessons on keys, references and leftover lists complete the matching toolkit. Build a coding table and a matching sheet once per client and every month after reuses them: paste the new export, let TRIM and the lookups run, then work through the short list that remains. The practice files and finished workbooks let you check each step as you go, and lifetime access keeps the lessons open for the first awkward export a new client sends you.

Will my lookups keep working when I add payees or rearrange the coding table?

Yes, if the table is built the way The Complete Excel Course with AI Integration builds it. An exact match, which Lesson 68 sets with FALSE, does not care what order the payees are in, so sorting the coding table changes nothing. Adding columns is where VLOOKUP fails, because it counts across by number, and where XLOOKUP and INDEX and MATCH hold firm, because each points at its column directly (Lesson 69 and Lesson 71). Adding rows is the last risk: a locked range that stops at row eleven never sees a payee typed on row twelve. Lesson 71 names the tables on the Table Design tab and looks up whole table columns instead, and an Excel Table grows as rows are added (Lesson 19), so a new payee joins the lookup the moment it is typed and next month's lines find it.

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.