The Complete Excel Course with AI Integration
Power Query for researchers and PhD students
Instrument runs, survey downloads and site exports rarely arrive analysis-ready, and hand cleaning leaves no trail a reviewer can follow. The Complete Excel Course with AI Integration gives that job to Power Query in SalesFusion, an industry-standard project whose files are messy on purpose: each fix recorded once and replayed, the raw files never edited. The lessons here run from a single CSV to merged, stacked, unpivoted and checked tables.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring a raw CSV in through Get Data and clean it in the Power Query Editor, each change listed in Applied Steps while the source file stays as it was.
- Turn NA codes, stray symbols and numbers typed as words into true values, and give every column its proper type, so scores and counts calculate instead of sitting as text.
- Rescue a date column full of placeholders and impossible dates, then add year, month and month-start fields for reporting by period.
- Stack a whole folder of instrument runs or site exports into one table, each row labelled with its source file, and take in new files at the next refresh.
- Merge participant details onto measurements by ID through a Left Outer merge, then filter the merged columns for nulls to find the IDs with no partner.
- Reuse a finished cleaning query on a new wave's file by changing its source, and append waves or sites into one table whose columns match by header.
- Build derived variables inside the query, a difference, a guarded ratio and a band from a conditional column, and drop duplicate entries and rows without an ID.
- Unpivot repeated measures spread across columns into one row per case and time point, pivot them back when a package wants them wide, and confirm counts in a Group By check.
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.
A sales reporting system fed by deliberately messy CSV files, it rehearses each preparation job a study dataset needs: faulty values repaired by recorded steps, reference files joined by key, files of two periods stacked, a whole folder combined and a wide export reshaped into rows.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
A sales report in the course, its PivotTables show where a clean, long table pays off: counts and averages by group in a few clicks, dates grouped by year, quarter and month, and a refresh that takes in the cases a query has just added.
-
Project 02
Dunder Michael Paper Company employee database
Built for staff records, it teaches the worksheet versions of the same repairs, TRIM, Find and Replace, Remove Duplicates and Text to Columns, the one-off fixes that Power Query later turns into steps rerun on every file.
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
SalesFusion's opening lesson, Lesson 153, is the place to begin for anyone who already works in Excel tables and has made a PivotTable: it starts with a zipped set of messy CSV files. Still entering data into loose ranges? Work through tables from Lesson 19 and PivotTables from Lesson 57 before this path, or start the course at Lesson 1. Cleaning in Power Query already? Jump to Lesson 163 for merges, appends, the folder query and Unpivot.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system Why a query beats repeated hand cleaning, and the first import: ETL as a set of saved steps that rerun on each new file, the SalesFusion download unzipped into raw and lookup folders, and a CSV opened from Get Data straight into the Power Query Editor with Transform Data, so no uncleaned row reaches a sheet.
- 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 Repairs to a raw export: helper columns deleted and headers given space-free names, codes trimmed and put in capitals, symbols and NA cleared out of number columns, words typed in place of numbers replaced, each column given its true type, and a damaged date column rescued and split into year and month fields. SalesFusion's exports hold sales; an instrument or survey CSV needs the identical treatment.
- 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 Derived variables and checks: new columns written by formula or by condition to compute, band and flag values, duplicate records removed, a Group By summary counting rows and totalling a measure for each month and region, and the Close and Load options, with staging queries held as connections and only the final table loaded.
- 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 Bringing files together: reference tables merged in on a key so that every main row survives, a finished cleaning query copied and redirected to a second year's file with its merges built again, and both years stacked by Append into a single table, columns matched by their headers: the same moves that unite sites and waves.
- 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 A whole folder as the source: each period file stacked and cleaned through steps set on one sample file, column quality and distribution profiled over the entire data set, profit and fiscal year columns added, and the master fact table assembled from the reference files and the earlier years, its key columns checked for nulls.
- 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 Wide to long and back: an export holding one column for each month, unpivoted into rows, its text periods made into real dates, and Pivot Column used to spread a measure across columns again, the two layouts a repeated-measures dataset moves between.
- 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.
Why do researchers move their data cleaning into Power Query, and which course teaches it?
Because a query records every cleaning step and replays it on demand, so the same raw file always gives the same clean table, and The Complete Excel Course with AI Integration from Coding Liquids teaches it on the SalesFusion project, industry standard and designed after talking with people from many different industries. Its raw files are as awkward as a study's: CSV exports with symbols inside numbers, NA where values belong, codes in mixed case, unreadable dates, reference files to join and a wide grid to reshape. You fix each fault once, the fix is stored as a step in Applied Steps (Lesson 156), and the same steps run again on the next export at a refresh, so two people preparing one file end with one table. The 17 lessons on this page take 1 hour 36 minutes and finish with merged, stacked, unpivoted data you can account for, ready for PivotTables or a statistics package.
Will my raw data files stay exactly as they were while Power Query cleans them?
Yes, and that is the first thing Power Query changes for a researcher. A query only reads from the source file; everything it produces lands in a separate table, and the CSV your instrument or survey tool wrote is never altered. The Complete Excel Course with AI Integration makes the choice explicit in Lesson 155: Transform Data opens the file in the Power Query Editor instead of pouring it into a sheet, and every later fix lives in the query, not in the data. Append as New in Lesson 165 builds a fresh combined table and leaves both sources alone, so a fault can be traced to the file that carried it, and Lesson 162 keeps working queries as connections while only the finished table is loaded. Your raw archive and your analysis table can never be confused again.
My instrument writes a new CSV after every run: can Power Query gather them all up as a single table?
Yes: point a folder query at the directory and every file in it becomes part of one table. The Complete Excel Course with AI Integration builds this in Lesson 166 with Get Data from Folder and Combine and Transform Data, which stacks every period file of the SalesFusion dataset and adds a Source.Name column, so each reading carries the name of the file it arrived in, and with it the run or batch. Whatever you fix in the sample file is fixed in all of them, including files saved there later, which join at the next refresh. Lesson 167 adds calculated columns on top, and Lesson 168 drops Source.Name once it has done its job. Each file must share the same columns, which exports from one instrument and its software usually do.
Two sites export the same questionnaire under different column names: will Power Query still combine them?
Yes: give both sites one set of column names and Append does the rest, and The Complete Excel Course with AI Integration teaches both moves. Append stacks tables by matching their headers (Lesson 165), so a column called age at one site and AgeYears at another would land as two half-empty columns. Lesson 156 renames headers by double-click into one consistent style without spaces, each rename recorded as a step. Build the cleaning for the first site's file, then duplicate that query and point the copy at the second site's file by changing only its Source step (Lesson 164), adjusting the renames to that site's names; any merges are built again on the new query, as the lesson does. Append as New joins the two into one table, sources untouched, and every later export from either site passes through its own query at refresh.
Can Power Query join participant details to measurements by ID?
Yes: merging queries on a shared ID is how Power Query looks things up, and The Complete Excel Course with AI Integration teaches it with real reference files in Lesson 163. The SalesFusion sales query is merged with a products file and a regions file on their codes, and choosing the Left Outer join kind means no sale drops out, while reference columns fill in wherever the code finds a partner. Put your measurements in place of the sales query and a demographics or site file in place of the reference files, merge on participant ID, and each reading gains its age group, arm or site. An ID typed differently in the two files arrives with empty columns, and Lesson 168 shows the habit that catches it: check the merged columns for nulls after every merge. Codes must match exactly in Power Query, capitals included, so tidy the IDs first.
Can Power Query reshape repeated measures held in wide columns into one row per participant per time point, and back again?
Yes in both directions, and The Complete Excel Course with AI Integration teaches each in Lesson 173. There the source is a budget export laid out wide, one column per month; Unpivot Other Columns, run with the descriptive columns selected, folds all the month columns into two, a period and a value, so each row holds one case at one point in time. Since the step lists no month by name, a month column added later cannot break it. Pivot Column then works the other way, spreading a measure's names into columns of their own. For a study with T1, T2 and T3 scores in separate columns, that is the long table PivotTables and charts need and, when a statistics package wants the wide layout for a repeated-measures test, the route back without retyping a single score.
Can Power Query clear NA codes, numbers stored as text and unreadable dates out of an export?
Yes, and the SalesFusion files in The Complete Excel Course with AI Integration are built to carry exactly those faults. Lesson 157 trims and capitalises codes and uses Replace Values to strip symbols and commas from number columns and turn NA into a true empty value; Replace Errors deals with genuine errors, while a cell holding the word error needs Replace Values. Lesson 158 replaces numbers typed as words, then sets each column's type, since a number held as text cannot be summed or averaged. Lesson 159 clears placeholders such as not a date and an impossible calendar entry from the date column, converts it, and adds year, month and month-start fields. Each repair is a recorded step, so the next export from the same survey tool or instrument is repaired the moment you refresh.
Can the query drop duplicate submissions and rows with no participant ID?
Yes: each is a step in the query, and The Complete Excel Course with AI Integration teaches both. In Lesson 160 Remove Duplicates runs on the order ID column, so a record entered twice survives once, after the ID filters have been opened to confirm whether any value is missing. Rows that do carry a gap are taken out by unticking null in a column's filter, which Lesson 164 does on the dates of a new year's file. For a study, the same two steps remove the questionnaire one participant submitted twice and the rows that arrived with no ID at all. Decide first which copy should stay, since Remove Duplicates keeps the first it meets, and audit before dropping anything: Lesson 164 checks data for importance before rows go. Because both steps sit in Applied Steps, a reviewer can see exactly what was removed and on which column.
Can I add derived variables, such as a change score or a risk band, inside the query?
Yes: custom and conditional columns calculate inside the query, and The Complete Excel Course with AI Integration teaches both in Lesson 160. Four are built there: a difference, sales minus cost; a ratio that returns null rather than an error when its base is empty or zero; a band that labels values of 500 or more as High; and a flag for negative amounts. In a study the same tools give a change score from baseline to follow-up, a ratio guarded against a missing denominator, a band such as an age group, and a flag for an out-of-range reading. Because each variable is worked out in the query, it is computed the same way at every refresh, so the tables of your thesis cannot disagree about how a score was derived. A change score needs both visits in one row first, which a merge or Pivot Column provides.
How do I prove that no case was lost between the raw file and the clean table?
Count the rows with Group By, the check The Complete Excel Course with AI Integration teaches in Lesson 161. A Reference query, which stays wired to its source, groups SalesFusion's rows by region within each month, returning a row count and a total for every group, sorted with the largest on top, where an implausible figure stands out. Null months in that table reveal dates the clean-up could not read. Set the row counts beside your recruitment or sample log and every case is accounted for, group by group. Lesson 168 repeats the discipline after the merges and the append, checking key columns for nulls before the final table is loaded. A count that matches is a sentence your methods section can state with confidence; a count that differs tells you exactly where to look.
Before I start, can Power Query tell me how much of each variable is missing?
Yes: the View tab's profiling tools show it column by column, and The Complete Excel Course with AI Integration switches them on in Lesson 166. Column quality gives each column's share of valid, error and empty values, Column distribution shows how many distinct and unique values it holds, and Column profile adds its statistics, all set to read the entire data set rather than its first thousand rows, so nothing escapes. On study data that is a missing-data audit in seconds: which items were skipped most, which IDs repeat, which numeric column hides errors. Turn missing-value codes into true empties with Replace Values first (Lesson 157), or a coded 999 will pass as a valid answer. The profile follows the query, so the audit is repeated on every new export at no extra effort.
Can Power Query prepare the file my statistics package will read?
Yes: the table Power Query loads is exactly the tidy file an analysis package reads best. By the end of the path in The Complete Excel Course with AI Integration your data has one header row without spaces (Lesson 156), one type per column (Lesson 158), codes trimmed and in one case (Lesson 157), one row per case and time point after Unpivot (Lesson 173), and derived variables already calculated (Lesson 160). Close and Load writes that table to a sheet (Lesson 162), from which R, SPSS, Stata or Python can read it. The course teaches the preparation rather than the statistics that follow, and preparation is where most of the hours vanish. When the data is corrected, refresh, and the file your package reads is rebuilt by the same steps.
I only type data into Excel: is Power Query too advanced for me?
It is within reach, and The Complete Excel Course with AI Integration brings you to it in the right order. Power Query works through menus: importing, removing columns, trimming text, merging and appending are clicks, each written into Applied Steps for you, and typing is needed only where a custom column calculates something new, in a line much like an Excel formula. What it does need is the habit of tidy tables, so the course places it late, after Excel tables (Lesson 19), the cleaning lessons and PivotTables. Someone who only types data in today can follow that road from the start, and someone who already sorts, filters and summarises can begin with SalesFusion's opening lesson. Practice files for SalesFusion are included, with a finished workbook to set your own result against, and Power Query itself is built into Excel on Windows and Mac alike.
Can each step of the query be named so it reads like a methods section?
Yes: every step in Applied Steps can be renamed, and The Complete Excel Course with AI Integration shows how in Lesson 156. Power Query lists each action in the order it was taken, Promoted Headers and Changed Type included, and a right-click on any step gives it a name of your choosing, so the list can read Removed test rows, Recoded missing values, Converted visit dates. Select any step and the preview returns to the data at that stage, which Lesson 159 uses to confirm a date fix by stepping back. For a thesis, that list is the draft of the data preparation paragraph, written as you work rather than pieced together long afterwards. Rename the queries too, as Lesson 161 does, so staging and checking queries say plainly what they are.
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 researchers
- Lookups for researchers
- PivotTables for researchers
- Charts for researchers
- Dashboards for researchers
- Conditional formatting for researchers
- Data cleaning for researchers
- Data validation for researchers
- Excel tables for researchers
- Text functions for researchers
- Date functions for researchers
- Dynamic arrays for researchers
- Power Pivot and DAX for researchers
- Copilot in Excel for researchers
- ChatGPT for Excel for researchers
- Claude in Excel for researchers