The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for marketing teams
Campaign data never lives in one table: spend comes from the ad platform, budgets and owners from the media plan, orders from elsewhere, and copying between them breaks reports. The Complete Excel Course with AI Integration teaches the lookups that join them on a shared ID, on an industry-standard workbook, and this page picks out those lessons for marketing teams: clean keys, VLOOKUP, XLOOKUP, IFERROR, INDEX and MATCH, joined keys, FILTER and a lookup challenge.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Join an ad platform export to the media plan by campaign ID with XLOOKUP, so each row of spend gains its owner, channel group and budget without copy and paste.
- Write VLOOKUP with an exact match and a locked table range, and repair the inherited campaign templates that still run on it.
- Show a plain message such as Unmapped for an ID with no match, through XLOOKUP's if not found argument or IFERROR, so a missing campaign stands out before the totals go out.
- Look up to the left with XLOOKUP or with INDEX and MATCH when the ID sits to the right of the detail you need.
- Match on two conditions, such as campaign and month, through a key joined with CONCAT or TEXTJOIN, and return every matching row with FILTER.
- Clean keys with TRIM and take the matching part out of a longer code with LEFT, RIGHT and MID, so lookups stop failing on spaces and extra characters.
- List every distinct campaign or source in an export with UNIQUE, to check that a mapping table covers them all.
- Keep mapping tables as Excel tables, so a new campaign joins the lookup range the moment it is entered.
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.
The workbook the lookups are learnt on, built from separate employee, department and location sheets: names fetched by ID with VLOOKUP, location details by code with XLOOKUP and a not-found answer, and the same detail again through INDEX and MATCH. Swap staff IDs for campaign IDs and the method carries straight over to a media plan and an ad export.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
A lookup by key at full size: budget and actual rows matched on a key that holds the month, the department and the category, brought side by side with SUMIFS and split apart again with TEXTSPLIT. Marketing is among its departments, so the model reads like a media budget set against actual spend.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Where a lookup becomes a merge: Power Query adds product and region names to every sales row with a left outer join, and the join reruns on each new export at a refresh, the route to take once the same campaign exports are matched every week.
-
Project 02
Dunder Michael Paper Company employee database
The list on which keys get cleaned: stray spaces trimmed from job titles and emails, capitals made consistent and the clean values pasted back, so nothing leans on a helper column. Every lookup key in a campaign file needs that preparation first.
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, 58 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 and keep your data in tables: the lookup run opens there with the problem it solves. Not using tables yet? Take Lesson 19 first, then Lesson 42 to clean keys before they are matched. New to formulas altogether? Lesson 8 is the place to begin, and Lesson 1 if Excel itself is unfamiliar. Comfortable with VLOOKUP already? Skip ahead to Lesson 69 for XLOOKUP and its not-found answer.
12 of 186 lessons · 58 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) Excel tables: a range that takes in new rows by itself, with structured references a lookup can point at. Keep the media plan or a mapping of codes as a table and a new campaign joins the lookup range the moment it is typed.
- 19 Excel tables Create and format a table, structured references and total row 8 min
05 Text functions and data validation (enhancing data quality) TRIM, UPPER, LOWER and PROPER on the employee list, with the results pasted back as values: clean keys before any lookup, because a trailing space is enough to make an ID miss its match.
- 42 TRIM, UPPER, LOWER and PROPER in Excel Clean messy text and fix capitalisation 6 min
08 Advanced Excel functions: lookups, text and arrays The lookup run on PeopleInsight: why lookups beat copying between tabs, VLOOKUP with an exact match, XLOOKUP with a not-found answer and a two-way lookup, IFERROR for lookup errors, INDEX and MATCH, then CONCAT and TEXTJOIN to build a key and LEFT, RIGHT and MID to take a code apart. The keys are employee and location codes; campaign IDs behave the same.
- 67 Start here Lookup functions in Excel The PeopleInsight HR dataset and why lookups matter 2 min
- 68 VLOOKUP in Excel Find employee data across sheets with exact match 4 min
- 69 XLOOKUP in Excel Exact match, if not found and two-way lookup 6 min
- 70 IFERROR in Excel Handle lookup errors in VLOOKUP and XLOOKUP formulas 3 min
- 71 INDEX and MATCH in Excel A flexible alternative to VLOOKUP 6 min
- 72 CONCAT and TEXTJOIN in Excel Combine employee names and text with a delimiter 3 min
- 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 UNIQUE to list every distinct value a key column holds, the checklist a mapping table must cover, and FILTER with AND and OR to return every matching row rather than the first. Both need a modern Excel.
- 75 UNIQUE function in Excel Extract a distinct list with dynamic arrays 6 min
- 76 FILTER function in Excel Dynamic array filtering with AND and OR criteria 5 min
08 Advanced Excel functions: lookups, text and arrays The lookup Ninja Challenge: an Orders sheet completed from a Products sheet with XLOOKUP, a total worked out from the looked-up figure and an ID rebuilt with a text prefix, tried alone before the solution.
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
Instructors
Who teaches it.
Instructor, Excel with AI
Virginia Thorn
Emmy Award winner. Teaches Excel with AI at Coding Liquids.
Questions
Asked before starting.
Why would a marketing team learn XLOOKUP and VLOOKUP, and which course teaches both on real files?
Because nearly every marketing report joins two lists, and The Complete Excel Course with AI Integration from Coding Liquids teaches the formulas that do it on PeopleInsight, an industry-standard workbook designed after talking with people from many different industries. You learn VLOOKUP with an exact match (Lesson 68), XLOOKUP with its own answer for a missing code and a two-way lookup (Lesson 69), IFERROR for lookup errors (Lesson 70) and INDEX with MATCH (Lesson 71), each pulling details from one sheet onto another by a shared ID. The rows there are employees; a campaign ID, an order number or a lead's email plays the same part in an ad export or a media plan. This page gathers 12 lessons, 58 minutes in all, with starter and finished files, from a table that grows by itself to a lookup challenge you solve alone.
Marketing exports gain and lose columns all the time: is XLOOKUP really safer than VLOOKUP there?
Yes, and The Complete Excel Course with AI Integration shows you why instead of asking you to take it on trust. In Lesson 68 VLOOKUP fetches department names by a column number, then a column is inserted into the lookup table and the results turn to zeros, because the number now points at a different column. Lesson 69 does the same job with XLOOKUP, which points at the lookup column and the return column directly, so an inserted column moves nothing and the lookup can read to the left or the right. For an ad export whose layout shifts whenever someone adds a metric, that difference decides whether the weekly report is right. XLOOKUP also looks for an exact match unless told otherwise, where VLOOKUP needs FALSE typed every time, and the lesson locks both ranges with F4 so the formula survives being filled down.
Our older templates and agency files are full of VLOOKUP: is it still worth knowing?
Yes, because those files will keep landing on your desk, and The Complete Excel Course with AI Integration teaches VLOOKUP properly before it moves on. Lesson 68 covers the parts that make or break it: FALSE for an exact match, the table range locked with F4 before filling down, and a column index counted from the left, which is why an inserted column throws it off. Knowing that, you can repair an inherited campaign template instead of rebuilding it, and share files with colleagues whose Excel predates XLOOKUP, where VLOOKUP still works. People keep using VLOOKUP out of habit and for that reach into older versions. The course gives you both, plus INDEX and MATCH (Lesson 71), which also runs in older versions and reads in any direction, so the choice in each file is yours to make.
What should a report show when a campaign ID in the export has no match in the plan?
A plain message, never a raw #N/A, and The Complete Excel Course with AI Integration teaches two ways to give it. XLOOKUP has its own if not found argument: in Lesson 69 a location code missing from the lookup table returns n/a instead of an error, and in a campaign sheet that argument could say Unmapped, so a new campaign nobody added to the plan stands out at a glance. Lesson 70 then handles lookup errors in VLOOKUP and XLOOKUP formulas with IFERROR: a code is changed so it no longer matches, errors appear, and wrapping each formula in IFERROR with NOT MATCHED as its message turns them into words a reviewer understands. One extra letter in a code is enough to break a match, so that message doubles as your list of IDs to correct before the totals are sent.
The campaign ID sits to the right of the name in our export: can a lookup read leftwards?
Yes, and The Complete Excel Course with AI Integration teaches two lookups that do it. XLOOKUP takes the column to search and the column to return as separate ranges, so the return column can sit on either side (Lesson 69). INDEX and MATCH split the work between them: MATCH finds the row where an ID sits, giving back a position rather than a value, and INDEX returns whatever stands in that row of the column you name (Lesson 71). The lesson builds it step by step, INDEX alone, MATCH alone, then the two together over named tables, filled down every row. VLOOKUP cannot do this, because it only searches the first column of its range and reads to the right. With either alternative nobody has to rearrange the export before the lookup works, so the file stays exactly as the platform produced it.
Can a lookup match on two things at once, such as campaign and month?
Yes, and The Complete Excel Course with AI Integration teaches the pieces that make it work. The simplest route is a key: join the campaign and the month into one text value with the ampersand, CONCAT or TEXTJOIN (Lesson 72) in both tables, then look that key up with XLOOKUP. FinanceGuard shows the idea at full size: each budget and actual row carries a key holding the year and month, the department and the category, SUMIFS against that key sets budget beside actual, and TEXTSPLIT takes the key apart again (Lesson 117). When you need every row that meets two conditions rather than one value, FILTER multiplies the conditions to mean AND (Lesson 76). A multi-criteria XLOOKUP written as a single formula has no lesson of its own; the key method does the same job and is easier to check.
Can one formula bring back several details, such as the channel and the budget together?
Yes, and The Complete Excel Course with AI Integration gives you two ways to do it. FILTER returns whole rows: in Lesson 76 it spills every matching record with all its columns, for one location, one job level, two conditions joined by AND and two joined by OR, so a campaign's full line from the plan appears in one go. When you want one detail per column beside each row, the XLOOKUP lesson fills city, state, region and work arrangement by copying one formula across and moving its return range a column each time (Lesson 69), a pattern you set once and then fill down. FILTER needs a modern Excel, as the course points out. The column-by-column method is also the easier one to audit when a single detail looks wrong, because each formula answers for one column only.
Stray spaces and messy codes keep breaking our lookups: does the course deal with that?
Yes, because a lookup is only as good as its keys, and The Complete Excel Course with AI Integration cleans them before it matches them. TRIM strips the spaces at either end of a value, the kind that turn one campaign ID into two, and the cleaned text is pasted back as values (Lesson 42). LEFT, RIGHT and MID pull the matching part out of a longer code, the way Lesson 73 splits a position code into a location, a department and a number, so a campaign code carrying extra parts can still meet its plan. Lesson 70 shows that one stray letter breaks a match and gives the failures a readable label so they can be found. Capitals alone do not stop XLOOKUP or VLOOKUP matching, but spaces and second spellings do, which is why the clean-up comes before the formula.
Can a lookup give every campaign a channel group, an owner or a budget line from a mapping table?
Yes, and that is the lookup marketing teams write most often. The Complete Excel Course with AI Integration teaches it on exactly that shape: in Lesson 68 a short lookup table turns department codes such as SAL, ENG and MKT into department names and the name of the HR business partner for each. Swap the codes for source or medium values and the names for channel groups, owners or budget lines, and one VLOOKUP or XLOOKUP gives every row of your export its grouping. Keep the mapping as an Excel table (Lesson 19) and new entries join it as they are added, while UNIQUE lists the values the mapping must cover (Lesson 75). Banding by size, such as spend tiers, uses IFS in the course (Lesson 32), since approximate-match lookups are not taught.
Can a lookup fetch a figure onto every row and then calculate with it, such as a daily budget beside daily spend?
Yes, and that is how spend, budgets and results end up on one row. In The Complete Excel Course with AI Integration the lookup Ninja Challenge (Lesson 78) has you complete one sheet from another: XLOOKUP fetches each item's name by its ID, a second XLOOKUP fetches its per-unit figure, and a plain multiplication turns that into a line total. You attempt it alone first, then compare with the solution, and on the way you meet a classic fault, an @ in a table reference that limits a lookup to the current row. For a marketing team the pattern is everyday work: fetch each campaign's daily budget onto the spend export and subtract to see pacing, or fetch a product's margin onto every sale a campaign drove and multiply to see what the campaign truly earned, then hand the finished rows to a PivotTable.
Does a marketing report need lookups at all when a PivotTable can be built straight from the export?
Yes, because they do different jobs, and The Complete Excel Course with AI Integration teaches both. A PivotTable summarises rows that already sit in one table: spend by channel, conversions by month. A lookup gets the right details into that table first, such as each campaign's owner, channel group or budget from the plan, so the PivotTable has something to group by. The course builds its PivotTables on a single sales table in their own section, while PeopleInsight, the lookup workbook, keeps its details on separate sheets, the very problem lookups exist to solve (Lesson 67). For large exports joined every week, a Power Query merge is the next step (Lesson 163), and a Power Pivot data model relates whole tables without any lookup column (Lesson 169), which needs Excel for Windows.
With FILTER, Power Query and AI assistants around, is XLOOKUP still worth a marketer's time?
Yes, and The Complete Excel Course with AI Integration builds on XLOOKUP rather than past it, because each newer tool extends it instead of replacing it. Look at what has arrived beside it: FILTER returns every matching row where XLOOKUP returns the first (Lesson 76), UNIQUE lists each campaign or channel once so you know what a mapping table must cover (Lesson 75), and AI assistants now draft formulas on request. The course puts that last part to work as well: Copilot and ChatGPT write formula columns that you verify (Lesson 95), and Claude in Excel repairs a broken column with you (Lesson 104). None of them removes the need to read a lookup and know when it is wrong, and that judgement is exactly what the PeopleInsight lessons build, one formula at a time, on files you can check.
What are the downsides of XLOOKUP for a marketing team?
Two, and The Complete Excel Course with AI Integration prepares you for both. XLOOKUP needs a modern Excel: open the file in an older version and the formula fails, so a workbook bound for an agency or a client on an older Excel is safer with VLOOKUP or INDEX and MATCH, both taught alongside it (Lesson 68, Lesson 71). And it returns a single match, the first it finds, so a campaign that appears on several rows gives back only its first row; FILTER returns them all (Lesson 76) and SUMIFS totals them (Lesson 37). The course flags the functions that need a modern version as they appear, and the lessons lock ranges with F4 so a filled-down lookup does not drift. Beyond those two points, XLOOKUP is the better default for every new marketing file you build.
How long until I can join our campaign exports myself, and can I follow along on a Mac?
About 58 minutes, and yes, every lesson on this page works in Excel on Windows or on a Mac. The Complete Excel Course with AI Integration needs Windows only for Power Pivot and Power Automate, and neither is on this path; XLOOKUP, FILTER and UNIQUE need a modern Excel, as the course says when they appear. The order is built for early use: by Lesson 70 you can join two tables by ID and label every miss, enough to attach plan data to an ad export the same week. INDEX and MATCH, text keys, FILTER and the Ninja Challenge then make the skill solid. You keep the finished PeopleInsight workbook as a reference beside your own files, with lifetime access to every lesson and a Certificate of Completion once the whole course is done.
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.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
More skills for this job
- Excel formulas for marketing teams
- Pivot tables for marketing teams
- Excel charts for marketing teams
- Excel dashboards for marketing teams
- Conditional formatting for marketing
- Data cleaning for marketing teams
- Data validation for marketing teams
- Excel tables for marketing teams
- Text functions for marketing teams
- Date functions for marketing teams
- Copilot in Excel for marketing teams
- ChatGPT for Excel for marketing teams
- Claude in Excel for marketing teams