The Complete Excel Course with AI Integration
Excel data cleaning for payroll administrators
Every pay period the inputs arrive in a state no formula can trust: names with trailing spaces, departments spelt three ways, hours stored as text and an employee listed twice. The Complete Excel Course with AI Integration teaches payroll administrators to clean all of it on industry-standard projects, first with worksheet tools, then with Power Query that replays the clean-up on each new export. This page picks out those lessons in the order a pay-run clean-up takes.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Strip stray spaces out of names, IDs and departments with TRIM, then paste the clean values back so a timesheet matches the employee master.
- Settle a department or pay code typed three ways into one with Find and Replace, SUBSTITUTE and PROPER, so totals by cost centre stop splitting.
- Find the hours and amounts held as text with COUNT set against COUNTA, then turn them into real numbers that SUM and SUMIFS can read.
- Remove duplicate employee rows with Remove Duplicates or a table filter, keeping the record you choose and every genuine second pay line.
- Split full names and combined fields into separate columns with Flash Fill and Text to Columns, ready for a bank file or a payroll upload.
- Record the clean-up of a recurring timesheet or register export once in Power Query, so it runs again on the next file at a refresh.
- Let Copilot take the first pass at a messy input sheet, then prove the result with counts before it reaches the run.
- Stop new mess at the source with a drop-down list of approved departments on the sheets managers fill in.
Projects
What you will build.
The course has 14 industry-standard projects. These three matter most here.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built on sales exports, its Power Query half answers the timesheet or register export that comes back every period with the same faults: codes trimmed, symbols stripped from amounts, NA turned into true nulls and each column given its proper type.
-
Project 14
Agentic AI in Excel
AI finds and fixes the formula; you check it before it counts.
Built on sales orders, its cleaning lesson has Copilot remove stray spaces and settle every spelling into one form; on input sheets from many managers that first pass is quick, and the counts taught alongside make it safe.
-
Project 02
Dunder Michael Paper Company employee database
Built as an employee database, it holds the faults a payroll master file collects: padded names, departments in two spellings, repeated IDs and full names in one cell, each cleared with a worksheet tool you can turn on your own staff records the same afternoon.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 19 of them, 1 h 41 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 22 Cleaning data in Excel
Start at Lesson 22 if you can already enter data and move around a sheet: the clean-up begins there on an employee list, and the counts, text functions and Power Query follow in the order a pay-run clean-up takes. If Excel tables are new to you, take Lesson 19 first. New to Excel altogether? Begin at Lesson 1. Already trimming and respelling timesheets by hand each period? Go to Lesson 154, where that routine becomes a query that replays itself.
19 of 186 lessons · 1 h 41 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) The worksheet clean-up on an employee list: TRIM in a helper column pasted back as values, Find and Replace for spellings and stray symbols with the column selected first, Remove Duplicates down to one row per employee ID, Flash Fill splitting full names, and Text to Columns cutting a field at a delimiter. Every fault in it turns up in timesheet and HR exports.
- 22 Start here 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
- 24 Flash Fill in Excel Split first and last names automatically 3 min
- 25 Text to Columns in Excel Split data by delimiter into separate columns 6 min
04 Essential formulas and functions (IF, SUMIF and more) COUNTA, unique counts and completeness checks: COUNT set against COUNTA on one column shows the cells holding text where a number should be, and COUNTA wrapped round UNIQUE counts distinct values, quick proof that a pay file hides no text amounts or repeated IDs. UNIQUE needs a modern Excel.
- 35 SUM, COUNT and COUNTA in Excel COUNTA, unique counts and completeness checks 4 min
05 Text functions and data validation (enhancing data quality) Text functions and data validation on the employee list: CONCAT and TEXTJOIN, TRIM with UPPER, LOWER and PROPER, FIND, SEARCH and SUBSTITUTE, Text to Columns by comma, a drop-down that stops new spellings at entry, and a Ninja Challenge that cleans a messier list, from casing and split names to one format for employee IDs.
- 41 CONCAT, the & operator and TEXTJOIN in Excel Combine text from multiple cells 6 min
- 42 TRIM, UPPER, LOWER and PROPER in Excel Clean messy text and fix capitalisation 6 min
- 43 FIND, SEARCH and SUBSTITUTE in Excel Locate and replace text with formulas 5 min
- 44 Text to Columns wizard in Excel Split a column by a comma delimiter 4 min
- 45 Data validation in Excel Create drop-down lists for consistent data entry 4 min
- 46 Ninja Challenge: problem Clean messy data with text functions and validation 4 min
- 47 Ninja Challenge: solution PROPER, Text to Columns and drop-down lists 7 min
07 PivotTables and PivotCharts: data analysis made easy Preparing data for PivotTables: a stray space or a second spelling makes one region appear twice in a PivotTable, so the lesson cleans with Find and Replace, TRIM and PROPER and deletes the empty row that can make a PivotTable think the data ends early. Payroll cost by department depends on the same tidy column.
- 58 Preparing data for PivotTables Clean data with TRIM, PROPER, find and replace 5 min
10 Boosting productivity with AI in Excel (Copilot, ChatGPT and Claude) Clean messy data with Copilot: stray spaces removed and each inconsistent spelling settled into one form, a cleaning plan asked for, and a standardised column offered to insert, AI prompts working alongside Excel's own functions on a sheet that is messy on purpose.
- 97 Clean messy data with Copilot in Excel AI prompts plus Excel functions 4 min
15 SalesFusion: advanced data tools and a Power Query modelling system Power Query for the export that returns every pay period: the ETL idea, a CSV brought in with Transform Data, columns removed and renamed, codes trimmed and put in one case, symbols, commas and NA stripped out of amounts, and each column given a true number, date or text type. Every step is saved and runs again on the next export at a refresh.
- 154 Introduction to Power Query in Excel The ETL workflow explained 5 min
- 155 Import a CSV with Power Query Get data from text and transform data 2 min
- 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
- 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
- 158 Data types in Power Query Fix date, whole number, decimal and text types 7 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.
Payroll administrators clean the same timesheet and HR exports every pay period: which Excel course teaches that clean-up properly?
The Complete Excel Course with AI Integration from Coding Liquids does, from the first stray space to a clean-up that runs by itself. Its industry-standard projects, designed after talking with people from many different industries, include an employee database with every fault a master file collects: padded names, departments in two spellings, repeated IDs and full names crammed into one cell. The worksheet tools come first, TRIM, Find and Replace, Remove Duplicates, Flash Fill and Text to Columns (Lesson 22 to Lesson 25), then text functions and a Ninja Challenge on a messier list. Power Query follows, recording the same clean-up once for the export that returns every period (Lesson 154 onwards). The 19 lessons chosen for payroll run to 1 hour 41 minutes, each with its practice files, so you clean the course's data first and your own inputs the following pay period.
What should happen to a payroll export before any formula touches it?
Five things, in this order, and The Complete Excel Course with AI Integration teaches each. Keep the export exactly as the system produced it: a Power Query connection reads the file without changing it (Lesson 155). Clear out empty rows and columns, since an empty row can make a PivotTable think the data ends early (Lesson 58). Trim the spaces and settle the spellings with TRIM and Find and Replace (Lesson 22). Remove true duplicates, choosing between clearing one column and removing whole rows (Lesson 23). Then make every number a number: COUNT set against COUNTA finds the text amounts (Lesson 35), and Power Query's data types fix them for good (Lesson 158). Only after that do SUMIFS, lookups and PivotTables see the payroll as it really is, and the totals you report tie back to the source.
Hours and amounts arrive as text, so SUM leaves them out: which lessons fix that?
The Complete Excel Course with AI Integration finds the problem first, then fixes it twice, once on the sheet and once in Power Query. Lesson 35 finds it: COUNT set against COUNTA on the same column shows how many cells hold text where a number should be, so a short total is explained before anyone reports it. Lesson 22 fixes it on the sheet: Find and Replace, narrowed to the selected column, strips the dashes and stray characters that turned figures into text. Lesson 157 and Lesson 158 fix it for every export to come: Replace Values strips money symbols, commas and NA entries from amount columns, numbers written as words are replaced, and each column becomes a true decimal or whole number. A payroll total that silently skips one text hours cell underpays someone, so this is the check worth running on every input file, every period.
A trailing space in an employee ID stops the timesheet matching the master file: what does the course do about it?
TRIM removes it, and The Complete Excel Course with AI Integration teaches the fix on the sheet and again in Power Query. On the worksheet, TRIM in a helper column strips leading and trailing spaces and cuts runs of spaces down to one, and Paste Special values writes the clean result back over the original before the helper is deleted (Lesson 22, Lesson 42). Power Query's Trim and Clean steps in Lesson 157 do the same job on every export that follows, with no helper column at all. The payoff is direct: an employee whose ID carries an invisible space looks present to you and absent to a lookup, and on payroll that can mean a shift that never gets paid. Once both files are trimmed, the match runs on what the ID really is, and Lesson 70 shows how to make any remaining miss read NOT MATCHED instead of an error.
Managers type the same department three ways: can the course get them down to one before I total by cost centre?
Yes, and The Complete Excel Course with AI Integration closes the door behind the fix as well. Find and Replace in Lesson 22 settles each spelling into one, with the lesson's own warning: select the column first, because a Replace All on the whole sheet once removed every dash in it. SUBSTITUTE in Lesson 43 makes the same swap by formula, without that risk, and PROPER in Lesson 42 gives every name one tidy form. Why it matters is shown in Lesson 58: a stray space or a second spelling makes one region appear twice in a PivotTable, and the same fault splits a cost centre's payroll cost across two lines. Then Lesson 45 stops the next variant at entry with a drop-down of approved departments, because Excel treats HR and Human Resources as two different departments.
Can I remove duplicate employees without losing a genuine second pay line for the same person?
Yes, because The Complete Excel Course with AI Integration teaches Remove Duplicates as a decision, not a button. Lesson 23 first lights up the repeated employee IDs, then shows the two choices the dialog offers: Continue with the current selection clears values from one column only, while Expand the selection removes whole rows, judged by the columns you tick. Tick the employee ID alone on a master list, where one person should have one row. On an input file where one person rightly has several lines, basic pay and an overtime claim say, tick the ID together with the pay date and the pay code, so only a line repeated in all of them goes. For cases that need judgement, the lesson's third method filters the table to the repeated IDs and lets you delete by hand the record you do not want, the safest route when two rows disagree.
Is there practice on a messy employee file before I clean live payroll data?
Yes: the Ninja Challenge of The Complete Excel Course with AI Integration is built for exactly that rehearsal. Lesson 46 gives you an employee list left untidy on purpose, with a sheet of tasks to attempt on your own first: casing to correct in names and departments, full names to separate, email addresses to rebuild from the names, a location that appears under two names, a drop-down to add, and staff IDs keyed as EM-01 beside EM-002 to bring into line. Lesson 47 then works through the answer, nesting TRIM and PROPER, splitting with Text to Columns, wrapping CONCAT in LOWER and setting four drop-down columns. A payroll master file collects every one of those faults over time, so practising on a starter file, with the solution file beside it, means your first attempt never lands on live pay data.
Names come in capitals from one system and in lower case from another: does that matter?
It matters for how the register reads and for Power Query, and The Complete Excel Course with AI Integration fixes both. Excel's counts, totals, lookups and PivotTables read a name in capitals and the same name in title case as one, so capitals alone do not split a total; what splits one is a stray space or a second spelling. Mixed capitals still make a register, a payslip list or a bank file look careless, and Lesson 42 cleans them with UPPER, LOWER and PROPER, nested with TRIM and pasted back as plain values so no helper column is left behind. Power Query is another matter: it is case-sensitive, so North and NORTH would be two regions there, and Lesson 157 puts codes into one case before anything is grouped. Tidy capitals are the mark of a file that has been checked, and the lessons make them a quick job.
Can I split full names, or a combined field, into separate columns for the bank file?
Yes, two ways, and The Complete Excel Course with AI Integration shows which one suits each payroll file. Flash Fill, in Lesson 24, learns from an example: key in the first employee's first name, press Ctrl+E and the rest of the column follows, after which every result deserves a glance, since an unusual name can throw it. Text to Columns, in Lesson 25 and Lesson 44, splits at a fixed character instead, a space, a comma or one you name, which is the safer choice for an export laid out by a system. Two habits from those lessons prevent real harm: make room with an empty column before splitting, so the data beside it survives, and tick Treat consecutive delimiters as one, so a double space never produces a blank field. When a bank or pension upload wants surname and first name in separate fields, the retyping stops there.
The same timesheet faults come back every pay period: can I fix them once and replay the fix?
Yes: that is what Power Query is for, and The Complete Excel Course with AI Integration teaches it from the first import. Lesson 154 explains the idea, a clean-up set once and replayed, and Lesson 155 brings a CSV in with Transform Data rather than Load, so it opens in the Power Query Editor instead of landing on a sheet as it is. From there each step is recorded in Applied Steps: columns removed and renamed (Lesson 156), codes trimmed, cleaned and put in one case, symbols and NA entries replaced (Lesson 157), and true number, date and text types set (Lesson 158). Next period, save the new export in place of the old one, refresh, and every step runs again on it. The worksheet methods earlier on the page stay the right tool for a one-off file; the export that returns every pay period belongs in a query.
Can I hand Copilot the managers' messy overtime sheets and treat its clean-up as final?
Copilot makes a fast first pass, and The Complete Excel Course with AI Integration teaches the checks that turn it into a final one. In Lesson 97, Copilot's own suggestion removes stray spaces, each inconsistent spelling is settled by picking one form, a cleaning plan is requested covering text fields, extra spaces, casing and missing values, and App Skills offers a standardised column to insert. The lesson's point applies straight to payroll: to Excel, one department spelt three ways is three departments, and Copilot finds most of them quickly. Before the result reaches a pay run, it is checked like any other input: Lesson 99 gives a short checklist for AI output, and the counts of Lesson 35 confirm that no text amounts or repeated IDs remain. Copilot needs to be part of your Microsoft 365; the checks need nothing beyond Excel.
What proves a payroll file is clean before it goes into the run?
A handful of counts, and The Complete Excel Course with AI Integration teaches every one of them in Lesson 35. COUNT set against COUNTA on the hours or amount column shows how many cells hold text where a number should be; the two should agree. A COUNTA of the employee ID column, set against the count of any required column, shows how many rows leave that field blank. COUNTA wrapped round UNIQUE counts the distinct IDs in a modern Excel, and when that figure falls short of the number of rows, someone appears twice. Each check is one formula kept beside the data, and the set takes seconds to read. For the export that returns every period, Power Query's Group By in Lesson 161 totals and counts by group, so the figures can be tied back to the payroll system's own report. Clean then becomes something you can show a reviewer.
The lessons clean employee lists and sales exports: will the methods carry to a payroll register?
Yes, because a clean-up method does not care what the rows hold, and The Complete Excel Course with AI Integration chose its data to make that plain. The employee database of Lesson 22 to Lesson 25 is close kin to a payroll master file: IDs, names, departments, locations, a salary column and a status. The Ninja Challenge list of Lesson 46 carries the faults that creep into HR records. The SalesFusion exports of the Power Query lessons arrive with text where figures belong, codes in mixed case and NA entries, exactly the trouble a timesheet or register export brings. Swap the column names and every step applies: trim the IDs, settle the departments, turn text hours into numbers, remove the duplicate rows. The payroll rules you apply afterwards are your own; the clean data they run on is what these lessons give you.
Could I have this period's timesheet export cleaned with these lessons before the next payroll cut-off?
Yes: the whole path is 1 hour 41 minutes, and its worksheet half is short enough for an evening. In The Complete Excel Course with AI Integration the clean-up of one file, trimmed, respelt, de-duplicated and split, is complete by Lesson 25, so this period's timesheet can be cleaned with what those lessons teach. The counts and text functions follow, and by Lesson 158 the same clean-up is a Power Query waiting for next period's file. Every lesson comes with its practice files and the finished version to compare against, and lifetime access keeps the lessons open for the next new kind of export. Completing the course also earns a Certificate of Completion with a verification link an employer can check, proof that the files you hand over are cleaned by method rather than by luck.
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 payroll administrators
- Lookups for payroll administrators
- PivotTables for payroll administrators
- Charts for payroll administrators
- Dashboards for payroll administrators
- Conditional formatting for payroll
- Data validation for payroll admins
- Excel tables for payroll administrators
- Text functions for payroll admins
- Power Pivot and DAX for payroll admins
- Macros and VBA for payroll admins
- Power Automate for payroll admins
- Claude in Excel for payroll admins