The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for market research analysts
A survey rarely arrives in one piece: answers in one export, profiles in another, codes awaiting labels and a sample file to reconcile against. The Complete Excel Course with AI Integration teaches the lookups that put it back together, on industry-standard projects, and this page picks out what a researcher needs: XLOOKUP and VLOOKUP by respondent ID, INDEX and MATCH, keys built and split, unmatched IDs caught, and a Power Query merge for every new wave.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Join a survey's answers to its respondent profiles by ID with XLOOKUP, matching exactly and looking left or right of the ID column.
- Read and repair the VLOOKUP formulas in inherited trackers and client files: FALSE for an exact match, a locked table range, and the column number an inserted column breaks.
- Turn answer codes into the labels of a codebook with a lookup table, and read a grid such as a quota plan with a two-way lookup.
- Catch IDs with no match before they reach a table, with XLOOKUP's own if-not-found text and IFERROR round VLOOKUP, then count and list them.
- Look up in any direction and any version of Excel with INDEX and MATCH, for workbooks that travel to clients and fieldwork partners.
- Build a unique key from respondent ID and wave with CONCAT or the ampersand, and split packed panel codes with LEFT, RIGHT and MID.
- Return every row that matches with FILTER where a lookup stops at the first, and list the codes a column holds with UNIQUE.
- Merge each new wave's export with its code tables in Power Query, keeping every row with a left outer join.
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.
Built on HR records, it already has the shape of a survey project: an engagement survey on a sheet of its own beside staff details, department and location tables keyed by code, and lookups that bring each code's name back to every row.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
A Power Query project in the course, and the lookup that repeats itself: a merge with a left outer join sets product and region names beside every sale, the way a codebook's labels can reach each wave's export with no formula filled down.
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, 50 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 data in tables and can write a SUM: the PeopleInsight workbook opens there, with its sheets of staff details, code tables and an engagement survey. Never used an Excel table? Lesson 19 shows how first, and Lesson 1 starts Excel from zero. Already writing VLOOKUP? Move to XLOOKUP at Lesson 69, then on to FILTER and the Power Query merge at Lesson 163.
11 of 186 lessons · 50 min
08 Advanced Excel functions: lookups, text and arrays The lookups, on the PeopleInsight HR workbook with its engagement survey sheet beside staff details and code tables: why lookups beat copying between sheets, VLOOKUP with an exact match and a locked range, XLOOKUP with an if-not-found answer and a two-way lookup, IFERROR for unmatched codes, INDEX and MATCH, then CONCAT and TEXTJOIN to join text, the way a lookup key is built, and LEFT, RIGHT and MID to split packed codes.
- 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 lists every distinct value a column holds, the quick proof that each code in a file has a label waiting, and FILTER returns every row that meets a condition, with AND and OR, where a lookup stops at the first match. 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 A lookup challenge to solve before the answer plays: XLOOKUP fetches each order's product name and per-unit figure from another sheet, then totals and a formatted ID, with an @ in a table reference shown as the reason a lookup breaks.
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
15 SalesFusion: advanced data tools and a Power Query modelling system The lookup that repeats itself: Power Query merges a sales table with product and region tables on their codes, using a left outer join that keeps every row and fills names only where a match exists. Each new wave's export can meet its codebook the same way at a refresh.
- 163 Merge queries in Power Query Look up product and region names with a left join 5 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.
Answers in one export, demographics in another, both keyed by respondent ID: which lookup should a market research analyst learn to join them, and where?
The Complete Excel Course with AI Integration from Coding Liquids teaches all three lookups a survey merge needs, on industry-standard projects designed after talking with people from many different industries. XLOOKUP is the default for new work: it looks left or right of the ID column, matches exactly unless told otherwise, and carries its own answer for an ID with no match (Lesson 69). VLOOKUP is taught first (Lesson 68), because the trackers and client files you inherit are full of it, and INDEX with MATCH follows as the flexible alternative (Lesson 71). All of it runs on the PeopleInsight HR workbook, whose engagement survey sits on its own sheet beside staff details and code tables, the very shape of answers and profiles exported apart. This page picks out 11 lessons, 50 minutes in all, with a starter file and the finished workbook to compare against.
Is XLOOKUP or VLOOKUP the better choice for joining survey files?
XLOOKUP, for any file you build yourself, and The Complete Excel Course with AI Integration shows exactly why on one dataset. VLOOKUP counts columns by number, so when a column is inserted into the lookup table its results change; Lesson 68 inserts one on purpose and watches them turn to zero. Survey exports gain columns from wave to wave as questions are added, so that weakness bites researchers often. XLOOKUP points straight at the column it returns and looks left as easily as right (Lesson 69), and its match is exact by default, where a VLOOKUP needs FALSE typed every time to do the same. XLOOKUP also takes its own text for an ID that is missing, while VLOOKUP needs IFERROR round it (Lesson 70). Keep VLOOKUP for the workbooks that already run on it, or for a recipient whose Excel predates XLOOKUP.
Our long-running trackers are built on VLOOKUP: why has it lasted, and can I keep working inside them?
It lasted because those trackers were built before XLOOKUP reached most desks, and The Complete Excel Course with AI Integration makes sure you can work inside them. Trackers that run for years, templates handed down a team and client files opened on an older Excel all lean on VLOOKUP, while XLOOKUP needs a modern Excel, which the course flags when it comes up. So Lesson 68 teaches VLOOKUP properly before anything newer: a department code looked up against its table, FALSE for an exact match, the table range locked with F4 so the rows below stop returning errors, and column index 3 for a second field. Lesson 70 then wraps those formulas in IFERROR, so an unmatched code reads NOT MATCHED instead of #N/A. You come away able to read an inherited sheet, repair it, and judge whether it is worth moving to XLOOKUP.
Why does my lookup return #N/A for respondent IDs I can see in both files?
Because to Excel the two IDs are not identical, and The Complete Excel Course with AI Integration teaches the usual culprits. Lesson 70 shows how little it takes: one extra letter in a code and the lookup fails, and IFERROR turns the bare #N/A into a message a reviewer understands. A stray space is the next suspect, which TRIM removes (Lesson 42). Then a type clash: an ID stored as a number in one export and as text in the other looks the same and never matches, and COUNT against COUNTA exposes it (Lesson 35). Then the range: in Lesson 68, errors run down the column until the table range is locked with F4. Last, a VLOOKUP with its final argument left out settles for an approximate match, which is why the lesson types FALSE. Those checks explain nearly every unexpected #N/A in a survey merge.
Can a lookup turn answer codes into the labels in my codebook?
Yes, and it is the first job The Complete Excel Course with AI Integration gives a lookup. In Lesson 68, employees carry department codes such as SAL and ENG, a separate table holds each code with its department name, and VLOOKUP writes the name beside every employee; a second VLOOKUP brings back a second field from the same table. A coded survey works the same way: a two-column table of codes and labels for each question, and the label appears beside every answer, so a table reads Very satisfied instead of 5. The two-way lookup of Lesson 69 suits a codebook laid out as a grid, questions across and codes down, returning the label where a row and a column meet. Keep the codebook on a sheet of its own, as PeopleInsight keeps its department and location tables, and a relabelled code changes once for every row.
How do I find respondents who completed the survey but are missing from the sample file?
Look them up and let the misses announce themselves, as The Complete Excel Course with AI Integration teaches in two ways. In Lesson 69, XLOOKUP takes its own text for an ID with no match; the lesson writes n/a, and a researcher might write Not in sample. In Lesson 70, VLOOKUP is wrapped in IFERROR with NOT MATCHED as the message. Either way, every orphan ID now carries a label you can count with COUNTIF or pull into a list with FILTER (Lesson 76). Run the lookup the other way, from the sample to the answers, and the same method lists everyone who never responded, the missing half of a response rate. When the check repeats every wave, the Power Query merge of Lesson 163 keeps every row with a left outer join and leaves the unmatched ones blank, ready to filter.
One respondent ID, several matching rows: what does a lookup return, and how do I get all of them?
The first match only, which is why The Complete Excel Course with AI Integration teaches FILTER beside the lookups. XLOOKUP and VLOOKUP stop at the first row whose ID fits, so a file where an ID repeats, such as one row per brand mentioned, returns one answer and silently drops the rest. FILTER (Lesson 76) returns every row that meets the condition instead, combining conditions with an asterisk for AND and a plus sign for OR, so all the mentions of one respondent, or every respondent in two regions, spill out together in a modern Excel. Where a repeated ID is a fault rather than the design, Remove Duplicates mends the file first (Lesson 23), since an ID should belong to one person, like a passport number. For several fields of one respondent, PeopleInsight copies one XLOOKUP across four columns, pointing each copy at the next return column while it keeps looking up the same ID.
XLOOKUP looks both ways now: what is INDEX and MATCH still good for in survey work?
Two things XLOOKUP cannot always give you, and The Complete Excel Course with AI Integration makes both plain in Lesson 71. MATCH returns a position rather than a value, so it answers a question a lookup cannot ask directly, such as where a question's column sits in a wide export; INDEX then returns whatever sits at the row and column you name. Together they look up in any direction, like XLOOKUP, but in every version of Excel, which matters when a workbook travels to a client or a fieldwork partner on an older one. The lesson builds the pair on named tables, INDEX of the column of HR partner names with MATCH of each row's department code, and shows why the @ takes the current row while the lookup column stays whole. Plenty of established trackers are written this way, so reading INDEX and MATCH fluently is as useful as writing it.
Our respondent IDs pack the country, wave and panel number into one code: can formulas split them or build them?
Both, and The Complete Excel Course with AI Integration teaches each direction on the PeopleInsight workbook. Lesson 73 takes a position code such as DAL-SAL-0001 apart: LEFT reads the first three characters, RIGHT the last four, and MID picks a piece from the middle by its start and length. A panel code built the same way gives up its country and wave as columns you can filter and count. Lesson 72 works the other way, joining cells with CONCAT, the ampersand or TEXTJOIN with a chosen separator. For a researcher that builds a lookup key: respondent ID and wave joined into one value, so a tracker that interviews the same person twice looks up each interview, not only the first. A key that is truly unique is the whole difference between a merge that works and one that quietly repeats a row.
Can a lookup check fieldwork completes against a quota grid of region by age band?
Yes. Checking a quota grid is a job for the two-way lookup that Lesson 69 carries in its own title, and The Complete Excel Course with AI Integration puts it in your hands. A quota grid holds targets with regions down the side and age bands across the top; a two-way lookup returns the target where one row and one column meet, so every cell of your completes table can sit beside its own target. Count the completes per cell with COUNTIFS (Lesson 37) and the gap to target is a subtraction, refreshed whenever the latest interviews are pasted in. The same lookup reads any grid a researcher keeps, such as a sample size by market and wave or a target by segment. Because the targets stay in one grid on their own sheet, a revised quota is typed once and every comparison updates, with no row of the tracker touched.
What has replaced XLOOKUP for joining a new wave's file to its labels?
Nothing on the worksheet, and The Complete Excel Course with AI Integration adds the tool that takes the repetition away. XLOOKUP remains the formula for a lookup inside a sheet; what changes is how often you rebuild it. When every wave arrives as a fresh export needing the same labels, Power Query's merge does the lookup once for the whole table: Lesson 163 merges a sales query with product and region tables on their codes, using a left outer join that keeps every row and fills names only where they match. The next file runs through the same steps at a refresh, with no formula filled down a single column. Further on, the course's Power Pivot lessons relate tables in a data model so that no lookup joins them at all; those lessons need Excel for Windows and sit outside this page's path.
If Copilot or Claude writes my lookup, how will I know the merge is right?
By checking it the way The Complete Excel Course with AI Integration trains you to, before the merged file goes anywhere. Copilot and ChatGPT write formula columns that you then verify (Lesson 95), and Claude in Excel calculates in a chosen cell and repairs a broken column with you, one permitted change at a time (Lesson 104). A lookup that fails loudly is easy to catch; the dangerous one returns a plausible label from the wrong row. Three checks catch it, all from this page: count the not-found messages, so you know how many IDs missed; compare the number of rows before and after the merge; and trace a few respondents by hand back to the source. Having written VLOOKUP, XLOOKUP and INDEX with MATCH yourself, you read an AI draft and approve it, never simply hope it is right.
I have never written a VLOOKUP and most guides lose me: will these lessons make sense to a beginner?
Yes, because The Complete Excel Course with AI Integration explains the problem before the formula. Lesson 67 opens with why lookups matter at all: related facts sit on different sheets, copying between them is slow and invites mistakes, and one shared value such as an ID lets Excel join them across thousands of rows. Lesson 68 then builds a single VLOOKUP one argument at a time, and every later lesson adds one idea to it. The challenge in Lesson 78 asks you to write the lookups yourself before the solution plays, the moment the method sticks. About 50 minutes covers the whole page. If tables are new too, begin with Lesson 19, and the course page has free lessons to watch before you decide. With the instructor support plan, a question about your own survey file goes to the instructor in writing.
Will these lookups work on a Mac, and in a client's older Excel?
On a Mac, yes: every lesson on this page works in Excel on Windows or a Mac, and The Complete Excel Course with AI Integration names Windows only for its Power Pivot and Power Automate sections, neither of which is on this path. Older versions are a matter of function, not machine. VLOOKUP, INDEX with MATCH, IFERROR and the ampersand work in any Excel a client is likely to open. XLOOKUP, UNIQUE and FILTER need a modern Excel, such as Microsoft 365, and the course flags them as they come up. So for a workbook that must open anywhere, build its lookups with INDEX and MATCH or VLOOKUP and keep XLOOKUP for your own analysis; for a file that only needs to be read, paste the merged columns as values and the function behind them no longer matters to the recipient.
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
- Formulas for market research analysts
- PivotTables for market research analysts
- Charts for market research analysts
- Dashboards for market research analysts
- Conditional formats for market research
- Data cleaning for market research
- Data validation for market research
- Excel tables for market research
- Text functions for market research
- Date functions for market research
- Dynamic arrays for market research
- Power Query for market research
- Power Pivot and DAX for market research
- Macros and VBA for market research
- Power Automate for market research
- Copilot in Excel for market research
- ChatGPT for Excel for market research
- Claude in Excel for market research