The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for small business owners

Product codes, customer names, supplier details: a small business keeps them in lists and types them again on every order and invoice. The Complete Excel Course with AI Integration ends that retyping with XLOOKUP and VLOOKUP, taught on PeopleInsight, an industry-standard HR workbook. From a first exact-match lookup, the path runs on to codes that match nothing, split SKUs, one customer's whole order history and budget joined to actual.

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:

  • Fetch a product's name, cost or selling figure onto an order sheet from its code with XLOOKUP, across sheets and with an exact match.
  • Read and repair the VLOOKUP in a file someone sends you: FALSE for an exact match, the lookup table locked with F4, and the column number an inserted column throws off.
  • Show your own message, such as Check code, in place of #N/A, with XLOOKUP's if-not-found answer or IFERROR round a VLOOKUP.
  • Look up a code that sits to the right of the value you want with XLOOKUP or INDEX and MATCH, and pick one figure out of a grid with a two-way lookup.
  • Take a product or job code apart with LEFT, RIGHT and MID, and build one from its parts with CONCAT, the ampersand or TEXTJOIN.
  • List every order of one customer with FILTER, and a clean list of customers with UNIQUE, where a lookup would stop at the first match.
  • Sort a statement's spending into categories with a mapping list and XLOOKUP, so a new payee shows up as Uncategorised until you add it.
  • Bring a month's budget and actual spending together from two tables by a shared key with SUMIFS, the way FinanceGuard's model does.

Projects

What you will build.

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

  • Project 06

    PeopleInsight HR workbook

    Employee data joined across sheets with one formula.

    An HR workbook in the course, where each employee row gains a department, an HR business partner and a location from separate lookup sheets; an owner takes away the same joins for orders and invoices, a code typed in and the name and figures fetched beside it.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    Built on department budgets in the course, its model pulls budget and actual out of two separate tables by a shared key with SUMIFS, which is the join an owner needs to set each month's spending beside the plan.

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

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

The lookups start at Lesson 67, where the PeopleInsight workbook sets out a problem every owner knows: related facts kept in separate lists. Simple formulas and a cell locked with F4 are all it assumes, both taught from Lesson 8 if they are new to you, and someone opening Excel for the first time starts the course at Lesson 1. Already fetching details with VLOOKUP? Move on to Lesson 69, where XLOOKUP and its if-not-found answer begin.

11 of 186 lessons · 52 min

08 Advanced Excel functions: lookups, text and arrays 7 of 12 lessons · 31 min Lookups on the PeopleInsight HR workbook: why copying between tabs breaks down, VLOOKUP across sheets with an exact match and a locked range, XLOOKUP with an if-not-found answer and a two-way lookup, IFERROR handling lookup errors in VLOOKUP and XLOOKUP formulas, INDEX with MATCH, then CONCAT, the ampersand and TEXTJOIN to join text and LEFT, RIGHT and MID to cut a code into parts. The rows are employees; product, customer and supplier lists join in exactly the same way.
  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 2 of 12 lessons · 10 min UNIQUE and FILTER: a distinct list spilled beside the table, then every row that meets one condition or two, the tool for a customer's whole order history where a lookup returns only the first match. Both belong to a modern Excel.
  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 The lookup challenge: a Products sheet and an Orders sheet, XLOOKUP filling each order's product name and per-unit figure, a total from that figure times the quantity, and every order ID rebuilt with a text prefix, all tried before the solution file opens.
  1. 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: a spilled list of keys drawn from both tables, labels pulled out of each key with LET and TEXTSPLIT, and SUMIFS aimed at each table's key column to bring budget and actual in side by side, the join an owner needs when plan and spending live in separate tables.
  1. 117 Budget vs actual model in Excel SORT, UNIQUE, VSTACK, LET, TEXTSPLIT, SUMIFS 8 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.

Can XLOOKUP and VLOOKUP fill in an invoice from a customer code and a product code, and which course shows a small business owner how?

Yes: keep each detail once, in its own list, and let a lookup fetch it onto the invoice, and The Complete Excel Course with AI Integration from Coding Liquids covers both functions that do the fetching. Type a product code on an order and XLOOKUP brings back its name and per-unit figure; type a customer code on an invoice and that customer's details follow. The lessons do it first on PeopleInsight, an industry-standard HR workbook whose employee rows gain a department, an HR business partner and a location from separate sheets (Lesson 68, Lesson 69), then on a Products sheet and an Orders sheet in the lookup challenge (Lesson 78), a small shop's order book in all but name. Give 52 minutes to the 11 lessons chosen for this page and every detail you keep is typed once and fetched everywhere after, with no copying and pasting between tabs.

My bookkeeper's files are full of VLOOKUP: should I learn it as well as XLOOKUP?

Yes, learn both, and The Complete Excel Course with AI Integration teaches them side by side for exactly that reason. VLOOKUP works in every version of Excel, so files from a bookkeeper, an accountant or a supplier on an older copy go on using it, and Lesson 68 teaches it properly: the exact match set with FALSE, the table range locked with F4 before filling down, and the column number that breaks when a column is inserted. XLOOKUP (Lesson 69) is the better choice for the sheets you build yourself, because it looks left or right, points straight at its return column and carries its own answer for a missing code; it needs a modern Excel, which the course flags when it appears. INDEX with MATCH (Lesson 71) completes the set, working in any version without VLOOKUP's limits. Knowing all three, you can read any file that lands in your inbox and pick the right one for your own.

Can a lookup be trusted to bring back the right selling figure for a product code?

Yes: an exact match returns that code's figure or nothing at all, and The Complete Excel Course with AI Integration teaches the settings that guarantee it. Lesson 68 sets VLOOKUP's last argument to FALSE, which asks for an exact match; left off, VLOOKUP hunts for the nearest value instead, and a code missing from your list can quietly borrow its neighbour's figure. XLOOKUP in Lesson 69 is given 0 for an exact match and returns your own text when the code is absent. The other classic fault is a range that slides as the formula fills down, which shows up as errors or zeros further down the column, so both lessons lock the lookup table with F4. In the lookup challenge (Lesson 78), the per-unit figure that XLOOKUP fetches is multiplied by the quantity to give each order's total, so a wrong match would show at once in the money column.

I keep adding products and columns to my list: will my lookups survive?

XLOOKUP will, and The Complete Excel Course with AI Integration shows you exactly why VLOOKUP might not. In Lesson 68 a column is inserted into the lookup table on purpose and the VLOOKUP results turn to zeros, because VLOOKUP counts columns by number and the count is now wrong; undo, and they come back. XLOOKUP points at the return column itself, so an inserted column moves the reference with it and nothing breaks (Lesson 69). New rows are the other half: Lesson 71 names the tables on the Table Design tab and looks up against their columns, and a formula aimed at a table column takes in each product you add at the foot of the list, while Lesson 73 turns the main sheet into a formatted table and advises the same for every lookup sheet. Build your product list that way and adding a line never means editing a formula.

What will my invoice show when a customer code is not on my list?

A message of your own, never a bare #N/A, and The Complete Excel Course with AI Integration gives you two ways to write it. Inside XLOOKUP the message is simply the fourth argument: Lesson 69 types a short text there, so a code with no match prints those words in the cell. Around a VLOOKUP, Lesson 70 handles lookup errors with IFERROR, in VLOOKUP and XLOOKUP formulas alike, after breaking a code on purpose to watch the errors arrive. On an invoice, choose words that tell you what to do next, such as New customer, add to list, because the usual cause is a customer you have not entered yet or a code typed with one letter wrong. Better still, stop the slip at the source: a drop-down list of your customer codes, the kind Lesson 45 builds for consistent entry, lets you pick a code instead of typing it, and the lookup has nothing to miss.

Can lookups sort my bank and card spending into expense categories?

Yes: a short mapping list does it, and The Complete Excel Course with AI Integration teaches the lookup that reads it. Keep two columns on a sheet of their own, the payee as your statement words it and the category you file it under, then let XLOOKUP fetch the category for every line of the month's spending (Lesson 69). Its if-not-found answer earns its keep here, because a new supplier that is not on the list yet comes back as Uncategorised instead of an error, and you add it once. The lessons map department codes to department names on HR data; a payee list maps the same way, as long as the statement words each payee consistently. With every line categorised, SUMIF and SUMIFS total the spending by category and month, and FinanceGuard's model (Lesson 117) shows those totals set against a budget. Sorting a statement by eye becomes a column that fills itself.

My product codes pack the range, size and colour into one string: can formulas split them for a lookup?

Yes: LEFT, RIGHT and MID take a code apart, and The Complete Excel Course with AI Integration teaches all three on a code built the same way. Lesson 73 splits a position code such as DAL-SAL-0001 into its location, its department and its number: LEFT reads from the start, RIGHT from the end, and MID needs a start position and a length. A SKU of range, size and colour joined by hyphens comes apart the same way where each part has a fixed length, and FIND, taught in Lesson 43, locates the hyphen when lengths vary. Each part can then be looked up in a list of its own or counted with COUNTIF. Going the other way, Lesson 72 joins text with CONCAT, the ampersand and TEXTJOIN, and the lookup challenge (Lesson 78) rebuilds every order ID by joining a text prefix to it. Codes stop being a puzzle and become something your formulas read.

A regular customer has dozens of orders: what lists all of them when a lookup stops at the first?

FILTER does, and The Complete Excel Course with AI Integration teaches it straight after the lookups. XLOOKUP and VLOOKUP return one row, the first match they meet, which is right for a product's details and wrong for an order history. Lesson 76 uses FILTER to return every row that meets a condition, then two conditions at once, the asterisk working as AND and the plus sign as OR, each result spilling under a heading of its own and changing when the data does. Aim it at your orders table with one customer's code and the whole history appears; add a date condition and you have one month of it. Lesson 75 supplies UNIQUE, which spills a list of distinct values, such as the customer list a drop-down can draw on. Both are functions of a modern Excel, and both need empty cells outside the table to spill into.

My supplier's file puts the code in the last column: can I still look it up?

Yes, with XLOOKUP or with INDEX and MATCH, and The Complete Excel Course with AI Integration teaches both because VLOOKUP cannot do it. VLOOKUP reads only from left to right, so its lookup value has to sit in the first column of the table, a layout a supplier's file rarely respects. XLOOKUP searches left or right and simply points at the column you want back (Lesson 69). INDEX and MATCH, from Lesson 71, split the job in two: MATCH finds the row where the code sits, with 0 for an exact match, and INDEX returns the value from whichever column you name. The lesson builds it first in single cells, then on named tables with the current row's code, filled down the sheet. INDEX and MATCH also work in every version of Excel, which matters when the file goes back to a supplier on an older copy.

Can a lookup pick a delivery charge from a grid of zones and parcel sizes?

Yes: that is a two-way lookup, and The Complete Excel Course with AI Integration closes its XLOOKUP lesson, Lesson 69, with one. A grid holds each value where a row meets a column, a delivery zone down the side and a parcel size across the top, and a two-way lookup finds the row and the column together and returns the cell where they cross. A courier's rate card, a supplier's charges by size and colour, a stock count by product and branch: all share that shape. Earlier in the same lesson, the XLOOKUP built for each employee's city is reused for state, region and work arrangement, its return column moved one step each time and its lookup cell set back after it shifts. INDEX in Lesson 71 takes a row number and a column number too, the other half of any grid lookup, so a table of charges never has to be read by eye again.

My stock list has the same product in several sizes: how do I fetch the right size's figure?

Give each size a key of its own, product and size joined, and The Complete Excel Course with AI Integration teaches every piece of that method. The ampersand taught in Lesson 72 can join product and size into a single code in a helper column of your list, and a lookup on that column then matches both at once. A lookup on two keys has no lesson of its own, and the course gives you two more routes besides. When you need every row that meets both conditions, FILTER does it directly, with the asterisk standing for AND (Lesson 76). When you need a total rather than a row, SUMIFS takes as many conditions as you give it, and FinanceGuard's model uses it to fetch budget and actual by a key that packs month, department and category into one string (Lesson 117). Between them, a product in one size, sold in one month, is always one formula away.

My budget is on one sheet and my real spending on another: can lookups line them up month by month?

Yes, and FinanceGuard's model in The Complete Excel Course with AI Integration shows the join that does it (Lesson 117). The plan and the spending start life as two tables, and every row of each carries one key stringing the month, the department and the category together. From those keys a single sorted list is spilled, the month label and the other parts are read back out of each key, and SUMIFS fetches the planned figure from one table and the spent figure from the other onto the same line. For an owner, swap departments for cost headings such as rent, stock and advertising, and the sheet answers the question every month end asks: where did spending run over the plan? A new month joins the spilled list by itself, and a double-click on the fill handle finishes the rest of its row. A lookup returns one match, where SUMIFS adds them all, which suits a month of receipts. Name the tables exactly, as the lesson warns, or SUMIFS fails.

If ChatGPT writes the XLOOKUP for my order sheet, how do I know it is right?

Test it on codes whose answers you already know, and The Complete Excel Course with AI Integration gives you both the lookup knowledge and the checking habit. After these lessons you can read any XLOOKUP at a glance: which cell holds the code, which column is searched, which column comes back, what happens when nothing matches. So check what ChatGPT hands back the way the lessons check every lookup: a code you know returns its known figure, a made-up code returns your not-found text rather than a stranger's figure, and the ranges are locked so the last row reads as well as the first. The AI lessons do the same with formula columns from Copilot and ChatGPT, one row worked by hand before anything is trusted (Lesson 95), and Lesson 99 adds a short checklist for any AI result. ChatGPT answers in its own window, and the formula goes into your workbook by your hand.

I have never written a lookup: how soon will my order sheet fill itself in?

In a single sitting, and the whole set of lookup lessons here runs to 52 minutes. The Complete Excel Course with AI Integration opens the subject with why lookups matter at all (Lesson 67), then a VLOOKUP and an XLOOKUP across sheets, each only minutes long, which is enough to fetch a product's details onto your own order sheet the same evening. Error messages, INDEX and MATCH, and the text functions that build and split codes follow in short steps, and the challenge in Lesson 78 hands you a Products and Orders file to prove it on before you touch your own. Simple formulas and the F4 key for a locked cell come first, and both are taught earlier in the course (Lesson 10). The PeopleInsight starter and finished workbooks come with the lessons, and the challenge has its own solution file, so every result can be compared.

Would a Power Query merge suit my monthly sales export better than XLOOKUP?

A merge is the stronger tool for a file that comes back every month in the same shape, and The Complete Excel Course with AI Integration teaches both so you can choose file by file. XLOOKUP suits a sheet you keep by hand: a formula per column, answering as you type. In Lesson 163, Power Query joins the sales query to its product and region lookups by code, and every sales row survives the join whether a partner was found or not, so the names arrive beside the figures without a single formula on the sheet. Save next month's export in place of the old one, refresh, and the join is made again. Anyone who can write an XLOOKUP already understands a merge: the same question, asked of a whole table at one go. Power Query ships inside Excel at no extra cost, and among the course's tools only the lessons on Power Pivot, and those on Power Automate, call for Windows.

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.