The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for health and safety officers
A safety officer's records never sit in one list: the roster in one file, training dates in an export, equipment checks in a register, and the checking between them is done by eye. The Complete Excel Course with AI Integration teaches the lookups that join them on industry-standard projects, and this page picks out its lookup lessons: VLOOKUP and XLOOKUP, the if-not-found answer, INDEX and MATCH, keys cut from codes, FILTER and a Power Query merge.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Pull each worker's certificate expiry date from the training export into the site roster with XLOOKUP, matched on the worker ID, then count the days left against TODAY.
- Make a worker missing from the training records read No record instead of #N/A, with XLOOKUP's if-not-found answer or IFERROR around VLOOKUP, so the gap itself becomes the finding.
- Turn the codes on an incident form into plain words for the monthly report, with an exact-match VLOOKUP against a code table kept on a sheet of its own.
- Bring the inspection date, the inspector and the next due date beside each asset tag, or the hazard class and PPE beside each chemical, by copying one XLOOKUP across several return columns.
- Read a training matrix by worker and course at once with a two-way lookup, and match a long list on two fields through a key joined with the ampersand.
- Mend an inherited VLOOKUP that broke when a column was inserted, and choose between VLOOKUP, XLOOKUP and INDEX with MATCH for a file colleagues open in older Excel.
- List every certificate one worker holds, or every worker on one site, with FILTER and its AND and OR conditions.
- Join a whole month's training export to the roster in one step with a Power Query merge and a left outer join that keeps every worker.
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 for HR analysis, it is where the sheet lookups of this page are written: an employee sheet given department names, partners and locations by VLOOKUP, XLOOKUP and INDEX with MATCH, codes cut apart with LEFT, RIGHT and MID, names joined and FILTER lists spilled. Swap employees for the people on your site roster and department codes for course codes, and the joins are the ones a training check runs on.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built as a sales reporting system fed by a folder of files, its merge lesson adds product and region names to every sale with a left outer join, the same join a monthly training export needs once it is too long to look up cell by cell.
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, 49 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 records in tables and write simple formulas: it opens the HR workbook whose sheets the lookups join. New to formulas? Take Lesson 8 to Lesson 12 first, above all the locked references of Lesson 10, because a lookup table is locked before the formula is filled down. Already writing VLOOKUP? Move on to XLOOKUP at Lesson 69, and to the merge at Lesson 163 once SalesFusion's first queries are built.
11 of 186 lessons · 49 min
08 Advanced Excel functions: lookups, text and arrays The lookup core on the PeopleInsight HR data: why lookups beat copying between tabs, VLOOKUP with an exact match and a locked table, XLOOKUP with exact match, an if-not-found answer and a two-way lookup, IFERROR on VLOOKUP and XLOOKUP formulas, and INDEX with MATCH for the lookups VLOOKUP cannot make. Matching the roster against a training export starts here.
- 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
08 Advanced Excel functions: lookups, text and arrays The keys and dates around a lookup: CONCAT, the ampersand and TEXTJOIN to join two fields into one key, LEFT, RIGHT and MID to cut a site or type code out of a longer reference, then TODAY, EOMONTH and NETWORKDAYS, which counts working days between two dates, to turn a looked-up expiry date into time left.
- 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
- 74 TODAY, EOMONTH and NETWORKDAYS in Excel Date calculations for HR data 5 min
08 Advanced Excel functions: lookups, text and arrays FILTER: every matching row at once, under AND and OR conditions, for the questions a lookup's single answer cannot cover, such as every certificate one worker holds or everyone working on one site. FILTER needs a current Excel.
- 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 and a formatted ID, solved by you before the solution plays, so your first unaided lookup happens on practice data.
- 78 Excel Ninja Challenge XLOOKUP, totals and text concatenation lookup challenge 3 min
15 SalesFusion: advanced data tools and a Power Query modelling system Merge queries in Power Query: the sales table given product and region names by a left outer join that keeps every row, the lookup done once for a whole export and repeated at each refresh. It sits inside SalesFusion and reads best after that project's first queries.
- 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.
How does a health and safety officer get good enough at XLOOKUP and VLOOKUP to stop copying training dates between spreadsheets?
By building them on real joins, which is how The Complete Excel Course with AI Integration from Coding Liquids teaches both. On PeopleInsight, an industry-standard project designed after talking with people from many different industries, an employee sheet is joined to separate tables by VLOOKUP (Lesson 68), XLOOKUP (Lesson 69) and INDEX with MATCH (Lesson 71), with the errors handled in between (Lesson 70). Those are the joins a safety officer makes every week: the roster against the training export, the asset list against the inspection register, incident codes against their descriptions. This page picks out 11 lessons of lookup work, 49 minutes of video, that end the copying for good, from the first VLOOKUP to keys built from codes and a Power Query merge, and the challenge in Lesson 78 has you write one unaided before you trust it with the training matrix.
Can XLOOKUP pull each worker's certificate expiry date from the training export into my site roster?
Yes: that is the lookup The Complete Excel Course with AI Integration teaches in Lesson 69, on its own HR data. XLOOKUP takes the worker's ID from the roster, finds it in the export's ID column and returns the value from whichever column you point it at, here the expiry date. The lesson locks both ranges with F4 before filling down, because an unlocked range drifts and the rows lower down return errors or zeros, and then copies the formula across for more fields, so the course name and the date of issue can arrive beside the expiry. Lesson 74 finishes the job: the expiry date minus TODAY gives the days left, and EOMONTH gives the month end to report against. One formula, filled down the roster, replaces the weekly hunt through the export for each name in turn.
What should the roster show when a worker on site has no training record at all?
A plain message such as No record, and The Complete Excel Course with AI Integration teaches two ways to produce one. XLOOKUP carries its own if-not-found answer, the text it returns when an ID is missing from the export, and Lesson 69 sets it in the very first formula it writes. For VLOOKUP, and for XLOOKUP formulas too, Lesson 70 wraps the lookup in IFERROR and shows a readable note where the error stood; it breaks a match on purpose, by changing one code, so you see exactly what an unmatched row looks like. On a site roster that message is far more than a cosmetic fix: the worker with no record is precisely the person a training check exists to find. Filter the column for No record and the list of people to book onto training is in front of you.
Our incident form records codes for the injury type and body part: can a lookup turn them into words for the monthly report?
Yes, and it is the exact-match VLOOKUP that The Complete Excel Course with AI Integration teaches first, in Lesson 68. A small code table on its own sheet holds each code once with its description; VLOOKUP takes the code from the incident row, finds it in the table's first column and returns the description from the column number you give it, with FALSE asking for an exact match so that a near code is never taken for the right one. The lesson locks the table range before filling down, then repeats the formula with the next column number for a second field, so injury type and body part can sit side by side. A code missing from the table, usually a mistype on the form, returns an error, and Lesson 70 turns it into a note such as Code not found that tells you which row to correct.
Can a lookup put the inspection date and the assigned worker beside each asset tag on our equipment list?
Yes, one XLOOKUP per field, and The Complete Excel Course with AI Integration shows how to make the second, third and fourth fields quick. In Lesson 69 one formula brings a city in from a location table; copied across, it brings the state, the region and the work arrangement as well, its return range moving a column each time while the lookup value is set back to the same key. On your side the key is the asset tag, read from a register that holds each tag once, and the return columns are the last inspection date, the inspector, the assigned worker and the next due date. A lookup returns the first match, so for a log with a row per inspection, FILTER (Lesson 76) lists every one. Where a tag packs site, equipment type and serial into one code, Lesson 73 cuts each part out with LEFT, RIGHT and MID.
Can a job hazard analysis sheet fill in each chemical's hazard class and required PPE from our chemical register?
Yes: enter the product and lookups fill the rest, which is the PeopleInsight pattern of The Complete Excel Course with AI Integration put to a safety use. The register is the lookup table, one row per chemical with its identifier, hazard class, signal word, required PPE and storage notes; the assessment sheet holds the identifier, and XLOOKUP returns each field beside it (Lesson 69). If the register keeps the identifier somewhere other than its first column, XLOOKUP or INDEX with MATCH (Lesson 71) still finds it, since both search to the left as well as the right, where VLOOKUP cannot. A product not yet on the register returns your own message rather than an error, which is the prompt to get its safety data sheet in before the work starts. The safety judgement stays yours; the retyping, and the mistakes that come with it, go.
Contractor induction packs go out to firms whose Excel may be older: which lookup should the safety team build them with?
INDEX with MATCH or VLOOKUP for the packs that leave the building, XLOOKUP for the workbooks kept in-house, and The Complete Excel Course with AI Integration teaches all three so the choice is yours to make. XLOOKUP, in Lesson 69, points straight at the column it returns, searches left or right and carries its own if-not-found answer; it needs a modern Excel, which the course flags when it appears. VLOOKUP, in Lesson 68, works in every version but only looks to the right of its key and counts columns by number. INDEX with MATCH, in Lesson 71, lifts both limits and still works in older versions, which makes it the safe pick for a file a contractor's office will open on its own machines. Knowing all three also means an inherited workbook, whichever it uses, never has to be rebuilt just because nobody can read it.
An old incident workbook is full of VLOOKUPs that broke when someone inserted a column: what does the course teach that stops that happening?
Why it happens, then two ways round it, all within The Complete Excel Course with AI Integration. Lesson 68 breaks a VLOOKUP on purpose: a column inserted in the lookup table shifts the column number the formula counts by, and the results turn to zeros, read from the wrong column, until the insert is undone. Knowing that, you can mend an inherited file by correcting each column number, then decide whether it deserves to stay. XLOOKUP, from Lesson 69, names its return column as a range, so inserting a column moves the reference with it and nothing breaks; INDEX and MATCH, from Lesson 71, does the same in older Excel. The same lessons expose the other fault common in old safety files, a table range left unlocked so the rows lower down return errors, and F4 fixes it in one keystroke.
Can a lookup find one value by both the worker and the course in our training matrix?
Yes, and The Complete Excel Course with AI Integration names the tool in a lesson title: Lesson 69 teaches XLOOKUP with exact match, if-not-found and a two-way lookup, a value found by its row and its column at once. That is how a training matrix is read, with workers down the side, courses across the top and dates where they meet. For a long list instead, one row per certificate with the worker in one column and the course in another, join the two into one key with the ampersand or CONCAT (Lesson 72) on both sides, and the lookup matches the pair. FILTER, in Lesson 76, takes the other road: multiply two conditions inside it, the worker and the course, and every matching row comes back, which also shows when a certificate has been entered twice.
The training export runs to thousands of rows every month: is there something better than a column of XLOOKUPs?
Yes, two things, and The Complete Excel Course with AI Integration teaches both. A Power Query merge does the lookup once for the whole export: Lesson 163 adds product and region names to every sales row with a left outer join, which keeps every row of the first table and fills in details only where a match exists, and the merge reruns on next month's export at a refresh. Put the roster first and every worker stays in the result, the untrained ones with their details blank. Beyond that, a Power Pivot data model relates tables with no lookup at all: Lesson 169 links a sales table to its product and region tables in Diagram View, and that lesson needs Excel for Windows. The sheet lookups on this page remain the everyday tool; these two take over when the files grow.
How do I practise lookups before I trust them with the training records?
On files built for it, then on a challenge, which is how The Complete Excel Course with AI Integration sets it up. PeopleInsight comes as a starter workbook with a finished copy beside it: separate sheets for employees, departments and locations, so every lookup you write from Lesson 68 to Lesson 71 can be checked against a working answer. Lesson 78 then hands you a problem file, an Orders sheet with empty columns and a Products sheet holding the data, and asks you to fill in product names, the per-unit figure and totals with XLOOKUP before the solution plays. Its trap is worth meeting early: an @ in a table reference takes one row's value and breaks a lookup that needs the whole column. Practised that way, the first lookup on your real roster is your fifth or sixth, never your first.
Our permit numbers pack the site, the work type and a sequence into one code: can a lookup use just part of it?
Yes, once the part is cut out, and The Complete Excel Course with AI Integration teaches the cutting in Lesson 73. LEFT reads characters from the start of a code, RIGHT from the end and MID from any position you give it, with a length; the lesson splits position codes made of a location, a department and an ID number into three columns. A permit, asset or contractor number built the same way splits the same way, and the site code it yields can then drive a lookup to the site manager or the emergency contact, or a count of permits by site. Going the other way, Lesson 72 joins fields into one string with CONCAT, the ampersand or TEXTJOIN, which is how a key is made when no single column identifies a row. Codes stop being opaque, and every part of them becomes searchable.
A worker shows No record although I can see them in the training export: what has gone wrong?
Almost always the ID itself, and The Complete Excel Course with AI Integration shows both the cause and the cure. To a lookup, an ID carrying a trailing space or a stray character is a different ID, while capitals make no difference at all; Lesson 70 proves the point by changing one code and watching the match fail. Exports pick up such spaces easily, and TRIM, taught on employee data in Lesson 22, strips them in a helper column that you paste back as values. A second cause is the range: a lookup table left unlocked before filling down means rows further down search a shifted range and miss, which Lesson 68 demonstrates and F4 cures. Check those two before you doubt the training record, and the No record list goes back to meaning exactly what it says.
How soon could the training check I do by eye each week be a column of lookups?
Within an evening or two, since the whole path takes 49 minutes, and the check itself is ready after Lesson 69. In The Complete Excel Course with AI Integration the opening lessons explain why lookups beat copying between tabs (Lesson 67), write the first VLOOKUP (Lesson 68) and then XLOOKUP with its if-not-found answer, which is all a roster against a training export needs. Lesson 74 turns the looked-up expiry dates into days left with TODAY, and the rest of the path adds keys, FILTER and the merge for heavier files. Lifetime access keeps every lesson open for the next register you need to join, and the instructor support plan adds written answers from the instructor for two months from the day you switch it on, useful when your own export has a quirk the lessons never showed.
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 health and safety officers
- Pivot tables for health and safety
- Charts for health and safety officers
- Dashboards for health and safety
- Conditional formatting for HSE officers
- Data cleaning for health and safety
- Data validation for health and safety
- Excel tables for health and safety
- Text functions for health and safety
- Date functions for health and safety
- Dynamic arrays for health and safety
- Power Query for health and safety
- Power Pivot & DAX for health and safety
- Macros and VBA for health and safety
- Power Automate for health and safety
- Copilot for health and safety
- ChatGPT for health and safety
- Claude in Excel for health and safety