The Complete Excel Course with AI Integration

XLOOKUP and VLOOKUP for HR teams and staff data

In most HR workbooks one person's details are spread out: the staff list on one sheet, departments and HR business partners on another, locations on a third, pay and survey results elsewhere. The Complete Excel Course with AI Integration joins them on PeopleInsight, an industry-standard HR workbook, and this page picks out every lesson the job needs, from the locked reference and the clean key to the lookups themselves and the lists FILTER returns.

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 employee's department name and HR business partner onto the staff list with VLOOKUP on an exact match, and fix the errors an unlocked lookup range causes further down the column.
  • Fill in city, state, region and work arrangement for every employee with XLOOKUP, with an answer of your own for a location code it cannot find.
  • Choose the right lookup for each workbook: XLOOKUP where the file is new and columns will be added, VLOOKUP where an inherited template or an older Excel calls for it.
  • Turn a failed lookup into plain words with IFERROR, so a mistyped department ID reads NOT MATCHED to whoever reviews the sheet.
  • Look up from any column, an answer to the left of the key included, with INDEX and MATCH on named tables.
  • Get lookup keys ready to match: repeated employee IDs removed, stray spaces trimmed, and position codes split into location, department and number with LEFT, MID and RIGHT.
  • Return every employee in one department, location or job level with FILTER, where a lookup stops at the first match, and order the list by hire date with SORTBY.
  • Solve a lookup challenge on a workbook you have not seen before opening its answer, the closest practice to an Excel test at interview.

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 starter is an HR analyst's raw material: an employee sheet of department IDs, location codes, job levels, titles and hire dates, lookup sheets for departments and locations, and compensation and engagement survey sheets of their own. By the end each person's row carries department, HR business partner, city, state, region and work arrangement.

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

  • Project 02

    Dunder Michael Paper Company employee database

    Where the keys are made trustworthy before any lookup reads them: repeated employee IDs found and removed as whole rows, and stray spaces and second spellings cleaned out of departments and locations.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 14 of them, 1 h 11 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 can fill a formula down and know what F4 does: the PeopleInsight starter file opens there and the lookups follow in order. Never locked a reference? Take Lesson 10 first. If your staff exports arrive with stray spaces, typos and repeated IDs, the clean-up lessons from Lesson 22 make the keys trustworthy before any lookup runs. Brand new to Excel? Begin at Lesson 1, and this path joins the course further on.

14 of 186 lessons · 1 h 11 min

01 Microsoft Excel fundamentals: building a foundation from scratch 1 of 13 lessons · 3 min Absolute and mixed references with F4: the lock that keeps a lookup's table range in place while the formula fills down a long staff list, the first fix the VLOOKUP lesson calls for.
  1. 10 Relative vs absolute references in Excel Dollar signs and mixed references 3 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 2 of 9 lessons · 19 min Keys made fit to match on the course's employee database: stray spaces trimmed and second spellings replaced in departments and locations, then repeated employee IDs highlighted and removed as whole rows, because a lookup stops at the first match it finds.
  1. 22 Cleaning data in Excel TRIM, Paste Special values and Find and Replace 13 min
  2. 23 Remove duplicates in Excel Find and delete duplicate rows in an employee list 6 min
08 Advanced Excel functions: lookups, text and arrays 5 of 12 lessons · 21 min The lookup core on PeopleInsight: why lookups matter when one person's details sit on several sheets, VLOOKUP for department and HR business partner names, XLOOKUP for city, state, region and work arrangement with an if not found answer and a two-way lookup, IFERROR for IDs that stop matching, and INDEX and MATCH on named tables.
  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 Keys built and taken apart: first and last names joined into a Full Name column with CONCAT, the ampersand and TEXTJOIN, and a position code such as DAL-SAL-0001 split into its location, department and number with LEFT, MID and RIGHT.
  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 4 of 12 lessons · 18 min Past the single match: UNIQUE lists every status, location and work arrangement once, FILTER returns every employee who meets a rule with AND and OR, SORT and SORTBY order the results by name or hire date, and a Ninja Challenge sets lookups to solve before the answer appears.
  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
  3. 77 SORT and SORTBY in Excel Sort data dynamically with formulas 4 min
  4. 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.

Our staff details sit on several sheets: can XLOOKUP and VLOOKUP pull them together, and where do HR teams learn that?

Yes, and The Complete Excel Course with AI Integration from Coding Liquids teaches both on PeopleInsight, an industry-standard HR workbook designed after talking with people from many different industries. Its starter file is laid out the way HR data really arrives: an employee sheet holding department IDs, location codes, job levels and hire dates, lookup sheets for departments and locations, and separate compensation and engagement survey sheets. You bring the department name and HR business partner across with VLOOKUP, then city, state, region and work arrangement with XLOOKUP, label every miss in plain words with IFERROR, and reach any column with INDEX and MATCH. This page lines up the 14 lessons behind it, 1 hour 11 minutes in all, from the locked reference and the clean key to FILTER lists of whole teams, with the finished workbook beside yours so every formula can be checked.

For a new starter tracker or a staff master file, should our HR team write XLOOKUP or VLOOKUP?

XLOOKUP for anything new, VLOOKUP wherever an older file or an older Excel calls for it, and The Complete Excel Course with AI Integration teaches both so the choice is yours. Lesson 68 shows VLOOKUP's two weak points on the PeopleInsight staff list: it reads only to the right of its key column, and it counts columns by number, so a column inserted in the lookup sheet turns department names into zeros. Lesson 69 answers both with XLOOKUP, which points straight at the column it returns, looks left or right, and takes an if not found answer of its own. For a staff master that gains a column whenever someone asks for a new field, that resilience settles it. XLOOKUP needs a modern Excel, which the course flags; for a template shared with someone on an older version, VLOOKUP wrapped in IFERROR does the job safely.

Our inherited onboarding template is full of VLOOKUP: will I be able to maintain it, or should it be rebuilt?

Either, at your pace, because The Complete Excel Course with AI Integration prepares you for both. VLOOKUP is taught properly in Lesson 68, faults included: FALSE for an exact match, the table range locked with F4 so rows further down do not fail, and the column number that breaks when someone inserts a column in the lookup sheet. Knowing those three faults is most of what keeping an inherited template alive takes. Lesson 70 then wraps old lookups in IFERROR, so a department code that stops matching reads NOT MATCHED instead of #N/A. When a rebuild makes sense, Lesson 69 shows the XLOOKUP that replaces each VLOOKUP column, and Lesson 71 covers INDEX and MATCH, which older files often hold as well. Templates like yours tend to live on because VLOOKUP opens in every version; after these lessons you keep it running and modernise it the day your Excel allows.

Can one lookup fill in the department, HR business partner and location for every new starter?

Yes, one formula per detail, filled down once, and every new row is covered from then on. In The Complete Excel Course with AI Integration, Lesson 68 fetches each employee's department name from its department ID with VLOOKUP, then copies the header across and changes the column number to bring in the HR business partner too. Lesson 69 handles the location side with XLOOKUP: city first, then state, then the formula copied across for region and work arrangement, the return column moved each time and the lookup value pointed back at the location code when it slides. The lessons write one formula per detail, which keeps every column easy to audit. The staff sheet is later formatted as a table (Lesson 73), the shape in which a formula column carries on into each row you add. For onboarding, a new starter's ID and codes are typed once and their department, partner and office appear beside them.

What should a lookup show when an employee ID is missing from the other sheet?

A message that says what went wrong, never a silent zero, and The Complete Excel Course with AI Integration teaches both ways to give one. With XLOOKUP the message is built in: Lesson 69 sets the if not found argument to n/a, so a location code with no partner on the lookup sheet says so in its own cell. VLOOKUP needs a wrapper, and Lesson 70 changes one department ID on purpose to break two lookup columns, then wraps each in IFERROR with NOT MATCHED as the answer. The danger of the alternative appears earlier, in Lesson 68, where an inserted column makes VLOOKUP return zeros that look like real data. In an HR file a zero or a blank can pass for a person with no department; a plain message sends someone to fix the record at its source, usually a typo in the ID or a department never added to the lookup sheet.

When does INDEX and MATCH still earn a place in an HR workbook?

Wherever a file must open in an older Excel, or the detail you need sits to the left of the key, and The Complete Excel Course with AI Integration teaches it on the same HR data. Lesson 71 builds it in two parts: MATCH finds the row where a code sits and returns its position, and INDEX returns the value in that row of whichever column you name, so the answer can sit to the left of the key as easily as to the right. The lesson then names the tables employees_raw and lookup_department on the Table Design tab and writes INDEX over the HR business partner column with MATCH on the current row's department ID, the at sign standing for this row. Formulas on named tables read almost like a sentence, which helps the colleague who opens your file next. XLOOKUP does the same in one function; INDEX and MATCH works in every version.

Why does a lookup miss an employee whose ID looks identical on both sheets?

Usually a character you cannot see, sometimes a record that appears twice, and The Complete Excel Course with AI Integration deals with both before a lookup depends on them. Lesson 22 cleans an employee export with TRIM, which strips spaces from either end of a value, and Find and Replace for second spellings, so an ID with a trailing space and the same ID without one become a single key again. Lesson 23 hunts repeated employee IDs with a highlight rule and removes the extra rows whole, which matters because a lookup returns the first match and ignores the rest. Lesson 70 shows the other cause in action: one extra letter in a department ID is enough to break the lookup. Clean the keys first and nearly every failed match disappears; the ones left are real records to chase, which is exactly what an HR team wants a lookup to find.

Two lists with no shared employee ID, only names and departments: can they still be matched?

Yes, by building a key both lists share, and The Complete Excel Course with AI Integration teaches the pieces. Lesson 72 joins a first name and a last name into one Full Name column with CONCAT, the ampersand or TEXTJOIN; joined with the department the same way on both lists, that text becomes a key an ordinary XLOOKUP can match (Lesson 69). Before trusting it, clean both sides: TRIM clears stray spaces (Lesson 22), since a name with a trailing space never matches its twin. When a rule suits better than a key, FILTER returns the rows that meet two conditions at once, AND written as an asterisk (Lesson 76). Several conditions inside one XLOOKUP have no lesson of their own; the joined key does the same work. Names make a weaker key than IDs, so ask the training provider or the system that sent the list for IDs whenever you can.

Can a lookup list every employee in one department, rather than stopping at the first?

Yes: that is FILTER's job, and The Complete Excel Course with AI Integration teaches it straight after the lookups. XLOOKUP and VLOOKUP return one answer, the first match, which suits one person's details but not a whole team. Lesson 76 filters the PeopleInsight staff table by location code, then by job level, then by two conditions at once, active staff at one level, and finally by either of two locations, each result spilling into as many rows as it needs and updating when the data changes. Lesson 77 orders such lists with SORT and SORTBY, one of them by hire date, and Lesson 75 gives each distinct status, location or work arrangement once with UNIQUE, ready for a drop-down. For HR, that is a team list for a manager, everyone on leave or all staff at one site, without a filter clicked. These dynamic arrays need a modern Excel, which the course points out.

When an HR business partner changes, do I have to edit every employee row?

No: you change one cell, and The Complete Excel Course with AI Integration shows why. In PeopleInsight the partner's name is kept once, on the lookup_department sheet beside each department, and Lesson 68 brings it onto every employee row with VLOOKUP, while Lesson 71 does the same with INDEX and MATCH. Because each employee row reads the name rather than holding a typed copy, a new partner typed over the old one on the lookup sheet appears against everyone in that department at once. Location details behave the same way through XLOOKUP (Lesson 69): a site that changes its work arrangement is edited in one place. That is the real case for lookups in HR, one source for each fact, so a reorganisation means updating a short table instead of hunting through a long list. Lesson 67 sets out that idea before the first formula is written.

Our position codes pack location, department and number together: can lookups use them?

Yes, once the code is split into its parts, and The Complete Excel Course with AI Integration teaches the split on exactly that kind of code. Lesson 73 takes a PeopleInsight position code such as DAL-SAL-0001 and pulls out the location with LEFT, the running number with RIGHT, and the department group from the middle with MID, which needs a start position and a length. Each part lands in its own column, filled down every row, and each can then serve as the key of a lookup: the location part matched against the location sheet with XLOOKUP (Lesson 69), the department part against the department sheet. The lesson ends by formatting the employee sheet as a table, so the new columns carry on as staff are added. Employee IDs, cost centres and site tags often pack several facts into one cell, and this is how you unpack them.

Can lookups bring pay details or survey scores onto the staff list from their own sheets?

Yes, with the same patterns, and The Complete Excel Course with AI Integration hands you the very sheets to practise on. The PeopleInsight starter file keeps compensation and engagement survey data on sheets of their own beside the employee list, and Lesson 67 frames the task as an HR analyst's: gather related records from several sheets into one reliable report. The lessons join departments and locations (Lesson 68, Lesson 69); point the same XLOOKUP at the compensation sheet by the ID both sheets share and pay details join each row, or at the survey sheet and a score does, with IFERROR naming anyone who has no entry. Copied across, one formula per column, the staff list becomes a single view of each person. Pay data deserves care in a shared file, so Lesson 86, outside this path, shows how to protect a sheet and lock its cells before the workbook leaves your hands.

Could I ask Copilot to fill in departments on the staff list instead of writing a lookup?

You could ask, and The Complete Excel Course with AI Integration makes sure you can judge the answer. No lesson has Copilot write a lookup, but the AI section teaches the method for any formula it drafts: in Lesson 95 Copilot proposes formula columns that are previewed, read and tested on a row before they stay, and Lesson 99 adds a checklist for any AI result. A lookup is a formula you must be able to read, because its typical faults, an unlocked range, a wrong column number, an approximate match, return plausible wrong answers rather than errors, and after Lesson 68 and Lesson 69 you spot each in seconds. Nothing has replaced XLOOKUP in the course: Copilot drafts, FILTER returns whole lists, and a Power Query merge (Lesson 163) joins a monthly extract in one step. Whether staff data goes into an AI tool is for your employer to decide.

I copy staff details between sheets by hand today: how soon can lookups take that over?

Within the first lessons of this path, which runs about 1 hour 11 minutes in all. The Complete Excel Course with AI Integration reaches its first working VLOOKUP in Lesson 68, a short lesson, and XLOOKUP follows at once, so by the end of Lesson 70 departments, HR business partners and locations fill themselves in and every miss explains itself. If F4 is new to you, Lesson 10 comes first, and it is brief. Lesson 78 then closes the section with a Ninja Challenge: a workbook you have not seen, lookups to write and a total to work out before the solution file opens, the nearest thing to an Excel test at interview. Every project has a starter and a finished file, lifetime access keeps the lessons on hand, and with the instructor support plan a question about your own staff file goes to the instructor in writing for two months from the day you switch it on.

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.