The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for accounts payable clerks

Supplier name, default GL code, payment terms, the order an invoice quotes, the payment already made against it: an accounts payable clerk fetches these from other sheets all day. The Complete Excel Course with AI Integration teaches the lookups that do it on industry-standard projects, and this page picks out those lessons: VLOOKUP, XLOOKUP, IFERROR, INDEX and MATCH, the keys and code splits a match depends on, FILTER for every match and a merge for whole exports.

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:

  • Bring each invoice line's supplier name, default GL account, cost centre and terms from the supplier master with one XLOOKUP copied across the columns.
  • Keep inherited VLOOKUP workbooks working, with an exact match and a locked table range, and know why an inserted column breaks them.
  • Show No PO or NOT MATCHED in place of #N/A when an invoice quotes an order number the purchase order list does not hold, with XLOOKUP's if-not-found answer or IFERROR.
  • Join supplier ID and invoice number into one key with CONCAT or TEXTJOIN, so invoices from two suppliers that share a number never match each other.
  • Lift an order number out of a longer supplier reference with LEFT, RIGHT or MID, and use it as the value a lookup searches for.
  • Look every line of a proposed payment run up in the payment register, so an invoice settled before comes back with its payment date instead of being paid again.
  • List every open invoice on one supplier's account with FILTER, for the supplier on the phone or the statement on your desk.
  • Set a whole invoice export beside the purchase order export with a Power Query merge and a left outer join, for files too large to fill lookups down.

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.

    Its sheets hold the problem an invoice register has: facts about one record spread over several tables. VLOOKUP, XLOOKUP and INDEX with MATCH join them on a shared code, the way a supplier ID joins an invoice to the supplier master, with a plain message wherever a code finds no partner.

  • Project 12

    SalesFusion

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

    Its merge lesson is the lookup scaled up: product and region names brought beside every sale by a left join that loses no row, which is how a month's invoice export meets the purchase order export without a single formula filled down.

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

    The clean-up that decides whether a lookup finds its partner: TRIM, values pasted over formulas and Find and Replace on a sheet full of stray spaces and symbols, the same faults a supplier ID picks up on its way between systems.

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

Start at Lesson 67 if you keep invoices in a table and can write a SUM: the lookups begin there and run in the order a match is built, from VLOOKUP to keys and code splits. Lookups fail on dirty keys, so take Lesson 22 first if your supplier IDs arrive with stray spaces. New to Excel? Begin at Lesson 1. Already fluent in VLOOKUP? Go straight to Lesson 69 for XLOOKUP, then to Lesson 163 for the merge, after the import lessons just before it.

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 Why a key fails before any lookup is written: TRIM for spaces at either end of a supplier ID or invoice number, Paste Special values to keep the clean text, and Find and Replace narrowed to one column for a stray symbol. The lesson cleans an employee sheet.
  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 COUNTIF on one condition: the quick proof that each supplier ID appears once in the master before a lookup leans on it, and a count of the lines a lookup marked as not found. The lesson counts ratings and regions on a sales table.
  1. 36 SUMIF and COUNTIF in Excel Conditional sum and count with one criterion 8 min
08 Advanced Excel functions: lookups, text and arrays 7 of 12 lessons · 31 min The lookups themselves, on an HR workbook of several sheets: why lookups beat copying between tabs, VLOOKUP with an exact match and a locked table, XLOOKUP with its own if-not-found answer, copied across several columns and used two ways, IFERROR for VLOOKUP's gaps, INDEX and MATCH for every version of Excel, CONCAT and TEXTJOIN for a key built from two columns, and LEFT, RIGHT and MID for a code packed into one reference.
  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
  6. 72 CONCAT and TEXTJOIN in Excel Combine employee names and text with a delimiter 3 min
  7. 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 1 of 12 lessons · 5 min FILTER for the question XLOOKUP cannot answer alone: every row that matches, such as all the open invoices of one supplier, with AND and OR conditions. It needs a current Excel such as Microsoft 365.
  1. 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 A challenge on an orders sheet: XLOOKUP brings each line's product name and per-unit figure from a products sheet, a line total follows from the quantity, and the order reference is rebuilt by joining text, the very shape of valuing an invoice line against its order.
  1. 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 for whole files: a Power Query merge with a left outer join that keeps every row of the first table and brings in the second's columns where the key matches, as an invoice export is set beside the purchase order export. It follows the lessons that import and clean a CSV.
  1. 163 Merge queries in Power Query Look up product and region names with a left join 5 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.

An invoice line needs its supplier name, order and terms from other sheets: which course teaches accounts payable clerks to fetch them with XLOOKUP and VLOOKUP?

The Complete Excel Course with AI Integration from Coding Liquids teaches both lookups, with IFERROR and INDEX and MATCH beside them, on an industry-standard project designed after talking with people from many different industries. The project joins records spread over several sheets on a shared code, which is an accounts payable clerk's day exactly: a supplier ID that should bring back a name, terms and a default GL code, an order number that should find its purchase order, an invoice key that should find its payment. This page gathers the 12 lessons that build the skill, 1 hour 5 minutes in all, from the first VLOOKUP to keys made of two columns, codes cut out of a reference, FILTER for every match and a Power Query merge for whole exports. You build each lookup yourself, check it against the finished workbook, then point the same formulas at your own supplier master.

Our supplier master gains a column now and then: is that the moment to move from VLOOKUP to XLOOKUP?

Yes, and The Complete Excel Course with AI Integration shows exactly why. VLOOKUP counts its way to the answer by column number, so in Lesson 68 a column inserted into the lookup table turns the results to zeros, and it needs FALSE typed in to insist on an exact match. XLOOKUP (Lesson 69) points straight at the column to return, so a new column in the supplier master changes nothing; it looks left as easily as right, matches exactly unless told otherwise, and carries its own answer for a code it cannot find. Keep VLOOKUP where colleagues open the file in an older Excel or an inherited workbook already depends on it: the lesson teaches it properly, faults included. INDEX and MATCH (Lesson 71) is the third way, flexible in both directions and at home in every version of Excel.

Can a lookup code each invoice to its GL account and cost centre from the supplier's default coding?

Yes: keep each supplier's default GL account, cost centre and terms on the supplier master, and XLOOKUP brings all three onto every invoice line. The Complete Excel Course with AI Integration builds the same pattern in Lesson 69, where one XLOOKUP on a location code returns the city and is then copied across to return the state, the region and the work arrangement, each time with the return range moved one column and the lookup ranges locked with F4 so the rows below stay right. The lesson also shows the slip to watch for: copied sideways, the lookup value drifts to the next column unless you set it back. Filled down a month's invoices, the coding is done in seconds and is identical for every line from the same supplier. An invoice that needs a different code can still be changed by hand, and everything else follows the master.

Can a lookup show which invoices quote an order number purchasing never issued?

Yes, and the answer arrives as plain words rather than an error. The Complete Excel Course with AI Integration gives XLOOKUP its own if-not-found message in Lesson 69, so an order number missing from the purchase order list returns No PO, or any wording you choose, instead of #N/A. For a VLOOKUP, Lesson 70 wraps the formula in IFERROR with NOT MATCHED as the second argument, after showing how one extra letter in a code is enough to break a match. A filter on that column, or a COUNTIF of the message (Lesson 36), then lists every invoice that cannot be approved until purchasing explains it. The lessons match employee department and location codes; the logic is identical for an invoice quoting an order, and it catches the problem before payment rather than at the audit.

Can lookups put the order, the goods receipt and the invoice on one line so the differences show?

Yes: The Complete Excel Course with AI Integration teaches every piece that line is built from, though no lesson walks through a three-way match as such. Two XLOOKUPs (Lesson 69) on the order number bring the ordered quantity and the agreed per-unit figure from the purchase order list, and a third brings the received quantity from the goods receipts list, each with an if-not-found answer for a document that is missing. The challenge in Lesson 78 is the same shape on an orders sheet: XLOOKUP fetches each line's product name and per-unit figure from a products sheet, and the line total follows from the quantity. Subtract invoiced from received, and invoiced value from ordered value, and every difference sits in its own column beside the invoice, ready to filter, so only the lines that disagree need a person's attention.

Two suppliers send invoices with the same number: how does a lookup tell them apart?

By looking up a key made of both, and The Complete Excel Course with AI Integration teaches the joining in Lesson 72. CONCAT, or the quicker ampersand, joins the supplier ID and the invoice number into one value on each sheet, and the lookup then matches on that key instead of the number alone, so invoice 1001 from one supplier can never find a payment made to another. TEXTJOIN from the same lesson puts a separator between the parts, a hyphen or a space, which keeps the key readable and stops two different pairs from running together into the same text. Before relying on the key, a COUNTIF (Lesson 36) on each sheet shows whether any key appears twice, because a lookup stops at the first match it finds and says nothing about a second. Built this way, one key serves every check on this page, from the order match to the payment register.

Suppliers write the order number inside their own reference: can a formula lift it out so the lookup can use it?

Yes, when the order number sits at a fixed place in the reference, and The Complete Excel Course with AI Integration teaches the three functions that cut it out. Lesson 73 splits a code such as DAL-SAL-0001 into its parts: LEFT reads characters from the start, RIGHT from the end, and MID takes a set number of characters from a position you give, counting every character on the way. Pointed at a supplier reference that carries your order number in the same place each time, the result becomes the lookup value for an XLOOKUP into the purchase order list. Where suppliers place it differently, FIND, taught in Lesson 43 outside this page's path, returns the position of a character such as a hyphen, so the cut can start wherever the number begins. A few short formula columns, and references that once had to be read by eye are matched by the hundred.

Has this invoice already been paid? Can a lookup check the payment register before I add it to the run?

Yes, and it is one of the cheapest controls an accounts payable desk can add. In The Complete Excel Course with AI Integration you build the key in Lesson 72, supplier and invoice number joined, and look it up in the payment register with XLOOKUP (Lesson 69), returning the payment date or reference where a match exists and Not paid where it does not. Every line of the proposed run then shows its own history: anything that comes back with a date was settled before and comes out of the run before anyone approves it. The lessons join employee details across sheets; here the two sheets are the run and the register, and the formula is written once and filled down the whole run. A duplicate payment stopped before release saves the awkward letter asking a supplier to give the money back.

A supplier asks for every open invoice on their account: can one formula list them all, not just the first?

Yes, with FILTER, and The Complete Excel Course with AI Integration teaches it right after the lookups. XLOOKUP stops at the first match, which suits a supplier's name but not their account, so Lesson 76 hands that job to FILTER: it returns every row that meets a rule and spills them below the formula. Two conditions multiplied together mean AND, so supplier equals the one on the phone and status equals Open gives exactly the list they asked for; added together they mean OR, which covers two suppliers at once. The lesson's own tip applies when a bracket goes astray: read the error rather than panic. Point the condition at a cell holding the supplier ID, type a different ID, and the list redraws for the next caller, ready to copy into a reply. FILTER needs a current Excel such as Microsoft 365.

The supplier ID is on both sheets, yet the lookup says not found: what usually breaks a match?

Usually something invisible, and The Complete Excel Course with AI Integration shows each cause before it can cost you a morning. A space at the end of an ID is the commonest: Lesson 22 removes it with TRIM, pastes the clean values back over the originals and uses Find and Replace, narrowed to one column, for a stray symbol. Lesson 70 shows how one extra character turns a good code into a miss. Lesson 68 shows another classic: a table range left unlocked slides down as the formula fills, so the first rows work and later ones fail, until F4 fixes the range. And Lesson 78 clears an error caused by an @ in a table reference, which limits the lookup to one row when it needed the whole column. Know these four and most not-found results are explained within a minute.

A supplier's statement lists invoices I cannot find: can a lookup check the statement against our register in both directions?

Yes, and The Complete Excel Course with AI Integration gives you the two lookups that make up a statement reconciliation. Build the same supplier and invoice key on both lists (Lesson 72), then look each statement line up in your register with XLOOKUP (Lesson 69): a line that comes back with its if-not-found message is an invoice you have never received or never keyed, and a copy can be requested the same day. Look each open register line up in the statement and anything missing there is an invoice the supplier has not billed you for, or a payment they have not yet set against your account. IFERROR (Lesson 70) does the same for anyone keeping VLOOKUP. The lessons match employee codes across sheets; on statement day the two sheets are the supplier's view and yours, and the differences list themselves.

Our invoice export runs to many thousands of lines a month: should the matching move into a Power Query merge?

For whole exports, yes, and The Complete Excel Course with AI Integration teaches the merge as the lookup's bigger sibling. In Lesson 163 Power Query merges a sales table with product and region lookup files using a left outer join, which keeps every row of the first table and brings in the second table's columns only where the key matches, so no line is lost and a missing partner shows as an empty cell. Pointed at an invoice export and a purchase order export, the same merge sets them side by side once, and at the next refresh it repeats itself on next month's files with nothing filled down. Nothing has replaced XLOOKUP for a quick lookup inside a sheet; the merge is what takes over when the job is two whole files. The lesson follows the Power Query lessons that import and clean a CSV.

If Copilot writes the lookup that fills in supplier names, what should an accounts payable clerk check before trusting it?

Three things, and The Complete Excel Course with AI Integration gives you the knowledge for each. First, that it matched on the supplier ID, not on a name that two suppliers might share or spell differently; second, that its ranges are locked, so rows far down the list are as right as the first; third, that it asks for an exact match, since an approximate one quietly returns the nearest supplier's name instead of an error. All three come from the lookup lessons on this page, from Lesson 68 to Lesson 70. The AI section, outside this path, then has Copilot and ChatGPT write formula columns that are read before they are kept (Lesson 95), and closes with a checklist for any AI result (Lesson 99). A lookup that brings back the wrong supplier looks perfectly normal, which is why the person checking it must know how one is built.

I copy supplier details across by hand because VLOOKUP never works for me: will these lessons fix that, and how soon?

Yes, and soon: the path is 1 hour 5 minutes, and the copying can stop after its first few lessons. The Complete Excel Course with AI Integration starts with why lookups matter (Lesson 67), then builds a VLOOKUP one argument at a time in Lesson 68: the value to find, the table to search, the column to return and FALSE for an exact match, with the table locked before the formula fills down, the step most failed attempts miss. XLOOKUP follows and is easier still. Lesson 78 then hands you a fresh orders sheet and tasks to solve before the answers are shown, so you know the skill has stuck. Every lesson here works on Windows or a Mac. Lifetime access keeps the lessons ready for the next export that arrives in a new layout, and completing the course earns a Certificate of Completion an employer can check.

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.