The Complete Excel Course with AI Integration
Power Query for team leaders
Each person's weekly sheet, the rota against the timesheets, an HR export full of stray spaces, a skills grid nobody can count: a team leader stitches these together by hand every week. The Complete Excel Course with AI Integration moves that work into Power Query, taught on SalesFusion, one of its industry-standard projects, and the lessons below follow the routine in order: import and clean-up, rules and checks, merges and appends, a folder of files, then Unpivot.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Combine every team member's weekly sheet from one folder into a single table that grows with next week's files at the next refresh, each row stamped with its source file's name.
- Find who has not submitted by merging the team list with the week's combined files and reading the rows left empty.
- Set rostered hours against logged hours with a merge and a calculated difference column, so gaps show before payroll or your manager asks.
- Turn a skills matrix, or any grid that spreads its items across the columns, into rows of person, item and value with Unpivot, ready to count.
- Total each person's output by month with Group By, row counts included, so a short or doubled week stands out.
- Clean an HR or timesheet export once, with trimmed codes in one case, true numbers and dates and month fields, and replay it on every new file.
- Label rows as on target or below, or as overtime or normal hours, with conditional columns that give the same answer at every refresh.
- Put only the finished table on a sheet, hold the working steps as connections, and leave a deputy a report that one button brings up to date.
Projects
What you will build.
The course has 14 industry-standard projects. These two matter most here.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built as a sales reporting system, its Power Query half handles the raw material a team leader collects every week: messy exports, a folder of files from different periods, lookup tables to join and a wide grid to reshape, each ending as tidy rows that a refresh rebuilds.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
A PivotTable project on order-level sales, it shows where a query's clean output ends up: PivotTables by category and by date, slicers to narrow them, and Refresh All, the one button that brings a whole workbook up to date.
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 with Lesson 153 once tables and PivotTables are part of your routine: the project shows its finished report first, then opens its first messy file. If tables are new to you, the course's own table lesson, Lesson 19, and the PivotTable lessons that open at Lesson 57 lay the ground, and anyone meeting Excel for the first time starts at Lesson 1. Cleaning single exports in Power Query already? Your new ground is the merges, appends and folder query from Lesson 163 onward.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system The project and its method: the finished SalesFusion report seen first, the idea of steps recorded once and replayed on every new file, and a messy CSV opened from the Data tab and sent to the editor with Transform Data, never Load, so the clean-up becomes a pipeline instead of a paste.
- 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 any team export needs: unwanted columns removed and the rest renamed, stray spaces trimmed and codes set in one case, clutter such as NA replaced with true empty values, real number and date types, and year and month fields on every row. The file is a sales export; a timesheet or absence export takes the same steps.
- 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 Rules and checks kept in the query: new columns that work out a figure or attach a label, a Group By giving totals and row counts per month and region, biggest first, and the loading options that send only the end result to a sheet.
- 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 Joining and stacking: a merge that adds product and region details to each sale without losing a row of the starting table, the whole clean-up reused on a second year's file with its merges built again on a new query, and both years stacked as one query for comparison.
- 163 Merge queries in Power Query Look up product and region names with a left join 5 min
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system The folder routine: a whole folder's files combined into one table that grows at each refresh, column profiling over the whole data set, profit and fiscal year columns added in the sample file so every file receives them, then one master table built from lookups and history and checked for empty values.
- 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 for grids that run sideways, a column per period or per item: a wide export reshaped into rows of name and value that keep working when a new column appears, then pivoted and grouped into a compact summary.
- 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.
Every person on my team sends their own weekly sheet: can Power Query turn them into one report?
Yes: that is the routine Power Query was made for, and The Complete Excel Course with AI Integration from Coding Liquids sets it up on SalesFusion, whose industry-standard workbooks the course designed after talking with people from many different industries. Lesson 166 points Power Query at a folder and stacks all the files in it as one table, with a Source.Name column naming the file behind every row, so each person's rows stay traceable. The cleaning steps are recorded against one sample file, and each file saved in the folder passes through them, so a sheet saved there next week joins the table at the next refresh. Lesson 161 adds the check that the week is complete, totals and row counts by period and group, before anything is reported. For a team leader, the Monday stitching of copied ranges becomes three moves: save the sheets, press Refresh, read the result. The 17 lessons picked here take 1 hour 36 minutes, from opening a single export to reshaping a grid.
Can Power Query tell me who has not sent in their weekly sheet?
Yes: let the team list ask the folder, and the missing names come back with nothing beside them. In The Complete Excel Course with AI Integration, Lesson 163 merges two queries using the Left Outer join kind, which never drops a row of the starting table and copies data across from the other only where the keys agree. Start the merge from your team list, join it to the combined weekly files of Lesson 166 on the person's name, typed alike in both since Power Query reads capitals as different, and anyone who sent a sheet gains their figures while anyone who did not is left with empty columns. Lesson 168 adds the follow-up check, looking for empty values whenever a merge has run, so filter those blanks and you have this week's list of people to chase. Because it is a query, the list is rebuilt at each refresh, and a late sheet takes its owner off the list the moment it lands in the folder.
Can I compare the hours each person was rostered with the hours they actually logged?
Yes: a merge sets the two side by side and a custom column works out the gap, both taught in The Complete Excel Course with AI Integration. Lesson 163 merges queries on a shared key, as the lesson does with product and region codes, so the rota and the timesheet export, each cleaned into a query of its own, can meet on whatever both files record for each shift. Lesson 160 then adds custom columns of your own arithmetic, in the lesson a profit worked out as one column minus another, and conditional columns that label rows by a rule. Here the custom column becomes logged hours minus rostered hours, and a conditional column marks anything past a limit you set. The logic lives inside the query, so it runs identically every week. Rota rows that found no timesheet in the merge are the missing submissions, ready to raise before payroll or your own manager does.
My skills matrix has a column for every skill: can Power Query turn it into rows I can count?
Yes: Unpivot exists for exactly that shape, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on a wide export with one column per month. Choosing Unpivot Other Columns leaves the selected columns where they are, in the lesson the region, category and metric, and turns each remaining column into pairs of name and value, renamed there as a year-month and an amount. On a skills matrix, select the person and every skill column becomes rows of person, skill and level. Because Unpivot Other Columns names none of the columns it turns, a skill added to the grid next quarter joins the rows without the query being touched. The lesson then summarises its long table with Group By, and the same step counts the people at each level of each skill: the team's gaps in one small table rather than a grid read by eye.
Can Power Query total each person's output by month before it reaches the scorecard?
Yes: Group By does the totalling inside the query, and The Complete Excel Course with AI Integration teaches it in Lesson 161. There, a reference query, one that stays wired to its source so later fixes flow through, groups the sales by year-month and by region and returns two figures for each pair: the total and the number of rows behind it. Swap region for person and sales for units handled, cases closed or calls taken, and you have the month by person, sorted with the biggest first. That order is a check in itself: the lesson points out that a total far above its neighbours is usually a typing slip, and a row count well below the usual says a week of someone's entries never arrived. Load the grouped table to a sheet (Lesson 162) and the scorecard reads finished figures instead of doing the sums itself.
Can the query label each row on target or below it, so the scorecard does not have to?
Yes: a conditional column does the labelling inside Power Query, and The Complete Excel Course with AI Integration builds several in Lesson 160. The lesson adds four business columns to its sales query: a profit by subtraction, a margin that returns nothing rather than an error when there is no sale to divide by, a High or Normal label for values of 500 and over, and a Return or Sale label for negative amounts. Each is a rule written once, and the lesson's point is that a rule kept in the query runs the same on every refresh, so no two reports built on it can disagree. For a team, the same tools label output against target, hours as overtime or normal, or an absence as short or long, before any formula on the scorecard sees the data, and the labels arrive ready to count, filter or slice.
Our HR system's export is full of stray spaces, odd codes and dates stored as text: will Power Query tidy it every time?
Yes: set the clean-up once and it replays on every export, and The Complete Excel Course with AI Integration works through it in order. Lesson 156 removes the columns you do not need and renames the rest, with every change recorded in Applied Steps. Lesson 157 trims stray spaces, sets codes in one case and replaces clutter such as NA with true empty values; the case matters here, because Power Query treats differently capitalised codes as different values, unlike COUNTIFS or a PivotTable on the sheet. Lesson 158 gives each column its real type, since a column of numbers held as text looks fine and adds up wrong, and Lesson 159 clears unreadable dates and adds year and month fields to every row. The lessons clean a sales export; an absence or timesheet file goes through the same steps, and next month's file needs none of them repeated.
Before I report on a team export, can Power Query show me how complete each column is?
Yes: column profiling shows it at a glance, and The Complete Excel Course with AI Integration switches it on in Lesson 166. From the View tab of the Power Query Editor, Column quality, Column distribution and Column profile lay out what each column holds, and the lesson changes their basis from the first rows of the file to the entire data set, so a gap near the bottom of a long export is not missed. Lesson 168 then makes checking a habit, looking for empty values after merges and appends, which is where they creep in, and Lesson 161 explains that empty months usually come from dates the raw file could not read. For a team leader, that means a blank shift code or an unreadable date is found while the data is still in the query, not when someone asks why their week looks short.
When I am on leave, can my deputy refresh the weekly report without breaking it?
A deputy needs two habits and one button, and The Complete Excel Course with AI Integration teaches all three. The first habit comes from Lesson 153: keep every source file in the same project folder, because a query that cannot find its file stops working. The second comes from the folder query of Lesson 166: new weekly sheets go into that folder and nowhere else, since the next refresh picks up whatever is saved there. The button is Refresh All, met with PivotTables in Lesson 65, which also reruns the workbook's queries. Lesson 162 keeps the file light for whoever opens it, sending only the end result to a sheet and holding the working queries as connections. Write those three lines on the report's front sheet, and the week's figures come out the same whether you are at your desk or on a beach.
Can last year's team figures and this year's sit in one table for comparison?
Yes: reuse the clean-up on the new year's file, then stack the two, which The Complete Excel Course with AI Integration does across neighbouring lessons. Lesson 164 makes a copy of a finished cleaning query and points the copy's Source step at the second year's export, so every saved step runs on the new file; the lesson then builds the lookups again on a fresh reference, since a duplicate does not carry the merges over, and still audits the new file, which brings empty dates of its own. Lesson 165 stacks the two years as a new query with Append, leaving both sources untouched so any fault can be traced, and relying on matching column headers. With both years in a single table, a PivotTable sets this year's month beside last year's, and the following year needs only another duplicate and another append.
What happens after the query: how does the clean table become the report my manager sees?
Close and Load decides, and The Complete Excel Course with AI Integration teaches every choice it offers in Lesson 162: a table on a sheet, a connection only, or the Data Model. The lesson's golden rule is to load only the finished output to the grid and keep the working steps as connections, so the workbook stays quick. From a loaded table, the PivotTable lessons of SalesPlusPerformance build the summary by person and month, slicers let your manager filter it, and Refresh All brings it current after each new batch of files. SalesFusion goes a step further: Lesson 169 and Lesson 170 relate the clean tables in Power Pivot's data model and add DAX measures on top, and both need Excel for Windows, before Lesson 171 and Lesson 172 turn the model into a formatted report and an interactive dashboard.
Which weekly job should a team leader hand to Power Query first?
The folder of weekly sheets, because it saves the most time soonest, and The Complete Excel Course with AI Integration reaches it well inside this path of about 1 hour 36 minutes. Build the clean-up on one person's sheet first (Lesson 155 to Lesson 159), then point it at the folder in Lesson 166, and the Monday copy-and-paste is gone for good. The merge that names who has not sent their sheet comes next, then Group By for the monthly totals, and Unpivot can wait until a grid such as a skills matrix lands on your desk. Every SalesFusion file comes with the course, with a complete workbook to compare against, the lessons stay yours for life, ready when a new export appears, and completing the course brings a Certificate of Completion backed by industry-standard projects you built yourself.
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
- Excel formulas for team leaders
- Lookups for team leaders
- PivotTables for team leaders
- Excel charts for team leaders
- Excel dashboards for team leaders
- Conditional formatting for team leaders
- Data cleaning for team leaders
- Data validation for team leaders
- Excel tables for team leaders
- Text functions for team leaders
- Date functions for team leaders
- Dynamic arrays for team leaders
- Power Pivot and DAX for team leaders
- Macros and VBA for team leaders
- Power Automate for team leaders
- Copilot in Excel for team leaders
- ChatGPT for Excel for team leaders
- Claude in Excel for team leaders