The Complete Excel Course with AI Integration
XLOOKUP and VLOOKUP for healthcare administrators
A roster names staff by number, an activity export lists clinics by code, and the finance file knows cost centres only by theirs, so a healthcare administrator spends hours matching them by hand. The Complete Excel Course with AI Integration hands that matching to lookups on PeopleInsight, an industry-standard HR workbook, and this page picks out the lessons: clean codes, VLOOKUP, XLOOKUP, IFERROR, INDEX and MATCH, keys built and split, and FILTER.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring each member of staff's ward, grade and contracted hours onto a roster export with VLOOKUP and an exact match, the staff list's range locked so every row returns an answer.
- Give every clinic code in an activity export its clinic name, site and specialty with XLOOKUP, which keeps working when a column is added to the mapping sheet.
- Mark codes the mapping does not know yet, a clinic opened this month for instance, with XLOOKUP's if-not-found text or IFERROR, so a gap reads as words, not #N/A.
- Fetch the one figure where a ward meets a month in a grid of funded beds or budgets, with a two-way lookup.
- Reach values to the left of the key with INDEX and MATCH, and keep lookups working in files colleagues open in an older Excel.
- Clean codes before they are matched, with TRIM, Find and Replace and Remove Duplicates, and stop new variants with a drop-down list sourced from the master list.
- Join two columns into one key with CONCAT or the ampersand, and split a packed cost centre or bed code into its parts with LEFT, RIGHT and MID.
- List every row that matches, all the staff on one ward or every clinic on two sites, with FILTER, and the distinct codes an export holds with UNIQUE.
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.
Its staff records arrive in pieces, codes on one sheet and names, managers and sites on others, the very puzzle of a roster or clinic list, and it stages the case every administrator meets in the end: a code that suddenly stops matching.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
The step after formulas: a merge in Power Query brings names in beside codes with a left join on each new month's export, and a code with no match comes back blank, ready to be caught before it reaches a total.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 15 of them, 1 h 17 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 write a SUM and lock a cell reference: PeopleInsight sets out the problem, and the lookups follow in order. Do the codes in your exports carry stray spaces or repeats? Take Lesson 22 and Lesson 23 first. Formulas themselves still new? Lesson 8 is the place to begin, with Lesson 1 before it for anyone opening Excel for the first time. Fluent in VLOOKUP already? Skip ahead to Lesson 69, where XLOOKUP, its if-not-found message and the two-way lookup start.
15 of 186 lessons · 1 h 17 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) Codes made trustworthy before any lookup runs: TRIM, Paste Special values and Find and Replace clear the stray spaces and second spellings that stop a code matching, and Remove Duplicates leaves one row per ID, so a staff number finds one person.
- 22 Cleaning data in Excel TRIM, Paste Special values and Find and Replace 13 min
- 23 Remove duplicates in Excel Find and delete duplicate rows in an employee list 6 min
05 Text functions and data validation (enhancing data quality) A drop-down list fed from the master list, so a ward or clinic typed into a tracker is always one the lookup sheet knows.
- 45 Data validation in Excel Create drop-down lists for consistent data entry 4 min
08 Advanced Excel functions: lookups, text and arrays The lookups themselves, on an HR dataset: why copying between tabs fails, VLOOKUP with an exact match and a locked table, XLOOKUP with an if-not-found message and a two-way lookup, IFERROR for codes that stop matching, and INDEX with MATCH for a key in any column. A hospital's staff, clinic and cost centre lists take the same formulas.
- 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 Keys and dates around a lookup: CONCAT, the ampersand and TEXTJOIN join columns into one value, LEFT, RIGHT and MID split a packed code into parts, and TODAY, EOMONTH and NETWORKDAYS turn a looked-up date into the days and working days 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 Past the first match: UNIQUE lists the distinct codes an export holds, FILTER returns every row that meets AND or OR conditions, SORT and SORTBY put the result in order, and a closing challenge fetches item names and per-unit figures by XLOOKUP and totals each line. These spilling functions 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
- 77 SORT and SORTBY in Excel Sort data dynamically with formulas 4 min
- 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.
Do healthcare administrators really need XLOOKUP and VLOOKUP, and where are they taught with worked examples?
Yes, as soon as a report draws on more than one list, 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. A healthcare office runs on codes: staff numbers on the roster, clinic codes on the activity export, cost centres in the finance file, each explained on a different sheet. VLOOKUP (Lesson 68) and XLOOKUP (Lesson 69) fetch the names, grades, sites and managers behind those codes with one formula filled down a column, IFERROR and XLOOKUP's own message mark the codes that fail, and INDEX with MATCH covers the keys VLOOKUP cannot reach. This page gathers the 15 lessons that teach it, 1 hour 17 minutes in all, with the cleaning that makes codes match and FILTER for lists of every match, each built from a starter file with the finished one to compare.
Which should I learn first if some colleagues still open our files in an older Excel?
Both, in the order The Complete Excel Course with AI Integration teaches them, because a hospital's files travel between old and new machines. VLOOKUP comes first (Lesson 68): it runs in every Excel, so a lookup in a file sent to a site on an older version still works. XLOOKUP follows (Lesson 69) and is the better tool wherever it is available: it matches exactly unless told otherwise, looks left or right, points straight at the column to return, and carries its own message for a missing code. An older Excel does not know the function, and Lesson 12 explains #NAME?, the error for a name Excel does not recognise, so you will know the cause on sight. INDEX and MATCH (Lesson 71) give older versions XLOOKUP's freedom of direction. Knowing all three, you write each workbook for whoever will open it, and nobody at a satellite clinic receives a sheet of errors.
Our roster export lists staff by number only: how does VLOOKUP bring in each person's ward and grade?
Through one formula filled down the roster, which The Complete Excel Course with AI Integration builds step by step in Lesson 68. VLOOKUP takes the staff number, finds it in the first column of the staff list, and returns the value from the column you name by its number: the ward from one column, the grade from the next. FALSE at the end asks for an exact match, which a staff number always needs. The lesson then stages the two faults that catch most people. Fill the formula down with the staff list's range unlocked and the rows below return errors, so the range is locked with F4 first. Insert a column into the staff list and the answers turn wrong, because VLOOKUP counts columns by number. The lessons join employees to departments and managers; a roster joins to wards and grades in just that way, and copying details across by hand stops for good.
Can XLOOKUP name every clinic in an activity export and say plainly when a clinic code is new?
Yes, both in one formula, and The Complete Excel Course with AI Integration teaches it in Lesson 69. XLOOKUP takes the clinic code, the column of codes on the mapping sheet and the column to return, locked with F4, plus the text to show when no match exists; the lesson uses n/a, and a clinic opened this month can read Not mapped yet instead. Copied across, the same formula fills the site, specialty and service line columns once each return range is moved along, and an extra column added to the mapping later breaks none of them. Lesson 70 adds the other half: a code edited so that it no longer matches, then IFERROR wrapped round VLOOKUP to show NOT MATCHED, with XLOOKUP's own argument doing that job without IFERROR. A readable flag tells whoever checks the report exactly what to fix, while a bare #N/A explains nothing to the person reading.
What does a two-way lookup do with a grid of wards against months?
It finds the figure where a chosen row meets a chosen column, and The Complete Excel Course with AI Integration teaches it by name in Lesson 69. Healthcare offices keep plenty of grids like that: funded beds by ward and month, establishment hours by ward and grade, budget by cost centre and period. Choose a ward and a month, and a two-way lookup returns the single value where the two cross, so a summary sheet shows the right figure for whichever ward and month a manager types in, with nothing copied across by hand and nothing to update when the selection changes. It comes in the same lesson as XLOOKUP, on PeopleInsight's data, and a ward grid answers in the same way. One formula then replaces the scroll across a wide sheet hunting for the right cell, and it never lands on the wrong row because a column was misread.
Why does a lookup return #N/A when I can see the staff number in the list?
Usually because the two codes only look alike, and The Complete Excel Course with AI Integration teaches the clean-up that makes them match. A trailing space, a letter O typed for a zero or a second spelling is a different value to Excel, and Lesson 70 shows how one changed character breaks a lookup. TRIM, in Lesson 22, strips leading and trailing spaces and shrinks runs of spaces to one, Paste Special values writes the clean codes back over the originals, and Find and Replace, narrowed to one column first, fixes a repeated misspelling. Lesson 23 finds IDs that appear twice, since a lookup stops at the first copy it meets and may return the wrong person. When errors appear only further down the column, the lessons point to an unlocked range. And a drop-down fed from the master list (Lesson 45) stops new variants being typed in the first place.
When should a healthcare administrator use INDEX and MATCH instead of VLOOKUP?
Whenever the code you match on is not the first column of the list, and The Complete Excel Course with AI Integration teaches the pair in Lesson 71. VLOOKUP only searches from its first column to the right, and an exported list can put the staff or supplier number anywhere. INDEX returns the value at a position in a range, MATCH finds the position of a code, with zero for an exact match, and together they look in any direction. The lesson builds the pair on named tables, with an @ reference taking the current row's code, which keeps the formula readable when someone else inherits the workbook. INDEX and MATCH also run in older Excel, which makes them the safe choice for a file shared across sites on mixed versions, while XLOOKUP does the same job more simply wherever every machine has it.
Shifts are logged by ward and date together: how does a lookup match on both at once?
Yes, by joining the two into one key, and The Complete Excel Course with AI Integration teaches every part of that method. CONCAT, the ampersand and TEXTJOIN (Lesson 72) combine columns into one value with a separator between them, so ward and date, or clinic and session, become a single code on both sheets, and an ordinary XLOOKUP matches on it. FinanceGuard works this way at full size: each row of its budget and actual tables carries a key that packs month, department and category into one cell, and its model matches on that key with SUMIFS (Lesson 117). Where several rows meet both conditions and you want all of them, FILTER with AND logic (Lesson 76) returns every one. The choice follows the question: one value for each pair calls for a key, every matching row calls for FILTER.
Can I pull every member of staff on one ward, not just the first match a lookup finds?
Yes, with FILTER, which The Complete Excel Course with AI Integration teaches in Lesson 76. A lookup returns one answer per code; FILTER returns every row that meets a rule, spilled into as many rows as it needs, so the whole of one ward's staff, or every clinic on two sites, appears from one formula that updates when the list changes. The lesson adds conditions with AND, where the asterisk joins them, and OR, where the plus sign does, and warns about misplaced brackets. UNIQUE (Lesson 75) gives the distinct values of a column, every ward code an export holds, which is the quickest way to spot a code the mapping lacks, and SORT and SORTBY (Lesson 77) put the results in order. These spilling functions need a modern Excel and room outside a table to spill into.
A bed or cost centre code holds site, ward and number together: can I split it and look each part up?
Yes, and The Complete Excel Course with AI Integration works on exactly that kind of code in Lesson 73. Its position codes read like DAL-SAL-0001, a location, a department and a number in one cell: LEFT takes characters from the start, RIGHT from the end, and MID from any position for a set length, each filled down the column with one double-click. A cost centre or bed code built the same way splits into site, ward and number, and each part can then be looked up against its own list with XLOOKUP, so the site's name and the ward's manager arrive beside a code that held them only in shorthand. The lesson ends by formatting the sheet as a table with filter arrows, ready for the lookups that follow, and the same three functions read any code that packs several facts into one cell.
Can a lookup show how many days are left before each member of staff's registration or training lapses?
Yes, with a lookup and a date sum side by side, both taught in The Complete Excel Course with AI Integration. When renewal dates live in their own list, XLOOKUP (Lesson 69) brings each person's next date onto the staff sheet by staff number, with a message for anyone missing from the list. Lesson 74 then subtracts TODAY from that date for the days remaining, finds the end of the month it falls in with EOMONTH, and counts the working days between two dates with NETWORKDAYS. Sorted on the days column, the sheet becomes a renewal list in order of urgency, rebuilt every morning without a date typed twice. TaskFlow, from Lesson 79, adds the drop-downs and colours for lapsed and due entries, and these formulas feed it with dates drawn from the source list rather than copied by hand.
Is a lookup formula or Power Query's merge better for a monthly activity export?
Each has its place, and The Complete Excel Course with AI Integration teaches both. A lookup formula (Lesson 69) is live: change a code and the name beside it changes at once, which suits a working sheet such as a roster or a tracker. Power Query's merge, in Lesson 163 of the SalesFusion project, does the lookup inside a query with a left join that keeps every row of the export and brings the names in beside the codes; next month's file gets the same treatment at a refresh, and a code with no match comes back blank, ready to be found. For an export that returns every month in the same layout, the merge saves the most time; for a sheet people edit, the formula wins. Neither needs Windows: in this course only Power Pivot and Power Automate do.
Can Copilot or Claude write a lookup for me, and how would I know it was right?
They can draft one quickly, and The Complete Excel Course with AI Integration makes sure you can judge the draft. Lesson 95 shows the routine on formula columns: Copilot writes the column, you preview and read the formula before inserting it, then check one row by hand; ChatGPT does the same on an uploaded copy. Lesson 104 has Claude in Excel calculate a column and repair an error in another, one permission at a time. For a lookup, the checks from the lookup lessons are the ones that matter: is the match exact, is the range locked, what happens to a code that is not on the list, does the answer survive a new column. Those questions catch a confident wrong answer before it reaches a staffing report. Rows that identify patients stay out of any AI tool your organisation has not cleared.
How long until I can join our staff, clinic and cost centre lists myself?
About 1 hour 17 minutes covers every lesson on this page, and the core arrives much sooner. In The Complete Excel Course with AI Integration, Lesson 67 and Lesson 68 set out the problem and VLOOKUP in a few minutes between them, and by the end of Lesson 70 you can match codes with XLOOKUP and flag the ones that fail, enough to join a roster to the staff list the same day. Every lesson works in PeopleInsight's starter workbook with the finished one beside it, and Lesson 78 closes with a challenge that mirrors a supplies order: item names and per-unit figures fetched by XLOOKUP, each line's total worked out and order IDs reformatted. Lifetime access keeps the lessons at hand when a new export lands, and completing the course earns a Certificate of Completion to show for it.
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 healthcare administrators
- Pivot tables for healthcare admin
- Charts for healthcare administrators
- Dashboards for healthcare administrators
- Conditional formatting for healthcare
- Data cleaning for healthcare
- Data validation for healthcare
- Excel tables for healthcare admin
- Text functions for healthcare admin
- Date functions for healthcare admin
- Dynamic arrays for healthcare admin
- Copilot in Excel for healthcare admin
- ChatGPT for Excel for healthcare admin