The Complete Excel Course with AI Integration

Power Query for inventory controllers in Excel

Every week the same exports reach an inventory controller: a file from each store, a movement log, an item master and a report with a column per store, each needing the same clean-up before a balance can be trusted. The Complete Excel Course with AI Integration hands that routine to Power Query on SalesFusion, an industry-standard project, and this page picks out the lessons that do it: clean imports, rules and control totals, merges, folders and Unpivot.

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:

  • Bring a stock or movement export into Power Query and give every column its true type: quantities as whole numbers, costs as decimals, dates as dates.
  • Combine the stock files of every store from one folder into a single table that takes in next week's files at a refresh, each row marked with its file.
  • Turn a movement log into stock on hand per item with Group By, Pivot Column and a custom column for what came in less what went out.
  • Merge the item master onto every movement with a left outer join, and catch the codes it does not know before they reach a balance.
  • List items with no movement at all, and set a stock take's counts against the system figures, with merges and filters for blanks.
  • Flag each item for reorder inside the query with custom and conditional columns, so the rule runs the same at every refresh.
  • Prove a combined stock table with a Group By query of totals and row counts before anyone reports from it.
  • Unpivot a report with a column per store or per month into a long table that PivotTables and SUMIFS can read.

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 on messy sales exports, its Power Query half is a stock controller's weekly routine in practice form: faulty CSVs, lookup tables to merge, a folder of period files, a wide export to unpivot and a QA query that proves the totals before anything is reported.

  • Project 05

    SalesPlusPerformance

    A sales question answered in seconds, straight from the order data.

    Built on order-level sales data, it teaches the PivotTables a clean stock table feeds: totals by category and month, slicers to narrow them, and Refresh All, the one button that reruns every query along with every PivotTable.

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

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

Start at Lesson 153 if your stock data already lives in Excel tables and you can build a PivotTable: SalesFusion opens with its raw files and runs in the order the work does, one export first, then many. Not there yet? Lesson 19 gives you tables and Lesson 57 PivotTables, and a complete beginner starts at Lesson 1. Already importing exports through Get Data? Skip ahead to Lesson 161 for control totals, then the merges and the folder query.

17 of 186 lessons · 1 h 36 min

15 SalesFusion: advanced data tools and a Power Query modelling system 7 of 21 lessons · 37 min From a raw export to a table you can total: the ETL idea of a clean-up recorded once and replayed, a CSV opened through Get Data and Transform Data, columns removed and renamed, codes trimmed and put in one case, symbols and NA placeholders cleared, quantities, costs and dates given true types, and date columns added for reporting by period. The files hold sales, and a stock export takes every step.
  1. 153 Start here SalesFusion Power Query project Excel ETL pipeline and data model overview 5 min
  2. 154 Introduction to Power Query in Excel The ETL workflow explained 5 min
  3. 155 Import a CSV with Power Query Get data from text and transform data 2 min
  4. 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
  5. 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
  6. 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
  7. 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 3 of 21 lessons · 16 min Rules inside the query and proof of the result: custom and conditional columns that calculate and flag, duplicates removed, a Group By query that totals and counts rows by month and region, and the choice to keep working queries as connections and load only the finished table. For stock that means a reorder flag, a control total per store and a workbook that stays light.
  1. 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
  2. 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
  3. 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 6 of 21 lessons · 35 min Joining and combining: merges that bring lookup details onto every row with a left outer join, a pipeline duplicated for a new file by changing its source, two years appended, a whole folder of files combined so the next one joins at a refresh, and one fact table built and checked for blanks. Item masters, new stores and weekly store files all fit here.
  1. 163 Merge queries in Power Query Look up product and region names with a left join 5 min
  2. 164 Reuse a Power Query pipeline Duplicate queries for a new year of sales data 5 min
  3. 165 Append queries in Power Query Combine 2024 and 2025 sales tables 3 min
  4. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
  5. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
  6. 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 1 of 21 lessons · 8 min Unpivot for wide reports: a budget export with a column per month turned into a long table that survives new columns, then Pivot Column and Group By to reshape and total it. A stock report with a column per store or per week unpivots the same way.
  1. 173 Unpivot columns in Power Query Turn wide month columns into a long table 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.

Is Power Query worth an inventory controller's time when the stock reports already run on formulas and PivotTables?

Yes, because it takes over the part formulas and PivotTables cannot: getting the data right before they see it. The Complete Excel Course with AI Integration from Coding Liquids teaches Power Query on SalesFusion, an industry-standard project designed after talking with people from many different industries, and its raw files behave like stock exports: codes with stray spaces, quantities held as text, a folder of period files and a report with a column per month. Each fix is recorded once and replayed at every refresh (Lesson 153), so the weekly clean-up of a store file, the merge with the item master (Lesson 163) and the stacking of every store's file (Lesson 166) stop being chores. Your formulas and PivotTables then read one clean table. This page picks out 17 lessons, 1 hour 36 minutes in all, each tied to a stock job.

Can Power Query work out stock on hand from a raw movement log of receipts, issues and adjustments?

Yes, with three tools The Complete Excel Course with AI Integration teaches separately and a stock controller joins up. Group By totals a column for every combination you choose, and Lesson 161 groups sales by month and region; group the log by item and movement type and each item gets one total per type. Pivot Column then turns a column of labels into columns of their own, as Lesson 173 turns budget sales and target units into two columns, so receipts and issues sit side by side on one row per item. A custom column, the kind Lesson 160 uses to work out profit, subtracts issues from receipts and gives stock on hand, with adjustments included if they carry their own sign. The whole calculation refreshes with the log, with no SUMIFS to drag down and nothing to paste.

Every store sends its own stock file each week: can Power Query combine them so next week's files join by themselves?

Yes: point a folder query at the place the files land, and The Complete Excel Course with AI Integration builds exactly that in Lesson 166. Get Data from a folder stacks every file in it into one table, with a Source.Name column naming the file each row came from, so a file per store keeps its store visible after the stack. The cleaning is set on a sample file and applies to every file in the folder, including the ones that arrive later, and a new file is picked up at the next refresh. Lesson 167 adds calculated columns to the combined table, and Lesson 168 checks the finished table for blanks. The one condition is a shared layout, which files from one stock system normally have. Monday's consolidation becomes saving the files into the folder and pressing Refresh.

Can a merge bring the description, unit, reorder level and unit cost from the item master onto every movement?

Yes: a merge is how Power Query looks things up, and The Complete Excel Course with AI Integration teaches it on real lookup tables. Lesson 163 merges the sales query with a products table on its product code, using a left outer join that keeps every sales row and adds the product's details beside it, then does the same with a regions table. For stock, the item master plays the products table: one merge on the item code brings description, unit, reorder level and unit cost onto every movement line, ready for a value column or a reorder flag. A code the item master does not hold comes back with empty columns, and Lesson 168 shows the check that follows every merge, a filter for blanks, so a new or mistyped code is caught before it reaches a balance.

Can the query itself mark each item Reorder or OK, so the flag is identical at every refresh?

Yes, and building the rule into the query is the point: The Complete Excel Course with AI Integration notes that logic set in Power Query runs the same at every refresh, so no two reports disagree. Lesson 160 adds a conditional column that labels each row High or Normal against a threshold, and custom columns whose if tests return one result or another, the same shape a reorder flag needs. With the item master merged in, compare stock on hand with the reorder level row by row: Reorder at or below it, OK above, and a third label for overstock if your policy sets a ceiling. The flag then arrives with the balances at every refresh, and the PivotTables and lists built on the table read one agreed rule instead of a formula someone might have edited.

Which items have not moved at all, and can Power Query list them as dead stock?

Yes, with a merge read the other way round, and The Complete Excel Course with AI Integration teaches every part of it. Start from the item master, summarise the movement log by item with Group By (Lesson 161), then merge the summary onto the item master with the left outer join of Lesson 163, which keeps every item whether it moved or not. Items with no movements come back with empty columns, and filtering for those blanks, the check Lesson 168 runs after every merge, leaves exactly the items that sat still. Limit the log to the period you care about first and the list becomes dead stock for that period. Lesson 164 reads through the other join kinds as well. At each refresh the list is rebuilt from the latest log, so slow movers surface without anyone hunting for them.

After a stock take, can a query match each counted quantity to the system figure and value the difference?

Yes, with a merge and two custom columns, all taught in The Complete Excel Course with AI Integration. Bring the count sheet in as a query, then merge the system stock onto it by item code with a left outer join (Lesson 163), so every counted line gains the system quantity and, from the item master, its unit cost. A custom column subtracts system from count, and a second multiplies the difference by the unit cost, the same kind of column Lesson 160 builds for profit. A Group By query then totals the differences by store (Lesson 161). Lines with no system match come back blank and stand out at the null check of Lesson 168; run the merge the other way round as well and items the system holds but nobody counted surface too. At the next count, the same query runs on the new sheet.

Our stock report puts every store in a column of its own: can Power Query turn it into a table PivotTables can use?

Yes: Unpivot exists for exactly that layout, and The Complete Excel Course with AI Integration teaches it on a wide export in Lesson 173. The lesson's file holds budget sales and target units with a column for every month; Unpivot Other Columns keeps the descriptive columns where they are and turns each month column into rows of period and amount. A report with a column per store unpivots the same way into rows of item, store and quantity, the long shape that PivotTables, SUMIFS and slicers read best. Because the step names the columns to keep rather than the ones to turn, a store that opens later and arrives as a new column flows through without a change to the query. The lesson then uses Pivot Column and Group By to reshape and total the result, both useful once the stores are rows.

How do I prove the combined stock table is complete before anyone reports from it?

With a control query, and The Complete Excel Course with AI Integration builds one before any report exists. Lesson 161 makes a Reference copy of the main query and groups it by month and region, with a total of sales and a count of rows for each, sorted biggest first: a figure out of line stands out at the top, and rows with no month point straight at dates the source could not read. For stock, group by store and month: the row counts should match what each store exported, and the totals should match each store's own report. Lesson 166 adds column profiling over the entire data set, showing each column's distribution and how many values are empty or in error, and Lesson 168 filters for blanks after every merge and append. Only then does the table feed a balance.

Our stock workbook crawls under thousands of lookup formulas: will Power Query lighten it?

Yes, in three ways The Complete Excel Course with AI Integration teaches. A merge does a lookup once for the whole table inside the query (Lesson 163), so the sheet holds finished values instead of thousands of formulas recalculating at every change. Lesson 162 gives the loading rule: keep working queries as connections only and load just the final table to a sheet, because loading every staging step leaves a workbook slow and bloated. Lesson 156 adds that removing unneeded columns first leaves less data for every later step. One step further, on Windows, the Power Pivot data model relates tables instead of copying lookups down every row (Lesson 169). The stock workbook ends up holding one clean table and the reports built on it, refreshed when you choose.

A new store opens next month: can its file go through the same query without rebuilding anything?

Yes, and The Complete Excel Course with AI Integration shows two ways, depending on how the files arrive. If the new store's file lands in the folder the folder query reads, it joins at the next refresh with no change at all (Lesson 166). If it arrives on its own, Lesson 164 duplicates a finished query and changes only its source step to point at the new file, so every cleaning step carries across untouched; the lesson still audits the result, since a new file brings its own blanks. Lesson 165 then appends it to the existing table as a new query, which leaves both sources untouched so any fault can be traced, provided the column headers match. Either way the new store's stock reaches the reports in its first week, cleaned by rules already proven.

Why must item codes be in one case before a Power Query merge, when a lookup formula would not care?

Because Power Query treats capitals as different text, and The Complete Excel Course with AI Integration makes the point in Lesson 157: to the query, North and NORTH are two regions. Worksheet lookups and SUMIFS ignore case, so an item code typed in capitals on one sheet and in lower case on another still matches there, but a merge or a Group By in Power Query keeps them apart, and a movement can silently miss its item master row. The lesson's remedy is the routine for any code column: Trim to remove stray spaces, UPPERCASE to put every code in one case, and Replace Values to strip characters such as hyphens that appear on some lines only. Done once in the query, it holds for every export after it, so merges match at the first attempt.

Is Power Query a kind of SQL, and can a storekeeper who has never written code use it?

It does SQL's kind of work, joining, grouping and stacking tables, through menus, and The Complete Excel Course with AI Integration teaches it that way. Every step from importing a CSV (Lesson 155) to merging, appending and combining a folder is a click on the ribbon, recorded for you as a named step in Applied Steps (Lesson 156), where clicking any step shows the data as it stood then. The little typing there is comes in custom columns, short formulas such as a profit calculation (Lesson 160) or a rate worked out from a discount (Lesson 158), which read much like worksheet formulas. A storekeeper who can use a filter and write SUMIFS has the instincts already: a merge is a lookup for the whole table at once, and Group By is a total for every group at once.

Our system exports Excel workbooks and PDFs as well as CSVs: will the lessons still apply?

Yes, the method carries over, and The Complete Excel Course with AI Integration shows where the other formats are found. The SalesFusion lessons import CSV files, one at a time (Lesson 155) and a whole folder at once (Lesson 166), and Lesson 154 walks through the From File menu of Get Data, which lists CSV, JSON, XML, PDF and more besides. Once the data is in the Power Query Editor, every step on this page works the same whatever the source: trimming, types, merges, appends, Group By and Unpivot do not care where the rows came from. A PDF import is not demonstrated, so check the table Power Query finds in a PDF report before relying on it; for an export the system can save as CSV, the lessons fit exactly.

When will the weekly stock routine feel the difference, and which parts of SalesFusion call for Windows?

About 1 hour 36 minutes of lessons, and the first saving arrives early. The Complete Excel Course with AI Integration has one export cleaned, typed and dated by Lesson 159: rebuild those steps on your own stock export and its weekly clean-up is never done by hand again. Control totals, merges and appends follow, and by Lesson 166 a folder of store files has become one query. None of it needs Windows: the course's requirements name Windows for Power Pivot and Power Automate only, and neither appears on this path. Windows comes in at the next stage, when Lesson 169 loads the clean tables into a Power Pivot data model and DAX measures follow, lessons that need Excel for Windows. The SalesFusion files and the finished workbook come with the course, and lifetime access keeps them on hand for each new export.

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.