The Complete Excel Course with AI Integration

Pivot tables for HR teams: headcount and turnover

Every month someone in HR is asked the same questions in a new shape: heads per department, hires this quarter, leavers by site, average pay by grade. The Complete Excel Course with AI Integration answers them with PivotTables on industry-standard projects, and this page picks out those lessons: a clean table to start from, the PivotTable section itself, AI that builds them, and whole reports of PivotTables with rates and a department by month grid.

Taught by Sagnik Bhattacharya and Virginia Thorn

The Complete Excel Course with AI Integration: Sagnik Bhattacharya and Virginia Thorn

What you will be able to do

At work, you will be able to:

  • Count heads by department, location and job level in a PivotTable, with employee IDs counted rather than added up through Value Field Settings.
  • Group start dates and leaving dates into years, quarters and months to report hires and leavers over time, and chart the trend as a line PivotChart.
  • Keep one department from splitting into two rows by cleaning the source with Find and Replace and TRIM, and by limiting entries to a drop-down of approved names.
  • Let managers narrow the headcount to their own team or site with slicers, the counts and the chart changing together at a click.
  • Set turnover and absence rates beside a PivotTable's totals with formulas guarded by IFERROR, so an empty period never shows an error.
  • Lay departments against months in one grid, then format it with subtotals, grand totals, banded rows and a style fit for the leadership pack.
  • Bring new starters and leavers into every PivotTable at once with Refresh All, the staff list kept as an Excel table so no row is missed.
  • Have Copilot build a PivotTable from a precise prompt, then check it against one you built yourself before it reaches anyone.

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.

    The whole PivotTable craft on order-level data, from cleaning the source to Refresh All: fields dragged into rows, columns and values, dates grouped into years, quarters and months, slicers, PivotCharts and report layouts. Swap orders for employee rows and region for department, and every step builds the headcount report.

  • Project 08

    MarketPulse

    One screen that shows which campaigns earn back their spend.

    Its engine is a sheet of labelled PivotTables, each copied from the last and rebuilt for one question, with rates worked out beside their totals under IFERROR and a second set built by Copilot and checked total by total: the method for a monthly people pack.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    A pivot workspace of totals, months, departments, categories and a department by month matrix, with variance percentage and budget use worked out beside the PivotTables. HR is one of its departments, so the HR line is there to read in every view.

  • Project 14

    Agentic AI in Excel

    AI finds and fixes the formula; you check it before it counts.

    Copilot builds a PivotTable of revenue by region and month from one precise prompt and sorts it on request, and ChatGPT returns an edited workbook whose PivotTable a second request restores: quick headcount help once you know what a right one looks like.

Tap or pinch to zoom in, drag to move around. Click or scroll to zoom in, drag to move around.

  • Project 02

    Dunder Michael Paper Company employee database

    The staff list kept as an Excel table, the shape a PivotTable reads best: new employees join it at the bottom, and its Department column later takes entries only from a drop-down of approved names.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 18 of them, 1 h 20 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 staff list already sits in an Excel table: the PivotTable section runs from there to its challenge without a gap. Keeping the list as a plain range? Take Lesson 19 first, and Lesson 45 for the drop-down that keeps department names consistent. Comfortable with PivotTables already? Go to Lesson 108 for a sheet of them working as a report's engine, then Lesson 120 for the department by month matrix. New to Excel altogether? Begin at Lesson 1.

18 of 186 lessons · 1 h 20 min

03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 1 of 9 lessons · 8 min Excel tables on the course's employee database: a list made into a table that takes in each new employee and fills its formulas down, the source a headcount PivotTable should always read, since rows added to a table join it at the next refresh.
  1. 19 Excel tables Create and format a table, structured references and total row 8 min
05 Text functions and data validation (enhancing data quality) 1 of 7 lessons · 4 min A drop-down of approved department names on the employee table, so HR and Human Resources never turn into two departments in a report: the cheapest way to keep a PivotTable's rows honest is to stop the second spelling being typed at all.
  1. 45 Data validation in Excel Create drop-down lists for consistent data entry 4 min
07 PivotTables and PivotCharts: data analysis made easy 10 lessons · 33 min PivotTables on SalesPlusPerformance, start to finish: what a PivotTable does, cleaning the source with Find and Replace, TRIM and PROPER, inserting one from a table, fields in rows, columns and values with Value Field Settings, grouped dates, slicers, PivotCharts, report layouts and styles, Refresh, and a challenge to solve alone. The data is sales orders; an employee list goes through the same steps to a headcount by department and month.
  1. 57 Start here PivotTables 101 in Excel What a PivotTable does and the sales dataset 5 min
  2. 58 Preparing data for PivotTables Clean data with TRIM, PROPER, find and replace 5 min
  3. 59 Create your first PivotTable in Excel Insert a PivotTable from a sales table 1 min
  4. 60 PivotTable fields in Excel Rows, values, columns and Value Field Settings 2 min
  5. 61 PivotTable summaries in Excel Sales by product category and grouping by date 4 min
  6. 62 Slicers in Excel Filter PivotTables with clickable buttons 3 min
  7. 63 PivotCharts in Excel Create interactive charts from a PivotTable 5 min
  8. 64 PivotTable design Tab Report layouts, PivotTable styles and number formats 5 min
  9. 65 Refresh a PivotTable in Excel Update pivots when source data changes 2 min
  10. 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) 2 of 17 lessons · 11 min AI on the same job: Copilot builds a PivotTable of revenue by region and month from one prompt and sorts it on request, then charts it, and free ChatGPT edits an uploaded copy, losing the PivotTable once and restoring it on a second request.
  1. 92 PivotTables with Copilot Build an Excel PivotTable from a prompt 5 min
  2. 93 Charts with Copilot and ChatGPT Create and choose the right Excel chart 6 min
11 MarketPulse campaign intelligence dashboard 3 of 10 lessons · 16 min A sheet of PivotTables as a report's engine on MarketPulse: each copied beside the last and rebuilt for one question, rates such as conversion worked out from their totals with IFERROR, and Copilot asked for the same PivotTables one request at a time, then checked against the hand-built set.
  1. 108 Marketing PivotTables in Excel Build the MarketPulse pivot back end 6 min
  2. 109 CTR, conversion rate and ROI in Excel Marketing KPI formulas with IFERROR 4 min
  3. 110 PivotTables with Copilot Generate and verify marketing pivots in Excel 6 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) 1 of 10 lessons · 8 min The FinanceGuard pivot workspace: PivotTables by month, department and category and a department by month matrix, read from a pasted copy of the model's values, with variance percentage and budget use worked out beside them. HR is among its departments.
  1. 120 PivotTables for budget vs actual The FinanceGuard pivot workspace 8 min

Instructors

Who teaches it.

Virginia Thorn smiling at the camera, dark hair tied back, wearing a navy top.

Instructor, Excel with AI

Virginia Thorn

Emmy Award winner. Teaches Excel with AI at Coding Liquids.

Questions

Asked before starting.

Headcount by department, hires by month, leavers by quarter: which course teaches HR teams to get them from a pivot table?

The Complete Excel Course with AI Integration from Coding Liquids does, on industry-standard projects designed after talking with people from many different industries, and each report on that list is a few drags of the mouse once the method is in your hands. You learn the craft start to finish on SalesPlusPerformance: a clean source table, fields in rows, columns and values, dates grouped into months and quarters, slicers, PivotCharts and a refresh. Then you watch PivotTables run whole reports: a labelled sheet of them behind the MarketPulse dashboard, and a department by month matrix in FinanceGuard. This page gathers the 18 lessons involved, 1 hour 20 minutes in all. The lessons summarise sales, campaign and budget data; your staff export, with a department, a location, a start date and a leaving date for each person, goes through exactly the same steps.

Which HR reports can one PivotTable build from a single staff list?

Most of the standing ones, each from the same table in a minute, and The Complete Excel Course with AI Integration teaches the moves behind every one. Department down the side and a count of employee IDs gives headcount; location or job level across the top splits it further (Lesson 60). Start dates in the rows, grouped by year, quarter and month, give hires over time (Lesson 61), and leaving dates do the same for leavers. Salary in the values, switched from a sum to an average, gives pay by department, and employment status dropped into the filter area keeps the report to active staff (Lesson 62). Each layout is a rearrangement of fields rather than a new formula, so the question your director asks next is a drag away. The lessons summarise net sales by region, state, channel and month; an employee list answers to the same fields.

Why does my headcount pivot add up employee numbers instead of counting people?

Because Excel sums a numeric field by default, and The Complete Excel Course with AI Integration shows where to change that. Lesson 60 opens Value Field Settings on the sales PivotTable, the box that decides how a value field is calculated, with Sum to start; the lesson switches it to Minimum to show the idea, and the same list holds Count and Average. Pick Count and a column of numeric employee IDs stops being one meaningless total and becomes the number of people in each row. An ID with letters in it is counted from the start, since text cannot be added. The same box, through Number Format, shows results as whole figures or percentages (Lesson 64). Getting this one setting right is the difference between a headcount report and a column of nonsense, which is why the lesson sits so early in the section.

Will a PivotTable turn hire dates into hires per month and per quarter?

Yes, by itself, and The Complete Excel Course with AI Integration shows the grouping and how to steer it. In Lesson 61, a date field placed in the rows is grouped into years and quarters on its own, with buttons to drill down to months and days, and removing the Years and Quarters fields turns the report into a monthly or daily view. Put start dates there and count employee IDs, and you have hires per month; do the same with leaving dates for leavers, with employment status in the filter to keep the right people in. Lesson 63 then charts a monthly series as a line PivotChart with a proper title and axis titles, the trend a leadership team reads in seconds. The lesson groups order dates; any column of real dates groups the same way, which is why a start date stored as text has to become a true date first.

Human Resources on some rows and HR on others: why does my headcount pivot show two teams?

Because a PivotTable groups by the text it finds, and The Complete Excel Course with AI Integration fixes the cause at both ends. Lesson 58 prepares the source before any PivotTable is built: Find and Replace brings second spellings into line, TRIM strips the stray space that makes one region appear twice, PROPER evens out capitals, and the empty row that would cut the data short is deleted, all on the sales data the section uses. On your staff list, that turns HR, Human Resources and Human Resources with a trailing space into one department. Lesson 45 then stops the problem coming back: a drop-down of approved department names on the employee table, in a lesson that names HR against Human Resources as the very mismatch that breaks reports, filters and dashboards. Clean once, lock the list, and the headcount stops splitting teams in two.

Can managers filter the headcount report to their own department or site?

Yes, with slicers, and nobody touches the data. Lesson 62 in The Complete Excel Course with AI Integration adds slicers to a PivotTable, clickable buttons that narrow it to one state, city or region and back to all, and Lesson 63 shows a PivotChart following the same click. For a headcount pack that means buttons for department and location: a manager picks their own team, and the counts, the chart and the totals change together. Report layouts from Lesson 64 make the result easy to read, with subtotals, banded rows and a style. The MarketPulse lessons go further, connecting one slicer to every PivotTable on a sheet so a single click refilters a whole report (Lesson 113, outside this path). A slicer filters what is shown and never deletes a row, so the staff list underneath stays exactly as you keep it.

How do turnover and absence rates sit beside a headcount PivotTable?

As small formulas that read the PivotTable's totals, and The Complete Excel Course with AI Integration builds exactly that arrangement. Lesson 109 writes rates under a summary PivotTable on MarketPulse: each one a division of two totals inside IFERROR, so an empty period shows zero rather than an error, formatted as a percentage. For HR the totals are leavers and average headcount, or days lost and working days, and the rate beside them is turnover or absence. Lesson 120 does the same on FinanceGuard, working variance percentage and budget use out next to its PivotTables. Kept beside the PivotTable, each rate reads the right totals and stays easy to audit. Lesson 108 sets up the sheet those formulas live on: PivotTables laid side by side, each labelled and each answering one question, the shape of a monthly people pack.

Can a PivotTable lay out departments against months, like a grid of absence days?

Yes: departments down the side, months across the top, one figure in every cell, and The Complete Excel Course with AI Integration builds that kind of matrix twice. Lesson 64 sets net sales by region down the rows against product category across the columns, then works through the Design tab: subtotals on or off, grand totals for rows and columns, compact or outline form, banded rows and a style, with Number Format showing large values in millions. Lesson 120 builds a department by month matrix of variance percentage in FinanceGuard, a grid that reads like a heat map of where the plan slipped. For HR the same layout carries absence days, overtime hours or leavers by department and month, ready to scan for the team and the month that stand out. The lessons fill their grids with sales and budget figures; your absence log fills the same shape.

Will new starters and leavers added to the staff list reach the PivotTable?

Yes, at the next refresh, and The Complete Excel Course with AI Integration makes both halves of that a habit. Lesson 19 turns the employee list into an Excel table, which takes in a new row typed at the bottom, so every starter becomes part of the source the moment they are entered. Lesson 65 then shows the catch: a PivotTable does not update by itself, so a row added to the table changes nothing until you right-click and Refresh, or press Refresh All to update every PivotTable in the workbook at once. Built on a plain range instead of a table, the PivotTable would miss the new rows until its source was redone, which is why the course puts the table first. For a monthly headcount, that means one refresh after the month's changes and a report that tells this month's story, not last month's.

Can ChatGPT turn a staff export into a headcount PivotTable, or should Copilot do it?

Either can produce one, and The Complete Excel Course with AI Integration teaches you to accept neither on trust. The difference is where they work. Copilot sits inside Excel and edits the workbook in front of you: Lesson 92 gets a sorted PivotTable of revenue by region and month from a prompt that names the measure, the breakdown, the source table and the sheet for the result. ChatGPT works on a copy you upload and download: in Lesson 93 its returned file opened without the PivotTable until a second request put it back. For HR, word the prompt the same way, a count of employee IDs by department from the staff table on a new sheet, then set the grand total against the number of people on your list. Lesson 110 makes that comparison routine: one request per PivotTable, every total checked. Before a staff export leaves your machine, check what your employer allows; the PivotTables here need no AI at all.

The staff list needs department names before it can be counted: is that a lookup's job or a PivotTable's?

A lookup's first, then the PivotTable's, and The Complete Excel Course with AI Integration teaches both. They do different jobs: a lookup works row by row, fetching one fact for each employee, while a PivotTable works across the whole list, counting and totalling rows into a summary. When an export carries only department codes, XLOOKUP brings the department name onto every row (Lesson 69, outside this path), on the course's own HR dataset, and the PivotTable then counts heads by those names (Lesson 60). Asking one to do the other's work goes badly: a lookup cannot count a team, and a PivotTable cannot fill in a missing department. HR leans on both constantly, the lookup to complete each person's record and the PivotTable to report on everyone at once. Learnt together, they take a raw export to a headcount report in minutes rather than an afternoon.

Is a pivot table still the right tool for an HR team's monthly numbers?

Yes, and The Complete Excel Course with AI Integration shows where the newer tools fit around it rather than in its place. A PivotTable rearranges in a drag, groups dates by itself, takes slicers and refreshes in one click, which suits a headcount that is asked for in a new shape every month. Copilot now builds one from a prompt (Lesson 92), and you still read and check what it built. Formulas give another route to a summary: UNIQUE lists each department once (Lesson 75) and COUNTIFS counts against it (Lesson 37), recalculating with no refresh. For a large monthly extract, Power Query and a data model go further, and SalesFusion teaches them, with its Power Pivot lessons needing Excel for Windows. Each of those builds on the PivotTable rather than retiring it, which is why the PivotTable section comes before all of them.

Can a PivotTable average salaries or absence by department, not only total them?

Yes: one setting turns a total into an average, and The Complete Excel Course with AI Integration teaches it in Lesson 60. Value Field Settings decides how a value field is summarised, Sum by default, with Count, Average, Minimum and more in the same list, so average salary by department, or average absence days per person, is a click away. The same field can stand in the values twice, once as a sum and once as an average, for a pay review that wants both. Lesson 64 formats the results: Number Format inside Value Field Settings shows percentages or rounds large figures into millions, and the Design tab adds banded rows, subtotals and a style that reads well on screen and on paper. Lesson 61 puts two values side by side, net sales and total cost by category, the same shape as salary and overtime by department.

Pivot tables are new to me: how long before I can hand over a headcount report?

Sooner than the length of the course suggests: this whole path takes about 1 hour 20 minutes, and its core section is among the shortest in The Complete Excel Course with AI Integration. The first PivotTable is inserted in one short lesson (Lesson 59), a headcount by department is a drag and a setting away by Lesson 60, and by Lesson 65 you are grouping dates, adding slicers, charting and refreshing. Lesson 66 sets three PivotTable tasks to complete on your own before the solution file opens, the proof that the steps have stuck. Every project comes with a starter and a finished workbook, and the lessons work in Excel on a Mac as well as on Windows. Lifetime access keeps them on hand for the month a director asks for a breakdown you have never built, and the instructor support plan puts your questions to the instructor in writing for two months from the day you switch it on.

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.