The Complete Excel Course with AI Integration
Power Query for small business owners
Most weeks a small business owner downloads sales from the till or online shop, then loses an evening to cleaning and pasting before a figure can be read. The Complete Excel Course with AI Integration gives that chore to Power Query, using SalesFusion, its industry-standard project, and the lessons picked here follow the job in order: the download cleaned, profit and checks added, product details merged, weekly files stacked from a folder and a target grid reshaped.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring a till, online shop or bank download into Power Query through Get Data, so the original file is never edited and the clean-up is recorded once.
- Strip money symbols, commas and NA entries out of amounts, replace quantities typed as words and turn text dates into real dates, as steps that rerun on every new download.
- Add the fields your monthly figures need inside the query: year, month name, month number and year-month, profit and margin, and a flag for refunds.
- Prove a week's or a month's data before you trust it with a Group By summary of totals and row counts, the largest first.
- Fill product names and costs in beside every sale with a merge from your own product list, and look for unmatched codes before reporting.
- Stack last year's and this year's sales, or every weekly file kept in one folder, into a single table that grows with each refresh.
- Turn a target or budget sheet laid out month by month across the columns into rows of month and amount that a PivotTable or SUMIFS can read.
- Keep the workbook quick by sending just the end result to a sheet and leaving the staging queries as connections.
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 data-modelling project, it hands an owner the full clean-up kit for weekly downloads: symbols stripped from amounts, NA turned into true empty values, dates made real, lookups merged in and a folder's worth of period files stacked as one.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built for order-level sales analysis, it is where a cleaned table turns into answers an owner acts on: PivotTables of sales by product category and by date, slicers to pick a month or a category, and a refresh that brings every new row in.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
Built as a finance team's budget against actual report, it shows an owner where tidy monthly figures lead: spending matched to the plan line by line through SUMIFS, then variance and percent variance for each line, with KPI cards, charts and slicers on a dashboard.
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 once your sales or bank downloads sit in Excel tables and a PivotTable holds no fears: SalesFusion opens on its messy files and cleans them a step at a time. Tables still unfamiliar? Lesson 19 covers them, and Lesson 57 opens the PivotTable lessons; a complete beginner is better served from Lesson 1. Comfortable importing files with Get Data already? Jump ahead to Lesson 163, where merging, stacking and the folder query start.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system Where every weekly clean-up starts: SalesFusion's finished report and its deliberately messy CSV files, the extract, transform and load idea of a clean-up recorded once and replayed on every file, and a CSV opened with Get Data and Transform Data instead of Load. The lessons use sales exports; a download from a till, an online shop or a bank opens the same way.
- 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 an owner now does by hand, recorded as steps: spare columns removed and the rest renamed, codes trimmed and put in capitals, money symbols, commas and NA cleared from the amounts, quantities typed as words replaced, true number and date types set, and Year, MonthName, MonthNumber, MonthStart and YearMonth fields created from the sale date.
- 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 Your business rules written into the query: profit, margin, a high-value label and a returns flag as custom and conditional columns, duplicate orders removed, a Group By summary of sales and row counts for each month and region that makes an impossible total stand out, and the loading options that hold the staging queries back as connections.
- 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: product and region details brought in from separate lookup files by a merge that keeps every sale, a finished cleaning query copied and pointed at the following year's file, with its merges built again on a new query, and both years placed one under the other with Append. Your own product list, or last year's sales, goes through the same moves.
- 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 of sales files combined into one query that cleans each file with the same steps and takes in a new file at the next refresh, then profit, margin and fiscal year columns added for every file at once, and a master table built from the folder, last year's history and the lookups, checked for empty values before it loads.
- 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 A budget export with a column for every month, reshaped by Unpivot Other Columns so the months become rows of month and amount, each month turned into a true date and the amounts added up month by month. A target sheet of your own, laid out across the months, takes the same treatment and still works when new month columns arrive.
- 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.
What does a small business owner need before starting Power Query: a data background, new software or just Excel?
Just Excel and the sales downloads you already have, and The Complete Excel Course with AI Integration from Coding Liquids supplies the rest through SalesFusion, whose industry-standard workbook was designed after talking with people from many different industries. Power Query lives inside Excel itself, reached from the Data tab's Get Data button, so nothing needs installing (Lesson 155). The path here takes a raw CSV from import to a clean table (Lesson 156 to Lesson 159), adds profit, a returns flag and a check of the totals (Lesson 160, Lesson 161), merges in product details (Lesson 163), stacks two years and then a whole folder of files (Lesson 165, Lesson 166) and turns a grid of months laid across the page into rows (Lesson 173). Those 17 lessons take 1 hour 36 minutes, roughly two evenings, and almost every step is a click that Power Query records for you.
My till records product codes but not names or costs: can Power Query fill those in from my product list?
Yes, with a merge, and The Complete Excel Course with AI Integration builds it on two lookup files in Lesson 163. The product list arrives as a query of its own, its figure columns set to Decimal Number, and Merge Queries joins it to the sales on the product code, choosing Left Outer as the join kind, so every sale stays and gains the product's details; a second merge does the same for region names. Expand the new column without the prefix and the sales table simply grows the columns it lacked. Your own list of codes, names and unit costs works the same way, and once costs sit beside each sale, profit is one custom column away (Lesson 160). Lesson 168 closes the job with a habit worth keeping: after a merge, look for empty matches before the figures go anywhere.
Each week's sales download lands in the same folder: can Power Query keep one running table of all of them?
Yes: point a folder query at it and every file is stacked into one table, and The Complete Excel Course with AI Integration teaches it in Lesson 166. Get Data from Folder combines the files, a Source.Name column shows the file behind every row, and the cleaning steps set on one sample file reach each file the folder holds. Save next week's download beside the others, refresh, and it joins the table with the same clean-up already done. Lesson 167 adds profit, margin and fiscal year columns once for all of them, and Lesson 168 joins the folder data to last year's history and the lookups in one master table. All the downloads must share one layout, which the weekly files of a single till or shop normally do.
Could a typo in my export double a month's sales without me noticing?
A Group By check catches it, and The Complete Excel Course with AI Integration builds that check into the query in Lesson 161. A reference query, wired to the cleaned sales, totals the sales and counts the rows for every month and region, then sorts the totals from the largest down. A figure that looks too good sits at the top where you cannot miss it, the lesson's example being one region outselling the whole planet, which is usually a typo. Months that come out empty point to dates the raw file could not read, and on your own data a row count far above the usual week's is the sign of a file added twice. Run it after each refresh and you see a month's shape in seconds, before a single figure goes to your accountant or the bank.
Last year's sales file is laid out like this year's: do I have to build the clean-up twice?
Once is enough, and The Complete Excel Course with AI Integration shows the shortcut in Lesson 164. Duplicate the finished cleaning query, open the settings of its Source step and point it at the other year's file: every saved step, from trimmed codes to true dates, now runs on that year too. The lesson then audits the copy, because a new file brings empty dates of its own, and builds the product and region merges again on a fresh query for that year, since duplicating the cleaning query does not carry them across. Lesson 165 stacks the two years with Append Queries as New, which relies on the two queries sharing column headers, and scrolls the date filter from one year into the next to prove the stack. Put a PivotTable on the result and the two years sit side by side, month by month.
I set myself a sales target for every month, written along one row: can Power Query set it against what the till actually took?
Yes: Power Query stands the grid on its end, and The Complete Excel Course with AI Integration does exactly that in Lesson 173 on a budget export laid out month by month across the columns. You select the columns that describe each line and choose Unpivot Other Columns, and the months drop into a single column beside their amounts, renamed YearMonth and Amount. The lesson clears the n/a entries, builds a real MonthStart date for each month, uses Pivot Column to split the measure column back into two, one for the sales budget and one for the unit targets, and adds each up by month with Group By. Months you add to your sheet later need no change, because the unpivot step lists none of them. A PivotTable or SUMIFS then puts your target and your takings for each month side by side.
Where should my downloads and my Power Query workbook live so the connection never breaks?
In one project folder, the first rule The Complete Excel Course with AI Integration gives in Lesson 153: keep every source file together, or the queries lose track of them. When a file does move, the fix is small, because Lesson 164 uses the Source step's settings to point a query at a different file without touching the steps that follow. Lesson 162 adds the habit that keeps a workbook healthy: put just the end result on a sheet and leave the staging queries as connections, or the file grows slow and heavy. And when a step fails, Lesson 167 shows that deleting the step that caused an error usually clears it. With those habits in place, a workbook built on weekly downloads keeps running week after week with almost no attention.
Can Power Query work out profit and spot refunds on every sale before the data reaches my sheet?
Yes: the rules go into the query as columns, and The Complete Excel Course with AI Integration adds four of them in Lesson 160. Profit is the sale amount less the cost; Margin divides profit by the sale amount, with a test that avoids dividing by zero; HighValue labels any sale of 500 or more as High; and IsReturn marks a negative sale amount as a Return. Duplicate orders are then removed. Because the logic lives in the query, it runs identically at every refresh, so no two of your reports can disagree about what counts as a return. Lesson 167 applies the same columns to a whole folder of files, so each week's download arrives with its profit, margin and refunds already worked out, ready for a PivotTable.
Can Power Query give every sale its month, so my monthly totals sort in calendar order?
Yes, and The Complete Excel Course with AI Integration builds five date fields from one column in Lesson 159. First the sale dates are made trustworthy: placeholder text and an impossible date are cleared, found by stepping back through Applied Steps, and the column is then typed as Date. Then Year, MonthName, MonthNumber, MonthStart and YearMonth are added from the Date menu and a short custom column. The month number is the quiet hero: without it Excel lists months alphabetically, April before January, and every monthly report reads oddly. With all five in place, a PivotTable on your sales groups by month in the right order, and comparing one year with the last is a matter of placing Year beside MonthName.
I run a shop, not a data team: is the Power Query editor hard to find my way around?
It is friendlier than it looks, and The Complete Excel Course with AI Integration gives it a guided tour before any cleaning starts. Lesson 155 opens the editor on a real sales file and walks through its Transform, Add Column and View tabs, and Lesson 156 introduces Applied Steps, the running list of everything done to the data, where any step can be renamed, reopened or removed. Most of the work is a right-click or a ribbon button: remove a column, trim text, change a type, replace a value. The few typed formulas are short custom columns, profit as sales less cost being the model. Lesson 166 even switches on views of column quality and distribution, so gaps and errors show before you begin. The reward is a download you never clean by hand again.
Should a small business be looking at Power BI instead, or does Excel's Power Query cover what it needs?
Excel's Power Query covers the cleaning and combining a small business needs, and The Complete Excel Course with AI Integration keeps you in the Excel you know while teaching it. Power BI runs on the same Power Query engine, and Lesson 154 explains the idea they share: extract the data, transform it to one set of rules, then load it into Excel or Power BI for reports. In Excel, Lesson 162 sends a finished query to a table, keeps it as a connection or adds it to the Data Model, ready for PivotTables, slicers and the reports you already read. Power BI itself is not taught here; for a business whose figures live in Excel, every step from a messy download to a refreshed report stays in one familiar file.
What happens to my query when the shop changes the layout of its download?
Applied Steps shows you which step stopped, and The Complete Excel Course with AI Integration teaches the repairs that follow. Every change in a query is a named step, so a renamed or missing column makes the first step that uses it fail, and clicking an earlier step displays the table at that moment, the way Lesson 159 steps back to find a bad date. Lesson 167 meets an error in a step and clears it by deleting the step that caused it, and Lesson 156 shows a header renamed inside the query, so a new name in the download can be mapped back to the one your reports expect. Some steps are built not to care, like the Unpivot of Lesson 173. A change of layout becomes a quick repair rather than a rebuilt report.
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 small business owners
- Lookups for small business owners
- Pivot tables for small business owners
- Excel charts for small business owners
- Dashboards for small business owners
- Conditional formats for small business
- Data cleaning for small business
- Data validation for small business
- Excel tables for small business owners
- Text functions for small business owners
- Date functions for small business owners
- Dynamic arrays for small business owners
- Power Pivot and DAX for small business
- Macros and VBA for small business owners
- Power Automate for small business owners
- Copilot for small business owners
- ChatGPT for small business owners
- Claude in Excel for small business