The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for sales teams

A sales export is mostly codes: a product ID on each order line, an account ID, a rep's initials. The names, regions and figures that turn it into a report sit in other tables, and copying them across by hand is where errors start. The Complete Excel Course with AI Integration teaches VLOOKUP, XLOOKUP and INDEX and MATCH on industry-standard projects, and this page gathers those lessons with the code clean-up beside them, the order challenge and the Power Query 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:

  • Fill an order export with product names and per-unit figures from a product list with XLOOKUP, then multiply by the quantity for each line's total.
  • Give every deal its rep's region or territory from a separate team sheet, with the table range locked so the formula fills down a long list without errors.
  • Choose between VLOOKUP, XLOOKUP and INDEX and MATCH for each file, knowing which survives an inserted column, which reads to the left and which runs in any version.
  • Read one figure out of a grid, such as a rep's target for one month, with a two-way lookup.
  • Show a plain message instead of #N/A when an account or product code has no match, with XLOOKUP's own if-not-found answer or with IFERROR.
  • Split a packed product or order code into its parts with LEFT, RIGHT and MID, and build a combined key with CONCAT, TEXTJOIN or the ampersand.
  • Pull every order of one account into its own list with FILTER, rather than only the first match a lookup returns.
  • Match each new sales export to its product and region lists in Power Query, with a left outer join that keeps every sale.

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.

    The lookup lessons are learnt on this workbook's codes: department and location IDs turned into names, partners and regions with VLOOKUP, XLOOKUP and INDEX and MATCH, then broken on purpose to watch IFERROR take over. The section closes on an Orders sheet and a Products sheet, the lookup a sales team writes more than any other.

  • Project 12

    SalesFusion

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

    Its merge lesson is a sales lookup done once for the whole table: product and region details join every sale through a left outer join, nothing is lost where a code has no match, and next year's file takes the same merges with no formula filled down.

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, 47 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 already write SUM and IF; Lesson 10 is worth a few minutes first if F4 and locked ranges are new to you. New to Excel altogether? Begin at Lesson 1 and come back once formulas feel natural. Writing VLOOKUP every day already? Jump to Lesson 69 for XLOOKUP and the two-way lookup, then to Lesson 163 for the merge that ends filling lookups down.

11 of 186 lessons · 47 min

01 Microsoft Excel fundamentals: building a foundation from scratch 1 of 13 lessons · 3 min Absolute references, the fix behind most broken lookups: F4 locks the lookup table's range so a formula filled down a long order list keeps pointing at the whole table, and a mixed reference locks only the column or only the row.
  1. 10 Relative vs absolute references in Excel Dollar signs and mixed references 3 min
08 Advanced Excel functions: lookups, text and arrays 7 of 12 lessons · 31 min The lookup core: why lookups replace copying between sheets, VLOOKUP with an exact match and its column number, XLOOKUP with its own if-not-found answer and a two-way lookup, IFERROR for codes with no match, INDEX and MATCH, then CONCAT, TEXTJOIN, LEFT, RIGHT and MID for building and splitting codes. The keys are employee and location codes; product and account IDs behave 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 1 of 12 lessons · 5 min FILTER, for the times one match is not enough: every row that meets a rule, with AND and OR conditions, spilled into a list of its own. The orders of one account come out the same way. It needs a modern Excel.
  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 The challenge that looks most like sales work: an Orders sheet completed from a Products sheet, the product name and the per-unit figure fetched by XLOOKUP, a total for every line, and the order IDs rewritten in a set style.
  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 Power Query's lookup, the merge: sales rows matched to product and region lookup files on their codes with a left outer join, so every sale stays and gains its details. Kept as a step of the query, it runs again on each new export without a formula filled down.
  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.

Product IDs, account IDs, rep codes: what can XLOOKUP and VLOOKUP turn them into for a sales report?

Into the names and figures a report can use: the product name and per-unit figure behind a product code, the region behind a rep, the owner or tier behind an account. The Complete Excel Course with AI Integration from Coding Liquids teaches VLOOKUP, XLOOKUP and INDEX and MATCH on industry-standard projects designed after talking with people from many different industries, then closes the run with a challenge that is pure order work: an Orders sheet completed from a Products sheet by XLOOKUP, with a total for every line (Lesson 78). SalesFusion carries the same idea into Power Query, matching every sale to its product and region details in one merge (Lesson 163). This page lines up the 11 lessons behind that work, 47 minutes in all, with starter and finished files to practise on before a lookup ever touches your own pipeline.

Some reps open the commission file in an older Excel: should its lookups be XLOOKUP, VLOOKUP or INDEX and MATCH?

Pick by who opens the file, and The Complete Excel Course with AI Integration teaches all three on one dataset so the choice is easy to make. XLOOKUP is the stronger formula: it reads left or right, points straight at the column it returns and gives its own answer when a code is missing, and Lesson 69 locks it with F4 and fills it across four columns. It needs a modern Excel, which the course points out, so a file shared with colleagues on an older version is safer on VLOOKUP, taught with FALSE for an exact match in Lesson 68, or on INDEX and MATCH (Lesson 71), which runs in every version and reads columns on either side of the code. Knowing all three also means an inherited commission or territory file never stops you: whichever function its author chose, you can read it, repair it and decide whether it deserves a rebuild.

Someone added a column to the rep list and every region on the deal sheet went wrong: why, and how is it prevented?

VLOOKUP counts columns by number, so an inserted column shifts what that number points at, and The Complete Excel Course with AI Integration shows it happening. In Lesson 68 a VLOOKUP fetches department names with column number 2, then a column is inserted into the lookup table and the results turn to zero until the insert is undone. Nothing warns you; the sheet simply reports the wrong field. XLOOKUP avoids the trap because it names its return column, so an added column leaves it pointing at the right one (Lesson 69), and INDEX and MATCH does the same in any version (Lesson 71). The same lessons cover the other classic failure, a table range left unlocked, which works on the first row and returns errors further down until F4 locks it (Lesson 10). On a rep list that sales operations keeps extending, that is the difference between a report that holds and one that quietly misleads.

Can a lookup show which accounts on our target list have no deals in the CRM export?

Yes: a lookup that finds no match can say so in plain words, and The Complete Excel Course with AI Integration teaches two ways to make it. XLOOKUP takes an if-not-found answer as one of its arguments, so a target account missing from the export reads n/a, or any message you choose, instead of #N/A (Lesson 69). VLOOKUP needs IFERROR around it, and Lesson 70 breaks a code on purpose to show both cases: one changed code and the lookup fails, then IFERROR turns the error into NOT MATCHED. Run the lookup down the target list against the CRM's account column, filter on the message, and the accounts with no deals form a list of their own for the next prospecting push. In Power Query a left outer join does the same for a whole table (Lesson 163): every row of the first table stays, and the ones with no partner come back with empty columns, easy to filter.

Can XLOOKUP bring a product's name and per-unit figure onto every order line and work out the line total?

Yes, and the lookup challenge of The Complete Excel Course with AI Integration is exactly that job. In Lesson 78 an Orders sheet holds product IDs and quantities, and a Products sheet holds the catalogue. One XLOOKUP fetches each order's product name, a second fetches its per-unit figure, and a multiplication by the quantity gives the line total. The lesson also clears an error caused by an @ in a table reference, which takes only the current row's value and so breaks a lookup that needs the whole column, a fault that catches many people the first time they write lookups inside a table. Finally the order IDs are rewritten in a set style by joining a text prefix to them. On your own export the pattern is the same: a code column, a reference table and two or three lookups turn a bare list of IDs into an order report a sales manager can read.

Our quota sheet has reps down the side and months across: can one formula read a rep's target for a month?

Yes: that is a two-way lookup, and Lesson 69 of The Complete Excel Course with AI Integration names it in its title. A two-way lookup finds the value where a row and a column cross, so one formula takes a rep's name and a month and returns the target sitting in that cell of the grid, with no hunting along rows by eye. The same lesson builds the plain XLOOKUP it starts from, locked and filled down. INDEX, which returns whatever sits at a given row and column of a table, and MATCH, which finds a position, are taught together in Lesson 71: the classic pair for the same job in any version of Excel. Put the target beside the rep's actual sales and attainment is a division away. Because the grid is read rather than copied, next quarter's targets drop into the same layout and every figure that depends on them updates without a formula rewritten.

Targets are set per rep and per product: how do I fetch the right one when no single column identifies it?

Join the two parts into one key, or use a function that takes several conditions; The Complete Excel Course with AI Integration teaches both routes. CONCAT, TEXTJOIN and the ampersand join cells into one text (Lesson 72), so a rep and a product become a single key on both sheets and an ordinary XLOOKUP matches it. FinanceGuard works this way at scale: each row carries one Key holding the month, the department and the category, and SUMIFS against that key brings in the plan and the actual figure (Lesson 117). Where every pair appears once, SUMIFS with two conditions returns the figure directly, with no helper column at all (Lesson 37). And where you want every matching row rather than one figure, FILTER takes several conditions joined as AND (Lesson 76). Which to use depends on the sheet in front of you, and holding all of them means you never force the wrong tool onto it.

Commission rates sit in a table by plan: should a lookup or IFS pick each rep's rate?

Each has its place, and The Complete Excel Course with AI Integration gives you both. Where every rep belongs to a named plan, an exact-match XLOOKUP fetches that plan's rate from a small rate table (Lesson 69), and a change to the plan is one cell edited in the table, not a formula rewritten. Where the rate depends on how much was sold, the course's tool is IFS, which tests thresholds in order and returns the first band reached, the way Lesson 32 grades sales from Low up to its top band; the lookup lessons themselves use exact matches, the safe choice for codes and plan names. Either way the rates live in cells of their own, locked with F4 when a formula fills down (Lesson 10), and SUMIFS supplies each rep's total for the period (Lesson 37). The result is a commission sheet a sales manager can audit in a minute, because every rate is visible.

The CRM and the finance system write account IDs differently: why does the lookup fail, and what fixes it?

Because a lookup matches its key exactly, and The Complete Excel Course with AI Integration shows how little it takes to break one. In Lesson 70 a single changed code turns a lookup's results into errors, which is why the lesson pairs every lookup with a readable message, NOT MATCHED through IFERROR or the if-not-found answer of XLOOKUP, so the failed rows stand out instead of hiding among real values. The usual causes in sales data are a trailing space, a prefix one system adds and the other drops, or an ID held as text on one side and as a number on the other. TRIM strips the stray spaces (Lesson 42), LEFT, RIGHT and MID cut a prefix or a suffix away (Lesson 73), and Power Query fixes the data types of a whole export at once (Lesson 158). Clean the key first, and any of the three lookups holds.

Our product codes pack category, region and number together: can formulas split them or build them?

Yes, and The Complete Excel Course with AI Integration teaches both directions on a code of exactly that kind. Lesson 73 takes a position code built from a location, a department and an ID number and splits it with three functions: LEFT reads the first three characters, RIGHT the last four, and MID reads three characters from the fifth. Filled down, every code becomes three columns you can look up, filter or total by. Lesson 72 goes the other way with CONCAT, TEXTJOIN and the ampersand, joining parts into one value with a separator, which is how a consistent SKU or a combined lookup key is built. The challenge in Lesson 78 applies the same idea to order IDs, rewriting each in a set style with a text prefix. A product code that holds category, region and number then becomes three facts you can report on, not a string to squint at.

A key account has dozens of orders: can one formula list them all, not just the first one XLOOKUP finds?

Yes: FILTER returns every matching row, and The Complete Excel Course with AI Integration teaches it in Lesson 76. Where XLOOKUP stops at the first match, FILTER spills all the rows that meet a rule into a list of their own, updated whenever the source changes. The lesson builds it in steps: one condition, then two joined with an asterisk as AND, then alternatives joined with a plus sign as OR, with a heading above each result and a bracket error put right along the way. On an order export, one FILTER gives every order of an account, every order of that account above a set size, or every order from either of two regions. It needs a modern Excel, as the course notes when FILTER appears. For an account review, set that list beside a SUMIFS total of the same orders and the meeting has both the detail and the figure.

The same lookups get filled down every week's CRM export: can Power Query take the job over?

Yes, and this is where The Complete Excel Course with AI Integration moves lookups out of the worksheet. In Lesson 163 the SalesFusion sales query is merged with a products file on the product ID and with a regions file on the region code, using a left outer join that keeps every sale and adds details only where a code matches, so no row is ever lost. A merge is Power Query's version of VLOOKUP, done once for the whole table and saved as a step. Next week's export runs through the same steps at a refresh, and nothing is filled down, copied or forgotten. The lessons after it reuse the whole pipeline on a second year's file and stack the two years (Lesson 164, Lesson 165), and the Monday hour spent filling lookups down goes back to selling.

Should a sales operations analyst skip lookups and go straight to a Power Pivot data model?

Keep both: each has its own job, and The Complete Excel Course with AI Integration teaches them in the order they pay off. Lookups are the everyday tool for a single sheet, quick to write and easy for a colleague to read (Lesson 68 to Lesson 71). A Power Query merge handles the same join for a whole export that arrives again and again (Lesson 163). A data model goes one step further: in Lesson 169 the sales table and its product and region lookups are related in Power Pivot's Diagram View, one to many, so PivotTables read all three without a single lookup column, and the relationship takes the place of a VLOOKUP dragged down thousands of rows. Power Pivot needs Excel for Windows, while lookups and merges run on a Mac too. An analyst who knows all three picks the lightest tool that does the job, and that judgement starts with the lookups on this page.

Where can a rep practise lookups on orders and products before touching the live pipeline file?

Inside the course, on files made for it. The Complete Excel Course with AI Integration gives you the PeopleInsight starter workbook to write every lookup yourself and the finished one to check against, and its codes are tidy enough to learn on yet real enough to break: a changed code in Lesson 70 shows exactly what a mismatch looks like before you meet one in your own data. The Ninja Challenge then hands you an Orders sheet and a Products sheet with empty columns (Lesson 78), and you complete them before the solution plays. The whole path is short, 47 minutes from the first lesson to the merge, so a lookup can be at work on your own export the week you start. With the instructor support plan, a lookup that refuses to work on your own file goes to the instructor in writing, and lifetime access keeps every lesson here for the next file that needs one.

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.