The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for procurement officers

Every purchase order line points at something kept elsewhere: a supplier list, a contract rate sheet, a catalogue of item codes. Checking them by eye is where errors slip through. The Complete Excel Course with AI Integration teaches XLOOKUP, VLOOKUP and INDEX with MATCH on industry-standard projects, and this page picks out what a buyer needs: clean keys, lookups that survive a changed export, a flag for codes off contract, two-key matches and a monthly merge.

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 order line's agreed rate, lead time and supplier name in from a reference list with XLOOKUP, and keep it working when that list gains or loses a column.
  • Write VLOOKUP with an exact match and a locked table for the older workbooks colleagues and suppliers still send, and reach for INDEX and MATCH when VLOOKUP cannot look to the left.
  • Mark an item code or supplier missing from the contract list with XLOOKUP's if-not-found answer or with IFERROR, so off-contract spend shows as a label instead of #N/A.
  • Read a figure from a grid of quotes by item and supplier at once with a two-way lookup.
  • Match on two facts together by joining item code and supplier into one key, and return every line that meets two conditions with FILTER.
  • Clean codes with TRIM and Find and Replace, delete a supplier keyed twice, and cut a part code out of a longer reference with LEFT, RIGHT and MID before any lookup runs.
  • List the suppliers or items a period used with UNIQUE, keep lists in order with SORT and SORTBY, and merge a supplier table into each month's export with Power Query.

Projects

What you will build.

The course has 14 industry-standard projects. These four matter most here.

  • Project 06

    PeopleInsight HR workbook

    Employee data joined across sheets with one formula.

    Built on employee records, it is the workout a contract check needs: names, cities and work arrangements fetched from code tables with VLOOKUP, XLOOKUP and INDEX with MATCH, an inserted column and a mistyped code breaking them on purpose, readable messages in place of #N/A, and a Ninja Challenge that fetches each order's product name and per-unit figure from a product sheet.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    Its keys carry several facts in one cell, period, department and category, and SUMIFS fetches budget and actual by matching the whole key: the pattern for a rate looked up by item and supplier together, or spend matched by category and month.

  • Project 12

    SalesFusion

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

    Its merge is a lookup run on every row of an export at once: product and region names joined to their codes with a left outer join, so a supplier table joined to each month's purchase file needs no formula filled down and no copy and paste.

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

    Where keys are made clean before anything is matched: stray spaces trimmed, a value replaced down a whole column, duplicate rows deleted. The list is of employees; a supplier master with one supplier keyed twice, or a code with a trailing space, is put right the same way, and every lookup against it then finds its match.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 15 of them, 1 h 21 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 supplier and order lists in tables and already write SUMIFS: the lookups begin there. If your codes come out of an ERP export full of stray spaces, take Lesson 22 and Lesson 23 first. New to tables? Lesson 19 shows them before the lookups, and Lesson 1 starts Excel from zero. Already fluent in VLOOKUP? Jump to XLOOKUP at Lesson 69 and the two-key pattern in Lesson 117.

15 of 186 lessons · 1 h 21 min

03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 2 of 9 lessons · 19 min The clean-up a match depends on: TRIM and Find and Replace for stray spaces and second spellings, clean values pasted back, then duplicate rows found and deleted. The list is of employees; supplier names and item codes are cleaned the same way, and a lookup only matches what is typed alike.
  1. 22 Cleaning data in Excel TRIM, Paste Special values and Find and Replace 13 min
  2. 23 Remove duplicates in Excel Find and delete duplicate rows in an employee list 6 min
08 Advanced Excel functions: lookups, text and arrays 7 of 12 lessons · 31 min The lookup core, on the PeopleInsight HR workbook: why lookups matter, VLOOKUP with an exact match across sheets, XLOOKUP with if-not-found and a two-way lookup, IFERROR for errors in both, INDEX with MATCH, then CONCAT and TEXTJOIN to build a joined key and LEFT, RIGHT and MID to take a code apart.
  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 4 of 12 lessons · 18 min Lookup's partners in a modern Excel: UNIQUE for a distinct list of suppliers or items, FILTER for every line that meets one or two conditions, SORT and SORTBY for lists that order themselves, and a Ninja Challenge that looks up a product name and a per-unit figure for each order and multiplies it by the quantity.
  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
  3. 77 SORT and SORTBY in Excel Sort data dynamically with formulas 4 min
  4. 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) 1 of 10 lessons · 8 min FinanceGuard's model, where SUMIFS matches a key of period, department and category to bring budget and actual into one table: the way to look up by two or three facts at once.
  1. 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 1 of 21 lessons · 5 min A merge in Power Query: names joined to codes with a left outer join for every row of an export, the lookup to use when the order file is a fresh download each month.
  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.

Does a procurement officer need both XLOOKUP and VLOOKUP to check order lines against contract rates?

Yes, both: XLOOKUP for your daily checks and VLOOKUP for the older workbooks still in circulation, and The Complete Excel Course with AI Integration from Coding Liquids teaches the two side by side on an industry-standard project designed after talking with people from many different industries. In PeopleInsight, VLOOKUP fetches names from a code table with an exact match (Lesson 68), XLOOKUP does the same work with its own if-not-found answer and a two-way lookup (Lesson 69), IFERROR turns lookup errors in both into a readable message (Lesson 70), and INDEX with MATCH covers the cases VLOOKUP cannot reach (Lesson 71). The data is employees and their codes; your order lines and supplier list take their place, and the agreed rate, lead time or category comes back beside every line. This page gathers 15 lessons, 1 hour 21 minutes in all, from clean keys to a merge that repeats itself every month.

Why does XLOOKUP keep working when a supplier's rate file gains a new column?

Because it points straight at the column to return, while VLOOKUP counts columns by number, and The Complete Excel Course with AI Integration shows both behaviours on purpose. In Lesson 68, a column inserted into the lookup table turns VLOOKUP's results to zero until the insert is undone: the formula still reads the same numbered column, which now holds something else. In Lesson 69, XLOOKUP is given a lookup range and a separate return range, so a new column in between changes nothing, and it can read to the left of the codes as easily as to the right, so a supplier name stored before the item code is no obstacle. For procurement this is the everyday risk: a rate sheet exported again with one extra column, and a VLOOKUP that keeps returning numbers that look plausible but come from the wrong field. XLOOKUP takes that risk away.

Why do people still use VLOOKUP, and when is it the right choice in purchasing?

Because it runs in every version of Excel and sits inside years of inherited workbooks, and The Complete Excel Course with AI Integration teaches it properly for exactly those files. A supplier on an older Excel, a costing template built long ago, a colleague who learnt it first: each still sends VLOOKUP your way. Lesson 68 writes it the safe way, with FALSE as the last argument for an exact match, since left out it accepts a near match and can quietly return the wrong supplier's rate, and with the table range locked by F4 so rows further down do not return errors. Choose VLOOKUP when a workbook must open in an older Excel, XLOOKUP for your own analysis (Lesson 69), and INDEX with MATCH (Lesson 71) when an older file needs a lookup to the left, which VLOOKUP cannot do.

How do I flag order lines whose item code is missing from the contract list?

With a lookup that answers in words when it finds nothing, and The Complete Excel Course with AI Integration teaches two ways to write it. XLOOKUP takes its own if-not-found answer, so a code missing from the contract list returns a label such as Not on contract instead of #N/A (Lesson 69); IFERROR wraps a VLOOKUP or an XLOOKUP and does the same for any lookup error (Lesson 70). A COUNTIF on that label counts the off-contract lines, a SUMIFS totals their spend (Lesson 37, outside this page's path), and FILTER lists every one of them for review (Lesson 76). One warning from Lesson 70 matters here: a single extra letter in a code is enough to break a match, so a line flagged off contract may be a typing slip rather than a new item. Clean the codes first and the label means what it says.

Can a lookup check each invoice line against the rate agreed on its purchase order?

Yes: look up the agreed figure by its key, then compare. In The Complete Excel Course with AI Integration, the Ninja Challenge of Lesson 78 has that exact shape: an Orders sheet with empty columns, where XLOOKUP fetches each order's product name from a Products sheet, a second XLOOKUP fetches its per-unit figure, and a formula multiplies it by the quantity for a line total. Point the same lookups at your purchase orders, keyed on the order number or the item code, and the agreed rate and ordered quantity land beside every invoice line. A subtraction shows the difference and IF marks the lines outside your tolerance (Lesson 29, outside this path), while IFERROR answers No order for an invoice that matches nothing (Lesson 70). The result is an exceptions list you can pass to accounts payable, built in minutes instead of a morning of side-by-side checking.

Can one formula bring back the supplier name, lead time and minimum order quantity together?

Three columns come back from one formula written once and copied across, and The Complete Excel Course with AI Integration shows how to do it without a slip. In Lesson 69, an XLOOKUP that fetches each employee's city is copied across to fill state, region and work arrangement as well: the return range moves a column each time, and the lookup value is set back on the code column, the step that otherwise drifts and fetches the wrong field. For a supplier list holding name, lead time and minimum order quantity, that gives three matched columns beside every order line from one pattern. When you want whole rows rather than chosen columns, FILTER returns every column of every matching line in one spill (Lesson 76), a quick view of a supplier's full record. Both need a modern Excel; one XLOOKUP spilling several columns at once is a variation the lessons leave you to try.

Can I read a rate from a grid of quotes by item and supplier at once?

Yes: that is a two-way lookup, and The Complete Excel Course with AI Integration teaches it in Lesson 69 beside the everyday XLOOKUP. A quote grid has items down the side and suppliers across the top; a two-way lookup finds the item's row and the supplier's column and returns the figure where they cross, so changing either name in its input cell reads a different quote at once. Lesson 71 adds the two parts behind the same idea in INDEX and MATCH: INDEX returns the value at a given row and column number of a table, and MATCH returns the position of a value in a list, with zero for an exact match. For tender returns that change every round, a two-way lookup keeps the comparison sheet pointed at the right cell, so nobody copies quoted figures across by hand and nobody transposes two of them on the way.

How do I match on two things at once, such as item code and supplier?

Build one key from both, and The Complete Excel Course with AI Integration teaches the pieces. CONCAT, the ampersand or TEXTJOIN joins two cells into one text with a separator you choose (Lesson 72), so an item code and a supplier code become a single key in both the rate list and the order lines, and XLOOKUP matches on it like any other code. FinanceGuard runs on keys of this kind: each row's key holds the period, the department and the category split by pipes, and SUMIFS fetches budget and actual by matching the whole key (Lesson 117). SUMIFS on separate columns does the same without a helper column, one condition per column, when each combination appears once. And FILTER returns every row that meets two conditions together, joined by an asterisk for AND (Lesson 76). Three routes to one answer, so you choose the one your file suits.

Our ERP codes arrive with trailing spaces and odd formats: will lookups still find them?

Once they are cleaned, yes, and The Complete Excel Course with AI Integration teaches the clean-up before the lookups. A trailing space or a second spelling makes two codes that look alike different to Excel, so the lookup misses; capitals alone do no harm, since lookups ignore case. Lesson 22 strips stray spaces with TRIM, pastes the clean values back and fixes spellings with Find and Replace, and Lesson 23 deletes duplicate rows, which matters because a supplier keyed twice in a reference list returns whichever row comes first. Where the code you need is buried in a longer reference, LEFT, RIGHT and MID cut it out (Lesson 73), and COUNT set against COUNTA shows whether numeric codes have arrived as text (Lesson 35, outside this path). The lessons clean an employee list, and a supplier master or a catalogue export takes exactly the same steps.

How do I find the latest rate paid for an item in a long order log?

Pull every line for the item, then put them in date order, two steps The Complete Excel Course with AI Integration teaches with dynamic arrays. FILTER returns all the log's lines that match the item code (Lesson 76), and SORTBY orders them by a column you choose, here the order date, without that column having to be one you display (Lesson 77). The newest line then sits at the end of the result, with the rate, the supplier and the quantity beside it, and the whole view rebuilds itself as new lines join the log. XLOOKUP can also search a list from the bottom up, a setting the lessons do not cover; the FILTER and SORTBY route has the advantage of showing every rate paid before, which is the history you want in front of you before a renegotiation. Both functions need a modern Excel.

Has anything replaced XLOOKUP, or is it still worth learning?

Nothing has replaced it: XLOOKUP is the lookup function of current Excel, and The Complete Excel Course with AI Integration puts it at the centre of the lookup lessons. What has arrived alongside it are tools for other jobs. FILTER returns every match instead of the first (Lesson 76). A Power Query merge joins a whole table to each month's export at refresh, with no formula filled down (Lesson 163). Copilot and Claude write and repair formulas on request, and the course has you check what they return (Copilot in Lesson 95, Claude in Lesson 104, both outside this path). Each of those is easier to judge once XLOOKUP is second nature, because you know what a right answer looks like. For a procurement officer matching order lines to rates and suppliers every day, XLOOKUP is the function used most, so the time spent on it pays back first.

Can I look up between this month's order file and the supplier master without pasting them into one sheet?

Yes, by either of two routes, and The Complete Excel Course with AI Integration covers each of them. Between sheets of one workbook, a lookup reads the other sheet directly: Lesson 68 brings department names in from a separate lookup sheet with VLOOKUP, and Lesson 69 does the same with XLOOKUP, so the supplier master can live on its own tab and every order line still finds its supplier. When the order file is a fresh export each month, Power Query is the stronger route: Lesson 163 merges two queries on a shared code with a left outer join, keeping every row of the main table and bringing the names in beside it, and the merge runs again at each refresh. A code with no partner comes back blank, which makes a new supplier stand out the first day it appears in the export.

Do I need Microsoft 365 for XLOOKUP, and will the lessons work on a Mac?

XLOOKUP needs a modern Excel, and The Complete Excel Course with AI Integration says so when it arrives; VLOOKUP and INDEX with MATCH run in older versions too, which is one reason the lessons teach all three. UNIQUE, FILTER, SORT and SORTBY are dynamic array functions and need a modern Excel as well (Lesson 75 to Lesson 77). On a Mac, every lesson on this page works: the course's requirements name Windows only for Power Pivot and Power Automate, and none of their lessons is here. If your organisation is part way through an upgrade, a sensible split is XLOOKUP in your own analysis and VLOOKUP or INDEX with MATCH in any sheet that has to open on an older copy, and after these lessons you can write all three without looking anything up, which is rather the point.

I have never written a lookup: is this a sensible place for a beginner to start?

Yes, provided you can already keep a list in Excel, and The Complete Excel Course with AI Integration starts the lookups from first principles. Lesson 67 sets out the problem before any formula: related information sits in separate tables, copying between them is slow and error-prone, and a shared code such as an ID lets Excel join them across thousands of rows. VLOOKUP follows one argument at a time (Lesson 68), then XLOOKUP, IFERROR and INDEX with MATCH, each a short lesson, and a Ninja Challenge asks you to solve before you watch (Lesson 78). The whole page runs 1 hour 21 minutes. If tables are new, Lesson 19 comes first, and Lesson 1 if Excel itself is. Lifetime access keeps every lesson here on hand, and with the instructor support plan a question about your own supplier file goes to the instructor in writing.

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.