The Complete Excel Course with AI Integration
Pivot tables for health and safety officers
An incident log answers nothing until someone counts it, and the count changes every time the safety meeting asks a new question. The Complete Excel Course with AI Integration teaches PivotTables that recount it in seconds, on industry-standard projects, and this page picks out every pivot lesson a safety officer needs: a log kept as a table, the PivotTable section in full, a sheet of pivots behind a report, a matrix by month, Copilot's pivots and a data model for rates.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Count incidents by site, by type and by month in one PivotTable, with sites nested over areas and the question changed by dragging a field.
- Clean an incident log before pivoting it, with Find and Replace, TRIM and PROPER, so a stray space or a second spelling never splits one site into two rows.
- Show incident counts, lost days and the average days lost side by side, choosing each summary in Value Field Settings.
- Group incident dates into years, quarters and months, split them by shift and chart the monthly trend as a line PivotChart.
- Report how long corrective actions take to close by site and owner, and pass and fail counts by area and inspector, in layouts a committee can read.
- Keep the log as an Excel table and use Refresh All so the morning's near miss is in every pivot before the report goes out.
- Lay out a grid of sites against months for the safety committee, on the pattern of a department by month matrix.
- Relate an incident log and an hours table in a Power Pivot data model and measure a rate per site with DAX that recalculates for every slicer.
Projects
What you will build.
The course has 14 industry-standard projects. These five matter most here.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales data, it is the course's PivotTable workshop from a raw file to a refreshed report. Its orders carry a date, a place, a category and a figure on every row, the same build as an incident log, so each pivot you make there has a safety twin you can build the next morning.
-
Project 08
MarketPulse
One screen that shows which campaigns earn back their spend.
Built on campaign data, its back end shows how to run a whole sheet of PivotTables, each copied from the last and rebuilt for its own question, with rates worked out under the totals and Copilot's pivots checked against yours, the set-up behind a monthly safety pack.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
Built for budget against actual, its pivot workspace lays departments against months in a matrix beside views by month, department and category, the grid a safety committee reads as sites against months.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built as a sales reporting system, its data model relates a sales table to its lookups in Power Pivot and measures them with DAX, the route to an incident rate per site when incidents and hours worked sit in separate tables. Power Pivot needs Excel for Windows.
-
Project 14
Agentic AI in Excel
AI finds and fixes the formula; you check it before it counts.
Built on an order table, its PivotTable lesson has Copilot produce a summary from one precise prompt, which shows what a request for incidents by site and month must name to come back right the first time.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 20 of them, 1 h 41 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 57 PivotTables 101 in Excel
Start at Lesson 57 if your incident log is already an Excel table; if it is not, Lesson 19 turns it into one first, and if Excel itself is new, begin at Lesson 1. The runs after the PivotTable section belong to projects with their own data, so build MarketPulse from Lesson 105 and SalesFusion from Lesson 153 before their pivot lessons if you have not. Comfortable with pivots already? Go straight to the data model at Lesson 169 for rates per site.
20 of 186 lessons · 1 h 41 min
03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) Excel tables: create one, style it, add a total row and watch new rows join it. An incident log kept as a table hands every new entry to the PivotTables built on it at the next refresh, with no source range to stretch by hand.
- 19 Excel tables Create and format a table, structured references and total row 8 min
07 PivotTables and PivotCharts: data analysis made easy PivotTables on SalesPlusPerformance's order data, start to finish: the source cleaned so each value is written one way, a first PivotTable, rows, columns, values and Value Field Settings, dates grouped into years, quarters and months, slicers, PivotCharts, report layouts and styles, refreshing when the data changes, and a challenge to finish on your own. Each step is a step of the monthly incident summary.
- 57 Start here PivotTables 101 in Excel What a PivotTable does and the sales dataset 5 min
- 58 Preparing data for PivotTables Clean data with TRIM, PROPER, find and replace 5 min
- 59 Create your first PivotTable in Excel Insert a PivotTable from a sales table 1 min
- 60 PivotTable fields in Excel Rows, values, columns and Value Field Settings 2 min
- 61 PivotTable summaries in Excel Sales by product category and grouping by date 4 min
- 62 Slicers in Excel Filter PivotTables with clickable buttons 3 min
- 63 PivotCharts in Excel Create interactive charts from a PivotTable 5 min
- 64 PivotTable design Tab Report layouts, PivotTable styles and number formats 5 min
- 65 Refresh a PivotTable in Excel Update pivots when source data changes 2 min
- 66 Excel Ninja Challenge PivotTable sales by region, category and monthly trend 1 min
10 Boosting productivity with AI in Excel (Copilot, ChatGPT and Claude) Copilot builds a PivotTable of revenue by region and month from one precise prompt and sorts it on a precise follow-up, while a vague request returns only advice: the wording that gets an incident pivot built for you.
- 92 PivotTables with Copilot Build an Excel PivotTable from a prompt 5 min
11 MarketPulse campaign intelligence dashboard MarketPulse's back end: a sheet of PivotTables, each copied from the last and rebuilt for its own question, rates worked out under the summary with IFERROR, then Copilot's pivots checked against the hand-built ones total by total. A monthly safety pack runs on the same arrangement.
- 108 Marketing PivotTables in Excel Build the MarketPulse pivot back end 6 min
- 109 CTR, conversion rate and ROI in Excel Marketing KPI formulas with IFERROR 4 min
- 110 PivotTables with Copilot Generate and verify marketing pivots in Excel 6 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) The FinanceGuard pivot workspace: views by month, department and category and a department by month matrix, built on a table of values pasted from the model. With sites in place of departments, it is the committee's grid.
- 120 PivotTables for budget vs actual The FinanceGuard pivot workspace 8 min
15 SalesFusion: advanced data tools and a Power Query modelling system PivotTables on a data model: tables related in Power Pivot's Diagram View, DAX measures such as a margin worked out with DIVIDE as the values, a report in tabular form, then PivotTables by region, month and top products under shared slicers. This is the route to rates that need an hours table beside the log, and these lessons need Excel for Windows.
- 169 Power Pivot Data Model in Excel Relationships and Diagram View 6 min
- 170 DAX measures in Power Pivot Total sales, margin percent and percent of total 10 min
- 171 PivotTable report from the Data Model Format the SalesFusion report in Excel 5 min
- 172 Interactive Excel dashboard Data model PivotTables, slicers and styling 10 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.
Which course shows a health and safety officer how to cut the incident log with pivot tables, by site, type and month, live in the safety meeting?
The Complete Excel Course with AI Integration from Coding Liquids does, teaching PivotTables hands-on through industry-standard projects designed after talking with people from many different industries. Its PivotTable section works on SalesPlusPerformance, an order file with a date, a place, a category and a figure on every row, the same build as an incident log, and takes you from cleaning the source (Lesson 58) through grouping dates (Lesson 61), slicers (Lesson 62) and PivotCharts (Lesson 63) to refreshing the result (Lesson 65). This page adds the pivot work of the later projects: a sheet of PivotTables behind a dashboard, a matrix of departments against months, Copilot's pivots checked against yours and PivotTables on a data model for rates. In all, 20 lessons over 1 hour 41 minutes, after which a fresh count by site, type or month takes seconds, even with the whole meeting watching.
Incidents by site, by type and by month: can one pivot table give the safety meeting all three?
Yes, and switching between them takes one drag, which is the point The Complete Excel Course with AI Integration makes in Lesson 60. Put the site in Rows and the incident type in Columns, set the incident ID in Values to count, and Excel fills every cell with a count of events, with grand totals along both edges. Fields stacked in Rows nest, so the lesson's states sit under their regions and collapse or expand at a click, exactly as your areas can sit under their sites. Move the date into Rows and Lesson 61 shows Excel grouping it into years, quarters and months by itself. Add the site as a filter or a slicer (Lesson 62) and the whole table narrows to one site without the log being touched. The chair's next question is one more drag, never one more evening of formulas.
Our incident log has the same site typed in different ways: will a pivot table still count it as one site?
One site, one spelling: The Complete Excel Course with AI Integration makes that the first job before any pivot is built. In Lesson 58 messy text makes a region appear twice in the PivotTable, because a stray space or a second spelling turns one value into two as far as Excel is concerned. The lesson cleans it the way you would clean a log filled in by several people: Find and Replace for the spellings, TRIM in a helper column for the stray spaces, pasted back as values, PROPER so names read neatly, and the empty row and column deleted so the PivotTable does not think the data ends early. The clean range then becomes an Excel table. Do that once to the log, add a site drop-down (Lesson 45) so new entries arrive spelled one way, and the counts by site stay whole every month.
Can one pivot table show the number of incidents and the lost days they caused side by side?
Yes, because the Values area takes several fields at once, and The Complete Excel Course with AI Integration puts two figures there together in Lesson 61. Place the incident ID and the lost days column both in Values, then set the ID to Count and the lost days to Sum in Value Field Settings, the dialog Lesson 60 uses to change how a field is summarised: Sum is the default, the lesson switches one field to Minimum, and Count and Average sit in the same list. Add the lost days a second time set to Average and the days lost per incident join as a third column. Lesson 64 then sets the report layout, the grand totals and a number format, so the table reads cleanly in the monthly pack. Severity, from first aid case to lost-time injury, makes a natural field across the top.
Can a pivot table show whether incidents cluster on night shifts or in particular months?
Yes, and The Complete Excel Course with AI Integration gives you both halves of the pattern. Dates first: put the incident date in Rows and Excel groups it into years, quarters and months by itself, and removing a level, as Lesson 61 does, switches between a quarterly, a monthly and a daily view. Then the shift: placed as a column field it splits every month into day, late and night, so a run of night-shift incidents stands out along one row. Lesson 63 turns the monthly view into a line PivotChart, titled and labelled for reading, because a line shows a trend where columns compare categories. The order file in the lessons even carries ready-made month and quarter columns (Lesson 57), a habit worth copying in your own log so any pivot can group by period in seconds.
Can a pivot table show how long corrective actions take to close, by owner and by site?
Yes, once the action log has a column of days to close, which a formula supplies, and The Complete Excel Course with AI Integration covers both parts. Today minus the date raised, or the closing date minus the date raised once there is one, is the date arithmetic of Lesson 39. In the pivot, sites go in Rows with owners nested beneath them, the status in Columns and days to close in Values, set to Average in Value Field Settings (Lesson 60). The owner whose actions take three times as long as everyone else's, or the site where overdue actions pile up, is then plain at a glance, and the review knows where to push. The lessons summarise sales by region, state and channel in exactly this arrangement; the fields you drop into it are yours.
Our inspection results sit in one long list: can a pivot table show pass and fail by area and inspector?
Yes, as a count of results under each pass or fail column, and The Complete Excel Course with AI Integration teaches every step on its sales data. The area goes in Rows with the inspector nested beneath it, the result in Columns and the checklist item's ID in Values, counted; Lesson 60 builds that same arrangement with regions, states and sales channels. Lesson 64 then turns it into a report people can read: outline form so each field has its own column, grand totals on or off, banded rows and a style. Add the month as a slicer (Lesson 62) and the table shows any month's inspections at a click. The gaps an audit asks about, an area failing the same item month after month or an inspector who has stopped submitting, surface without a single COUNTIFS written by hand.
New incidents are logged every day: how does the pivot table keep up with them?
Two habits keep it current, and The Complete Excel Course with AI Integration teaches both. First, the log lives in an Excel table (Lesson 19): each incident typed below the last row becomes part of the table, so the source behind the pivot grows by itself. Second, the pivot is refreshed: it reads the log only when asked, and Lesson 65 shows a new entry missing until a refresh brings it in, with Refresh All updating every pivot in the file in one click. In a safety meeting a stale figure means an incident left out of the count, the one slip that costs a report its credibility. Make Refresh All the last click before the pack goes out, and the near miss logged that morning is in every total, chart and slicer of the file.
Can I give the safety committee a grid of sites against months?
Yes, it is a matrix PivotTable, and The Complete Excel Course with AI Integration builds one in Lesson 120. FinanceGuard's pivot workspace sets departments down the side and months across the top with a percentage in every cell, beside views by month, department and category, each copied and rebuilt from the last. Put sites where the departments are and a count of incidents where the percentage is, and the committee's grid exists, with grand totals for each site and each month. The lesson builds its pivots on a table of values pasted from its model; your incident log, already a table, feeds a matrix directly. For a heat-map look, conditional formatting (Lesson 15) can mark every cell above your threshold, so the eye goes straight to the site and month where a question needs asking.
Can a pivot table work out an incident rate per site when the hours worked are in a different table?
Yes, through a data model, the part of The Complete Excel Course with AI Integration that takes PivotTables furthest. Lesson 169 loads a sales table and its lookup tables into the data model and relates them in Power Pivot's Diagram View, one to many, with no VLOOKUP joining them. Lesson 170 writes measures in DAX, among them a margin worked out with DIVIDE, which returns a blank rather than an error when the divisor is zero. Relate your incident log and your hours table to one list of sites in the same way, write a rate measure on that pattern, incidents divided by hours times your base, and every PivotTable and slicer recalculates the rate for whatever it shows (Lesson 172). Power Pivot needs Excel for Windows. On a single table, Lesson 109 works rates out under a pivot's totals with IFERROR, which suits a simpler file.
Could Copilot build the monthly incident pivot from a prompt, and how would I know it counted right?
It can build it, and The Complete Excel Course with AI Integration teaches both the prompt and the proof. In Lesson 92 one precise prompt, naming the figure, how to break it down, the table to use and where to put the result, produces a PivotTable of revenue by region and month on a new sheet; a vague follow-up returns only advice, while a precise one sorts it. For incidents the same prompt names the count, the sites and months, the log and the destination. The proof is Lesson 110: Copilot, asked for several pivots in one prompt, returns one, and every result is checked against the totals of pivots built by hand, one request per prompt. Keep your own pivot of the month's total as the benchmark, and a Copilot pivot that disagrees never reaches the committee. Copilot works where your Microsoft 365 plan includes it.
The monthly safety report is due in three weeks: is that long enough to learn pivot tables for it?
Comfortably: the PivotTable section of The Complete Excel Course with AI Integration runs to well under an hour, and this page's whole path to 1 hour 41 minutes. The core sits in one run: Lesson 57 to Lesson 65 take you from a raw file to a cleaned table, a first PivotTable, grouped dates, slicers, a PivotChart, a styled layout and a refresh, and Lesson 66 sets a challenge to prove it. Work through that in a week of short sessions and the other two weeks are free for building your own incident pivots and checking them against the old hand counts. The data model lessons can wait for a later month. The SalesPlusPerformance starter and finished files mean every step can be compared with a working answer, and lifetime access keeps the lessons there when a later report needs something new.
Are there practice files, so I am not experimenting on the live incident register?
Yes, every pivot lesson on this page has its own, and The Complete Excel Course with AI Integration keeps them well apart from your live data. SalesPlusPerformance comes as a raw starter, a cleaned starter and a finished workbook, so you can practise the clean-up of Lesson 58 on the messy copy, build the pivots on the clean one and compare each result with the complete file. Lesson 66 sets three tasks of its own, totals by region, region with category and a monthly trend, with a separate solution file; the lesson asks you to solve them yourself, using AI at most to understand the question. MarketPulse, FinanceGuard and SalesFusion bring their own starter and finished files for the later runs. Practise there, and the first pivot you build on the real register is one you already know how to check.
Our safety management software has its own reports: are pivot tables still worth learning?
Yes, because the software's reports answer the questions it was built for, and the meeting always asks one more. When the system exports its records to Excel, The Complete Excel Course with AI Integration teaches what to do with that export: clean it (Lesson 58), keep it as a table (Lesson 19) and pivot it any way the question needs, by contractor, by body part, by shift or by hour of the day. PivotTables are also the base the newer tools stand on: Copilot builds them from a prompt (Lesson 92), and a Power Pivot data model feeds them from several related tables (Lesson 169, which needs Excel for Windows). Learning them is learning the summary engine of Excel itself, and no change of safety software takes that away from you.
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
- 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