The Complete Excel Course with AI Integration
Power Query for health and safety officers
Incident forms, inspection downloads and training records arrive in every shape but the one a report needs, and the same clean-up returns each month. The Complete Excel Course with AI Integration teaches health and safety officers to pass that work to Power Query through SalesFusion, an industry-standard project: steps recorded once, text and dates fixed, site names merged in, every site's log combined from a folder, monthly checks and a training matrix unpivoted.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring an incident, near-miss or inspection export into Power Query with Transform Data, and keep its clean-up as recorded steps that rerun on next month's file.
- Trim site names, incident types and severity codes and give them one case, so Power Query, which treats different capitals as different values, keeps each site as one.
- Turn form dates held as text into real dates, clear placeholders and days that never existed, and add Year, MonthName and YearMonth fields for monthly reporting.
- Write a severity band or a reportable flag into the query with a conditional column, and prove each month's data with a Group By count by site.
- Give every incident its site name, region and manager by merging on the site code, and catch the codes the site list does not know yet.
- Stack every site's monthly log from one folder into a single table that takes in new files at a refresh, each row traceable to its file.
- Reshape a training matrix with a column per course into one row per worker per course with Unpivot Other Columns, ready for counts and expiry lists.
- Leave staging queries as background connections and send just the final table to a sheet, so the workbook stays light as the months add up.
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 as the course's Power Query and data model project on sales exports, it walks a safety officer through the routine behind a monthly HSE report: a faulty export cleaned by recorded steps, codes given names by a merge, a folder's worth of files combined, row counts by month that prove the data, and a wide grid reshaped into rows.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales data, it is where a cleaned table becomes PivotTables, the step that counts your incidents by site, cause and month: dates rolled up into months automatically, slicers that cut the view by site, and Refresh All (Lesson 65), which updates the queries and the PivotTables in one press.
-
Project 08
MarketPulse
One screen that shows which campaigns earn back their spend.
Built as a campaign dashboard, it shows where the clean incident table can end up: PivotTables behind KPI cards, PivotCharts, a timeline and slicers laid out on a single page for the monthly HSE review.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 17 of them, 1 h 36 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 153 SalesFusion Power Query project
Begin at Lesson 153 if your incident log already lives in an Excel table and a PivotTable is familiar: SalesFusion opens with its messy CSV files and grows from one file to a folder full of them. If tables are still new, Lesson 19 and Lesson 57 come first, and a first-time Excel user starts at Lesson 1. Already tidying exports in Power Query? Skip ahead to Lesson 161 for the check queries, then the merge, the append and the folder.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system SalesFusion's goal and the reason Power Query exists, steps recorded once that run again on every fresh file, then a messy CSV imported with From Text/CSV and opened with Transform Data rather than loaded raw. SalesFusion's files hold sales; a near-miss form's export or an inspection download comes in by the same route.
- 153 Start here SalesFusion Power Query project Excel ETL pipeline and data model overview 5 min
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system The clean-up proper: spare columns dropped and headers renamed, codes trimmed and set in capitals, placeholders such as NA turned to real blanks and symbols stripped from figures, numbers and dates given their true types, impossible dates cleared, and five reporting fields from Year to YearMonth added. Every fault a form-fed incident log carries has its step here.
- 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
- 159 Date columns in Power Query Add year, month and year-month fields for reports 7 min
15 SalesFusion: advanced data tools and a Power Query modelling system Logic and proof before anything loads: a Profit column, a margin guarded against dividing by zero, a High or Normal label from a conditional column, returns marked, duplicates dropped, then a reference query grouped by month and region with its sales summed and its rows counted, and the staging work kept as connections only. Swap in a severity band and a monthly count per site.
- 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
- 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
- 162 Close and Load in Power Query Connection only, table or Data Model 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system Merge Queries joining the sales data to its product and region lookups, Left Outer chosen so every sale stays: the step that gives each incident its site name, region and manager from the site list without losing a row.
- 163 Merge queries in Power Query Look up product and region names with a left join 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system Scaling up: the finished steps reused on a second year's file by changing only its source, the years stacked with Append as New, a folder query that cleans and combines each period file with one set of steps and takes in new ones at a refresh, profit and fiscal year columns added there, and the Main Sales File assembled from merges and an append, with its nulls checked. Each site's monthly log saved into one folder is handled the same way.
- 164 Reuse a Power Query pipeline Duplicate queries for a new year of sales data 5 min
- 165 Append queries in Power Query Combine 2024 and 2025 sales tables 3 min
- 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
- 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
- 168 Build a sales fact table in Power Query Merge lookups and append history 6 min
15 SalesFusion: advanced data tools and a Power Query modelling system Unpivot Other Columns on a budget export laid out month by month across the page, giving one row per region, category and month that survives new month columns. The same move turns a training matrix that gives every course its own column into rows of worker, course and completion date.
- 173 Unpivot columns in Power Query Turn wide month columns into a long table 8 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.
Can Power Query make a health and safety officer's monthly incident figures come out the same way every time, whoever prepares the report?
Yes, and that sameness is the heart of it: The Complete Excel Course with AI Integration from Coding Liquids walks you through it on SalesFusion, one of its industry-standard projects, designed after conversations with people across many different industries. Each export is cleaned by steps you record once (Lesson 156 to Lesson 159): codes trimmed, placeholders cleared, dates made real. Flags and checks live inside the query (Lesson 160, Lesson 161); a merge gives every code its name (Lesson 163); one folder query takes in every site's log (Lesson 166); Unpivot reshapes a wide matrix (Lesson 173). Next month you, or a colleague covering your leave, save the new files and press Refresh, and every recorded step replays on them, so the figures follow one method whoever sits at the desk. The lessons clean sales exports, and incident, inspection and training files take the same steps. Set out in the order of a safety officer's month, the 17 lessons here come to 1 hour 36 minutes.
Should the near-miss form's export go straight into the incident log, or come in through Power Query first?
Through Power Query, because a copy pasted today is a copy cleaned again next month. The Complete Excel Course with AI Integration makes the case in Lesson 155: Load drops a file onto the sheet exactly as it arrives, while Transform Data opens it in the Power Query Editor, where every fix becomes a saved step. Lesson 153 and Lesson 154 explain why that matters, the ETL routine of extract, transform and load, in which the steps are recorded once and replayed on every fresh file. For a near-miss form, the downloaded export is left untouched, exactly as the form produced it, while the log you report from is rebuilt from it at each refresh. Lesson 162 then holds the in-between queries as connections in the background and puts only the end result on a sheet, so the workbook stays quick as the months pile up.
Site names turn up as 'Plant 2', 'plant 2 ' and 'PLANT 2': will Power Query treat them as one site?
They become one site the moment the query trims them and sets one case, and The Complete Excel Course with AI Integration teaches both steps in Lesson 157. The lesson matters more than it looks, because Power Query is case-sensitive: to it, Plant 2, plant 2 and PLANT 2 are three different sites, and a trailing space makes a fourth, so a Group By count would split one place into several. Trim takes off the stray spaces, a case command such as UPPERCASE gives every entry the same capitals, and Replace Values swaps a known misspelling for the right name. Because these are saved steps, next month's export gets the same treatment without a click. Excel's own counts, lookups and PivotTables ignore capitals, but Power Query does not, which is exactly why this clean-up belongs in the query.
Injury dates arrive as text, with n/a and the odd day that never existed: can the query turn them into dates the monthly counts can use?
Yes, and the fix carries over to every later export. The Complete Excel Course with AI Integration works through exactly this in Lesson 159: Replace Values clears placeholders such as n/a and a 'not a date' entry, an impossible date is removed first because it would break the conversion, the column is set to Date/Time and then to Date, and anything still unreadable becomes a blank through Replace Errors. Stepping back through Applied Steps shows each fix at work. The lesson then adds five reporting fields, from Year and MonthNumber to MonthStart and YearMonth, so incidents sort by month in calendar order rather than alphabetically. Lesson 158 does the same for figures, turning text into true numbers, which lost days need before they can be summed. Every monthly count downstream then rests on dates that really are dates.
Can Power Query add the columns the report needs, such as a severity band from lost days, so nobody types them by hand?
Yes: the query can write them itself, and The Complete Excel Course with AI Integration builds four such columns in Lesson 160: Profit, a Margin that returns a blank rather than dividing by zero, a HighValue label of High or Normal from a conditional column, and an IsReturn marker. On an incident log the same tools give a severity band from lost days, a yes or no for injuries that must be reported, and a label separating near misses from injuries. Because the rule lives in the query, it runs identically at every refresh, so two reports built from the same data can never disagree about which incidents count as serious. You set the rule once, in plain terms a reviewer can read in Applied Steps, and it applies to every row of every month that follows.
Before the monthly figures go out, how can I prove the query holds every incident, once?
With a check query that counts rows, which The Complete Excel Course with AI Integration builds in Lesson 161. A reference query, still wired to the cleaned data, is grouped by month and region with Group By, giving each group its total and its row count, sorted biggest first so a figure that looks too good stands out at once. Group by month and site instead and your counts can be held against the number of reports the form received. Duplicates are handled in Lesson 160, where Remove Duplicates runs on the ID column, so a report submitted twice counts once. After merges and appends, Lesson 168 checks the key columns for nulls, because a join can let blanks in. Rows with a null month point straight to dates the raw file could not read, so the check finds faults as well as proving totals.
The log records site codes, but the committee wants site names, regions and managers: can a query add them?
Yes, with a merge, Power Query's own form of lookup, which The Complete Excel Course with AI Integration teaches in Lesson 163. The lesson joins the sales data to two lookup files, products and regions, choosing Left Outer so every sale survives whatever the lookup holds, and expands the new columns without a prefix. Point the same merge at a site list keyed by site code, holding the name, region and manager, and every incident gains those columns at each refresh. A new site missing from the list shows empty name and region cells instead of disappearing from the count, and Lesson 168 shows the habit that catches it: look for nulls after every merge. Update the site list once and every past and future incident reads correctly, with no lookup formula copied down thousands of rows.
Every site keeps its own monthly log: can Power Query combine them all without me opening each file?
Yes: one folder query does it, and Lesson 166 of The Complete Excel Course with AI Integration shows how. From Folder, then Combine and Transform, stacks all the folder's files into one table, with a Source.Name column that names the source file on every row, so any site's entries stay traceable inside the stack. Fixes made in the Transform Sample File reach every file, and a new file saved into the folder is picked up at the next refresh. Lesson 167 adds calculated columns inside the same query, the natural home for a severity band. The lesson also switches column profiling to the whole data set, with column quality and distribution in view, a quick way to spot a site whose log is missing dates. It works when every site fills in the same template, so the columns line up.
Can this year's incidents sit under last year's for a year-on-year comparison when each year is a separate export?
Yes, without rebuilding a single step. The Complete Excel Course with AI Integration shows the move in Lesson 164: the finished query for one year is duplicated, its Source step is redirected to the following year's export, and every saved step runs on the new data, followed by an audit of the nulls the new file brings. Lesson 165 then stacks the two years with Append as New, which leaves both sources untouched so any fault can be traced back, and relies on matching headers to line the columns up. On the stacked table a PivotTable sets this year's incidents beside last year's by month or by site. Appending stacks rows, where a merge adds columns, and the lesson makes that difference plain. Each new year then costs a duplicate and an append, nothing more.
Our training matrix has a column for every course, with completion dates beneath: can Power Query turn it into one row per worker per course?
Yes: Unpivot Other Columns does it in one step, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on a budget export laid out with a month in every column. You select the columns that describe each row, here the worker, the site and the role, and unpivot the rest, so every course column becomes rows of course name and completion date. Because the step names the columns it keeps rather than the ones it turns, a course added to the matrix next quarter joins the result without the query being touched. In the long shape, COUNTIFS and PivotTables can answer who holds which ticket, which courses each site is missing and which certificates expire in which month. The lesson also renames the new columns and clears n/a from the values, steps a training matrix needs as well.
Our inspection form gains a new question now and then: will that break the query?
Built the way The Complete Excel Course with AI Integration teaches, the query takes new columns in its stride and shows you exactly where anything else went wrong. A step that names the columns it keeps, as Unpivot Other Columns does in Lesson 173, lets new columns arrive without breaking anything. When a step does fail, Lesson 167 shows the usual cure: the lesson deletes a Changed Type step that was causing an error, and notes that most Power Query errors vanish once the step that caused them is removed. Lesson 153 adds the rule that keeps connections alive: every source file stays in the project's folder, so a moved file never cuts the query off. And because each fix is a visible step in Applied Steps (Lesson 156), a new form layout is repaired one step at a time instead of by rebuilding the clean-up.
The safety dashboards I find online are all Power BI: does my monthly report need it, or will Excel do?
Excel will do, and The Complete Excel Course with AI Integration teaches Power Query where you already work, under Get Data on Excel's Data tab (Lesson 155). Lesson 154 sets out the ETL routine and notes that cleaned data can load into Excel or into Power BI, so nothing learned here is wasted if your organisation adopts Power BI later. For the monthly report itself, the clean table feeds the PivotTables, KPI cards, slicers and timeline that MarketPulse assembles into a dashboard (Lesson 112), which is the shape of a monthly HSE pack. Power BI itself is not taught in the course. The step beyond this page, a data model with relationships in Power Pivot (Lesson 169), needs Excel for Windows, while the Power Query lessons listed here carry no such requirement.
I am a safety professional, not a data person: is Power Query within my reach?
Yes, because Power Query is mostly clicked rather than coded, and The Complete Excel Course with AI Integration teaches it from the first import. Getting a file in is a menu: Get Data, From Text/CSV, Transform Data (Lesson 155). Trimming, setting case, replacing values and fixing types are right-clicks and ribbon buttons, each one written into Applied Steps for you (Lesson 156 to Lesson 158). Typing comes in only for a short custom column, such as a profit figure or a severity label (Lesson 160), and it reads like an ordinary Excel formula. A safety professional already works the right way: one consistent method, applied every time, checked before it is trusted, which is exactly what a query is. The SalesFusion files and the finished workbook let you test each step, and on the plan with instructor support, questions about your own exports are answered in writing.
Which part of my monthly routine will the lessons hand to Power Query first?
The clean-up of a single export comes first, and The Complete Excel Course with AI Integration gets you there early. By Lesson 159 one incident or near-miss export goes from raw file to trimmed codes, real dates and reporting fields through recorded steps. Repeat them on next month's real file and that tidying is finished for good. Checks and flags follow (Lesson 160, Lesson 161), then site names by merge and the year-on-year stack, and by Lesson 166 every site's log arrives through one folder query. The training matrix unpivot closes the path. All of it takes 1 hour 36 minutes of lessons, with the dataset and the finished SalesFusion workbook to compare against at every step. With lifetime access, the lessons are still there when a new export turns up, and finishing the course earns the Certificate of Completion.
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
- Lookups 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 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