The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for compensation analysts

Bands, survey rates and merit matrices all sit on other sheets, and every pay decision needs them on the employee's row. The Complete Excel Course with AI Integration teaches the lookups that bring them there on PeopleInsight, an industry-standard HR workbook, and this page picks out those lessons in the order a benchmarking file needs them: exact matches, XLOOKUP, error messages, INDEX and MATCH, the text work on codes, then UNIQUE and FILTER checks.

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 grade's band minimum, midpoint and maximum onto every employee row with one XLOOKUP copied across, its ranges locked with F4.
  • Write VLOOKUP with FALSE for an exact match, and see why an inserted column or an approximate match returns the wrong band without a warning.
  • Look up a key that sits to the right of the value you need, in a survey extract exactly as it arrives, with XLOOKUP or INDEX and MATCH.
  • Read a merit matrix by rating and range quartile with a two-way lookup, after IFS turns each range position into its quartile label.
  • Keep unmatched jobs visible with XLOOKUP's if-not-found message or IFERROR, and count them before a benchmark report goes out.
  • Match on job code and location together with a joined key or FILTER, and reshape codes with LEFT, RIGHT, MID and CONCAT so internal and survey codes meet.
  • Prove the band table covers every job code with UNIQUE, and list everyone below a band minimum or above its maximum with FILTER.

Projects

What you will build.

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

  • Project 06

    PeopleInsight HR workbook

    Employee data joined across sheets with one formula.

    The nearest thing in the course to an HRIS extract: department and location codes to resolve into names and regions, a compensation sheet beside the records, packed position codes to split, and missing matches shown in words, the same kind of material your band and survey lookups will meet.

  • Project 12

    SalesFusion

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

    Lookups at table scale: a Power Query merge adds names to every row of a coded table with a left join (Lesson 163) and repeats it at each refresh, the route for survey extracts too large to fill down by formula.

  • Project 11

    FormatWizard

    One click that checks a whole sheet for you.

    Built to check a sales sheet, its loop and colour flags carry straight over: run on a pay file after the lookups, the same kind of macro marks every row left unmatched or blank, so the check happens before the file leaves your desk.

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 10 of them, 44 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 write SUM and IF with confidence: PeopleInsight opens there, and every lookup in this path runs on it. Not yet locking references with F4? Watch Lesson 10 first, since every lookup range here is locked. New to Excel? Begin at Lesson 1. Already writing VLOOKUP every day? Go straight to Lesson 69 for XLOOKUP and the two-way lookup, then Lesson 75 for the checks.

10 of 186 lessons · 44 min

08 Advanced Excel functions: lookups, text and arrays 5 of 12 lessons · 21 min The lookup core on PeopleInsight: why lookups beat copying between tabs, VLOOKUP with FALSE and a locked table, XLOOKUP with an if-not-found message and a two-way lookup, IFERROR for codes that do not match, and INDEX with MATCH for keys that sit anywhere. The lessons join department and location tables to employee records; a band table or a survey extract joins 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
08 Advanced Excel functions: lookups, text and arrays 2 of 12 lessons · 10 min The text work around a lookup key: CONCAT, the ampersand and TEXTJOIN to join a job code to a location or rebuild a code in another format, and LEFT, RIGHT and MID to take a packed position code apart.
  1. 72 CONCAT and TEXTJOIN in Excel Combine employee names and text with a delimiter 3 min
  2. 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 for the checks a single lookup cannot make: a distinct list of codes to test against the band table, and every row that meets two conditions at once. Both need 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 A lookup challenge you solve before watching the answer: XLOOKUP across sheets for names and per-unit figures, a total worked out from them and an ID rebuilt with joined text.
  1. 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 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.

Salary bands, survey matches, merit grids: is XLOOKUP or VLOOKUP the lookup a compensation analyst should rely on, and which course teaches both?

Use XLOOKUP for anything you build from now on and keep VLOOKUP for the files that still run on it: The Complete Excel Course with AI Integration from Coding Liquids teaches both, plus INDEX and MATCH, on PeopleInsight, an industry-standard HR workbook designed after talking with people from many different industries. Its sheets hold employee records, compensation, engagement survey results and department and location tables, and the lessons join records to those tables by their codes, the way a pay analyst joins bands and survey rates to job data: VLOOKUP with an exact match (Lesson 68), XLOOKUP with if-not-found and a two-way lookup (Lesson 69), IFERROR (Lesson 70) and INDEX with MATCH (Lesson 71). XLOOKUP needs a modern Excel, while VLOOKUP and INDEX with MATCH open in older copies too, which is why knowing all three matters when files travel to managers. This page picks out 10 lessons, 44 minutes in all, ending on a lookup challenge.

Can a forgotten FALSE in VLOOKUP really put an employee in the wrong salary band?

Yes, and quietly: without FALSE, VLOOKUP looks for an approximate match and can return a neighbouring row with no error to warn you. The Complete Excel Course with AI Integration builds the right habit from the first formula: Lesson 68 writes VLOOKUP with the department code, the locked table, the column number and FALSE for an exact match, then fills it down the employee list. XLOOKUP in Lesson 69 is set to an exact match too, which is also its own default, so a grade code either finds its band or says plainly that it found nothing. In a pay file that difference is everything: a wrong band moves compa-ratio, range position and the merit increase built on them, and nothing on screen looks wrong. After any new lookup, check a handful of rows against the source table by eye, the simplest control there is, before the column feeds a single calculation.

Our band table gains a column every cycle: will that break the lookups?

It breaks VLOOKUP and leaves XLOOKUP untouched, and The Complete Excel Course with AI Integration lets you watch both happen. In Lesson 68 a column is inserted into the lookup table and the VLOOKUP results turn to zeros, because VLOOKUP counts its way to the column by number and the count now lands on the wrong column; the change is undone, and the risk is plain. Lesson 69 then points XLOOKUP straight at its return column, so a new column beside it, a new market percentile or a new effective date, changes nothing. INDEX and MATCH share that strength, since INDEX is handed the column it returns (Lesson 71). For a band table that grows each cycle, that settles it: XLOOKUP or INDEX with MATCH for anything new, and a careful look at every old VLOOKUP before a column goes into a table it reads.

The job code sits to the right of the grade in our survey extract: can a lookup still return the grade?

Yes, with XLOOKUP or INDEX and MATCH, and The Complete Excel Course with AI Integration teaches both for exactly this layout. VLOOKUP can only search the first column of its table and return something to the right of it, so a key in the wrong place means rearranging the sheet. Lesson 69 shows XLOOKUP searching one column and returning from another on either side, because its lookup range and its return range are given separately. Lesson 71 builds INDEX and MATCH: MATCH finds the row where the code sits and returns its position, INDEX returns the value at that position from any column, and the pair fills down the list with an @ reference for the current row's code. Survey extracts arrive in whatever layout the provider chose; with either method you take them as they come and never cut and paste columns into VLOOKUP's order.

How do I bring the band minimum, midpoint and maximum onto every employee row in one pass?

One XLOOKUP, copied across and filled down, and The Complete Excel Course with AI Integration walks through that very move. Lesson 69 looks up each employee's location code and returns the city, repeats it for the state, then copies the formula across for region and work arrangement, sliding the return range one column each time. The lesson resets the lookup cell by hand when it slides with the copy; a reference with the column locked and the row free, from Lesson 10, keeps it in place for you. Locking the lookup and return ranges with F4 matters just as much, since errors or zeros lower down usually mean a range that moved. Point the same pattern at a band table keyed by grade and minimum, midpoint and maximum stand beside every salary, ready for compa-ratio and range position, and they follow any later change to the band table.

Our merit matrix has quartile columns, but each employee has a range position percentage: how does a lookup bridge the two?

With a label first and an exact two-way lookup second, both from The Complete Excel Course with AI Integration. Turn each range position into the matrix's column heading with IFS, testing the top quartile first: at least 75 per cent returns Q4, at least 50 per cent Q3, and so on, with TRUE catching the rest, the same ladder Lesson 32 builds for sales labels. Then the two-way lookup of Lesson 69 reads the grid with the rating as one key and the quartile label as the other, or INDEX takes its row and column positions from two MATCH formulas (Lesson 71). Because both keys are exact labels, nothing depends on a sorted table or an approximate match, and a rating the matrix does not know returns your if-not-found message instead of a wrong percentage. One more column multiplies the result by salary, and the merit cost of the whole population sits on the sheet.

Some of our jobs have no survey match: how do I keep them visible instead of buried under #N/A or a zero?

Give the lookup a message of its own, and The Complete Excel Course with AI Integration teaches two ways to do it. XLOOKUP takes an if-not-found answer inside the formula, n/a in Lesson 69 and a word such as Unmatched in your file; VLOOKUP needs IFERROR around it, and Lesson 70 breaks a department code on purpose, watches the errors appear, then wraps both lookup columns so they read NOT MATCHED. The lesson's warning fits survey work exactly: one extra letter in a code is enough to break a match. Choose words over zeros: a zero market rate looks like data, drags an average down and slips into a chart unnoticed, where a word stops the eye. Then count the words with COUNTIF (Lesson 36) and you know how many jobs still need a manual match before the benchmark report goes out.

Market rates differ by location: can a lookup match on job code and location together?

Yes, in two ways, both built from lessons in The Complete Excel Course with AI Integration. The first joins the two keys into one: CONCAT, the ampersand or TEXTJOIN (Lesson 72) puts the job code and the location tier side by side in a helper column on both sheets, with a separator so the codes cannot run into each other, and an ordinary XLOOKUP then matches the joined key exactly. The second needs no helper column: FILTER returns the rows that meet both conditions, multiplying the two tests for AND, as Lesson 76 does with an active status and a job level, or adding them for OR. FILTER needs a modern Excel and returns every match, so a clean survey table gives one row and a duplicate shows itself at once. Either way, a market rate for the wrong location never lands quietly on a salary row.

Survey job codes and our internal codes are written differently: can formulas make them meet?

Often, yes, when the difference follows a pattern, and The Complete Excel Course with AI Integration teaches the text functions that reshape a code. Lesson 73 takes a packed position code apart with LEFT, RIGHT and MID, three letters from the start, four digits from the end and a piece from the middle, so the family or level part of an internal code can be matched on its own. Lesson 72 works the other way, joining parts with CONCAT, the ampersand or TEXTJOIN to rebuild a code in the survey's format. Where no rule connects the two, a short mapping table of internal code against survey code becomes a lookup table in its own right, read with XLOOKUP like any other (Lesson 69). Deciding which survey job matches which role stays your expertise; the formulas make sure every match you settle on reaches every row, every cycle.

How do I check that the band table covers every job code in the employee file?

List the codes, then look each one up, and The Complete Excel Course with AI Integration gives you both halves. UNIQUE spills a distinct list of any column (Lesson 75): in the lesson it lists employment statuses, locations and work arrangements, and pointed at job codes it shows every code the employee file holds, once each, updating as records change. Beside that list, an XLOOKUP into the band table with an if-not-found word such as MISSING marks each code with no band (Lesson 69), and COUNTIF counts them (Lesson 36). Run the check the other way round and you find bands no employee uses, often the trace of a retired job. UNIQUE needs a modern Excel and room to spill: the lesson's first attempt inside the table fails, and moving it outside the table fixes it. A check like this before a cycle saves chasing gaps after it.

Can I list everyone in a grade who sits below the band minimum?

Yes, with FILTER and two conditions, and The Complete Excel Course with AI Integration teaches the AND logic in Lesson 76. Its formulas return whole rows of the employee table that pass a test, first one condition, then two at once by multiplying them, as with active employees at a given job level. Once the band minimum sits on each row from an XLOOKUP, the same shape returns every employee of the grade whose salary falls below it: the green-circle list a review starts from. Swap the comparison and you get those above the maximum, or add the plus sign for OR to catch both groups in one list. Each list spills beside the table and redraws itself when a salary or a band changes, under a heading of its own as the lesson places them. FILTER, like UNIQUE, needs a modern Excel, and the table it reads should carry a name first.

Has anything replaced XLOOKUP for this work, such as FILTER, Power Query or Copilot?

No: each of those does a neighbouring job, and The Complete Excel Course with AI Integration teaches all of them so you choose well. FILTER returns every row that matches rather than one value (Lesson 76), the right tool when a code should have many matches. Power Query's merge looks up names for a whole table at once with a left join and repeats it at every refresh (Lesson 163), the stronger route when a large survey extract arrives each year. Copilot and ChatGPT write formula columns on request, and Lesson 95 has you read and verify each one before it stays. XLOOKUP remains the everyday way to bring one value onto a row, and the skills stack rather than compete: the analyst who can write the lookup is the one who can tell when an AI's version is wrong.

Do I need VBA to run lookups across a large pay file?

No: a lookup formula fills down thousands of rows on its own, and The Complete Excel Course with AI Integration shows it doing so with a double-click on the fill handle (Lesson 68). Where VBA earns its place is checking the result, and the course teaches that as well. In FormatWizard a loop runs down a sheet and flags rows with missing values (Lesson 147), colours the cells that need attention (Lesson 149) and ends as one complete macro with an error handler (Lesson 152). Pointed at a pay file's lookup columns, the same loop becomes a button that marks every row that came back unmatched before anyone sends the file on. For lookups across whole tables that arrive again and again, Power Query's merge is the stronger tool. Write the lookups as formulas, and automate the checking around them.

How long before lookups replace copy and paste in my own band and survey files?

About 44 minutes of lessons, and the first lookups work within the opening few. The Complete Excel Course with AI Integration has VLOOKUP pulling names across sheets by Lesson 68 and XLOOKUP, with its if-not-found message and two-way lookup, by Lesson 69, so your band table can reach every employee row the same day. IFERROR, INDEX with MATCH, the text functions for codes and the UNIQUE and FILTER checks follow, and Lesson 78 closes with a challenge on a products and orders workbook: pause, solve it, then compare with the solution. PeopleInsight comes as a starter and a finished workbook, so each formula can be held against a working answer. Lifetime access keeps the lessons at hand for the next survey season, and the course page has free lessons to watch before you buy.

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.