The Complete Excel Course with AI Integration

Power Query for procurement officers

Every week the ERP produces the same exports, each needing the same repair before spend can be reported. The Complete Excel Course with AI Integration hands that repair to Power Query on SalesFusion, an industry-standard project, and this page picks out its Power Query lessons in course order: import and clean, period columns, rules and Group By, merges against master lists, a pipeline reused, years appended, a folder of files combined into one fact table, 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:

  • Combine every monthly purchase order, receipt or invoice export saved in one folder into a single query that takes in next month's file on refresh.
  • Strip unused columns, blank lines and subtotal rows from an ERP export, and promote the real header row, with steps that replay on every file.
  • Map supplier spellings to one standard name with a merge against a mapping table, and catch any spelling the mapping has not met before it reaches a total.
  • Set purchase orders, receipts and invoices side by side with left outer joins on the order number, so lines with no partner stand out.
  • Give every order line its year, month, year-month and financial year columns, and summarise spend by supplier and month with Group By.
  • Find missing supplier codes, categories and dates with column quality and filters, and turn placeholders such as NA into true nulls.
  • Turn a forecast or rate sheet with a column per month into rows of period and figure with Unpivot, ready for PivotTables and SUMIFS.
  • Repair a query after the ERP renames a column or a file moves, by reading Applied Steps and fixing the step that fails.

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 on sales exports, it mirrors the ERP side of purchasing: messy CSVs, product and region lookups that stand in for a supplier master and an item list, and a folder of period files merged and stacked into one fact table.

  • Project 05

    SalesPlusPerformance

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

    Where a cleaned spend table goes next: PivotTables by category and month with the dates grouped, slicers for a budget holder, and Refresh All, which brings the queries and the PivotTables up to date together.

  • Project 06

    PeopleInsight HR workbook

    Employee data joined across sheets with one formula.

    The worksheet lookups a merge replaces: XLOOKUP with its if-not-found answer, still the quickest tool for a one-off check, while the query carries the mapping that has to run every month.

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

A buyer whose exports already live in Excel tables, with a PivotTable or two built on them, begins at Lesson 153, the SalesFusion overview, and follows the project from one messy CSV to a folder of them. If tables are unfamiliar, Lesson 19 comes first, with PivotTables from Lesson 57; someone opening Excel for the first time starts the course at Lesson 1. Already comfortable with Power Query's cleaning tools? Skip ahead to merges against master lists at Lesson 163.

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 CSV to a clean, typed table: the ETL idea of a clean-up recorded once, an import through Get Data, unused columns removed and headers renamed, text trimmed and put in one case, placeholders turned into nulls, numbers and dates given true types, and period columns added. The files are sales exports; an ERP purchase export goes through identical steps.
  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 and checks inside the query: custom and conditional columns that calculate and label each line, a Group By reference query that totals and counts by month and region with the biggest on top, and Close and Load choices that keep working queries as connections and load only what a report needs.
  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 stacking: merges with lookup files through a left outer join, a pipeline duplicated and pointed at a new file, two years appended, every file in a folder combined with its source name kept, period columns added to the folder query, and one fact table built from lookups and history, checked for nulls after every merge.
  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 any report laid out with a column per month: rows of period and amount that survive new month columns, a real date built from each period label, and totals by month.
  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.

A folder of monthly PO, receipt and invoice exports: can Power Query turn it into one spend table a procurement officer can trust?

Yes, and next month's file joins the table the moment you press Refresh. The Complete Excel Course with AI Integration from Coding Liquids teaches it on SalesFusion, an industry-standard project designed after talking with people from many different industries. From Folder combines every file in a folder into one query (Lesson 166), the cleaning set once on a sample file applies to every file there, now and later, and Lesson 168 merges the lookups and appends history into one master table, checked for blanks. Trust comes from the steps before it: true data types, cleaned text and period columns (Lesson 157 to Lesson 159), and a Group By query that totals the data for checking (Lesson 161). The files are sales exports; purchase exports from one system share a layout and combine the same way. The path: 17 lessons, 1 hour 36 minutes.

Our ERP export carries blank lines, subtotal rows and columns nobody uses: can Power Query strip them out every month?

Yes, and each removal is saved as a step that runs again on the next export without a click. The Complete Excel Course with AI Integration starts the clean-up in Lesson 156: unwanted columns removed first, which also speeds up every later step, and headers renamed without spaces so no later formula needs extra brackets. When a file arrives with its headers sitting in the first row of data, Use First Row as Headers promotes them (Lesson 163). Rows that are not orders go through the column filter the lessons use for nulls: untick the empty entries, or a Subtotal label, and they leave the table (Lesson 161, Lesson 168). The Applied Steps list records each change in order, so you can click back to see the export before any step. Nothing is deleted from the file itself: the query reads it and writes a clean copy, so the ERP's original stays exactly as it came.

When a new supplier spelling appears in next month's export, will the query notice, or will the spend slip through?

It will notice, if the mapping is built the way The Complete Excel Course with AI Integration builds its lookups. Keep a mapping table, each spelling beside the standard supplier name, as a query of its own, and merge the export with it on the spelling using a left outer join (Lesson 163): every order line stays, and the standard name arrives wherever a match exists. A spelling the mapping has never seen comes back blank instead of vanishing, and Lesson 168 supplies the habit that catches it: after every merge, check the new column for nulls before anything is totalled. Add the new spelling to the mapping, refresh, and every past and future line follows. Trim, Clean and UPPERCASE run first (Lesson 157), so a stray space never counts as a new supplier. Fuzzy matching is not taught; a mapping you control is also one an auditor can read.

Should the supplier master and the item list stay as tables of their own, or be merged into the order lines?

Either, and The Complete Excel Course with AI Integration teaches both, with the choice made by where the report lives. For a single sheet or a PivotTable, merge them in: Lesson 163 merges the sales query with product and region lookups so every line carries its names, and Lesson 168 builds the finished fact table the same way. For a larger model, keep them apart: Close and Load can hold any query as a connection only, a table or a Data Model table (Lesson 162), and the SalesFusion data model then relates a sales table to its two lookups in Power Pivot, each code once on the lookup side, which needs Excel for Windows (Lesson 169). Either way the master lists are cleaned once in Power Query, so a supplier renamed in the master changes everywhere at the next refresh.

Can Power Query line up purchase orders, goods receipts and invoices for a three-way match?

It can set all three side by side on the order number, and The Complete Excel Course with AI Integration teaches the two moves that do it. First, summarise the receipts and the invoices to one row per order with Group By, totalling quantity and value (Lesson 161), since an order is often received or billed in parts. Then merge each summary into the purchase order query with a left outer join (Lesson 163), which keeps every order and brings the received and invoiced figures in beside it. Custom columns then work out the gaps, ordered minus received and received minus invoiced (Lesson 160), and a conditional column labels each line Matched or Check. An order with no receipt or no invoice arrives with blanks, which the null checks of Lesson 168 bring to the surface. No lesson performs a three-way match; every step of it is taught.

Order dates sit in the PO export and receipt dates in another: can Power Query bring them together to measure lead times?

Yes, with a merge on the order number, and the lead time itself is then one subtraction away. In The Complete Excel Course with AI Integration, Lesson 163 merges two queries with a left outer join, so the receipt date lands beside each order's date, and Lesson 158 makes sure both columns hold true dates rather than text, the step that keeps a lead-time calculation from breaking. Load the result to a sheet and the date lessons take over: receipt minus order date gives calendar days (Lesson 39), and NETWORKDAYS gives working days (Lesson 74). Because the loaded result is a table, a formula column beside it fills itself down as rows arrive, as Lesson 30 shows. Next month's exports then refresh straight into the same lead-time table, and every supplier's figures move with them.

Each site sends its own weekly purchase file in the same layout: can one query combine them and show which site each line came from?

Yes: point From Folder at the folder the sites save into, and The Complete Excel Course with AI Integration shows both halves in Lesson 166. Combine and Transform stacks every file into one query and adds a Source.Name column holding the file each row came from, so name the files by site and the site travels with every line. The cleaning is set once in Transform Sample File, the renames, trims, case fixes and data types of the earlier lessons, and applies to every file in the folder, today's and those saved later. Lesson 168 weighs that column up honestly: handy for tracing a fault to its file, a burden in a big model, so keep it while it earns its place. A site that sends a different layout breaks the stack, so agree one export layout across sites and the weekly combine becomes a refresh.

Order lines arrive with no supplier code, no category or no date: can Power Query catch them before they reach a report?

Yes, and it shows you how many before you filter a single row. The Complete Excel Course with AI Integration switches on column profiling in Lesson 166, set to read the entire data set rather than the first thousand rows, with Column quality showing the share of each column that is valid, in error or empty. Placeholders such as NA, n/a or the word error become true nulls with Replace Values (Lesson 157), genuine errors go with Replace Errors, and an unreadable date turns null rather than breaking the column (Lesson 159). The filter checks of Lesson 160 then look for nulls in the key columns. For a buyer the empty category column is the one that matters most: uncategorised spend is spend nobody manages, and the query lists it every month until the categories are filled in at the source.

Can Power Query summarise spend by supplier and month before the data reaches a sheet?

Yes, with Group By, which The Complete Excel Course with AI Integration teaches as a check as much as a summary. Lesson 161 builds a reference query that groups the sales by year-month and region, totals the amount and counts the rows, then sorts the biggest totals to the top, where a figure that looks too good stands out at once. Group by supplier and year-month instead and you have a spend summary with an order count beside every figure, refreshed with the data it reads. Because it is a Reference query, it stays wired to the cleaned source, so every fix upstream flows through. Load it to a sheet for a quick review, or keep it as a connection beside the detail (Lesson 162). For slicing the same data every way at once the PivotTable lessons take over, but the Group By view is the one to glance at first each month.

Can Power Query stamp every order line with its month and financial year, so spend reports by period?

Yes, as columns added once and refreshed for good. The Complete Excel Course with AI Integration adds them from the date in Lesson 159: the year, the month's name and number, the month's first day and a year-month label, the last typed as text for reports. The month number matters more than it looks: without it, months sort as April, August, December. Lesson 167 then adds fiscal year columns beside the profit metrics, so each line carries the financial year it belongs to as well as the calendar one. For a buyer that means spend by period without a single MONTH formula on the sheet, a PivotTable that groups by financial year straight away, and the same columns on every future export. Clean dates come first, which is why the lesson clears placeholders and an impossible date before setting the Date type.

Our demand forecast arrives with a column for every month: can Power Query turn it into rows a buyer can total?

Yes, with Unpivot, and the query keeps working when next month's column appears. In The Complete Excel Course with AI Integration, Lesson 173 takes a wide export with one column per month, selects the columns that describe each row and applies Unpivot Other Columns, so every month becomes a row of period and amount. Because the step names no month, a new month column cannot break it. A real first-of-month date is then built from each period label, since date work needs a date, not text, and Group By totals by month. For purchasing, the long table lines a demand forecast up with open orders and past spend by period, the basis for deciding what to order and when. The lesson's file holds budget sales and target units; a forecast of quantities by item reshapes in exactly the same way.

Our buyers use locked-down laptops with no admin rights: can they still follow the Power Query lessons?

Yes: nothing has to be installed, because Get Data on the Data tab already is Power Query, and The Complete Excel Course with AI Integration works from there. Every lesson on this page runs in the Excel a company laptop already has, from importing a CSV (Lesson 155) to combining a folder (Lesson 166). The practice files are a zipped set of CSVs, unzipped into a Raw folder and a Lookups folder; keep them together, since Lesson 153 warns that source files moved out of the project folder break the connections. The course's requirements name Windows only for Power Pivot and Power Automate, neither of which is on this page, so a buyer on a Mac running Microsoft 365 follows the same path. SalesFusion's next stage, the data model and DAX measures from Lesson 169, is the part that needs Excel for Windows.

The ERP team renamed a column and my query broke: does the course show how to fix it?

Yes, and the fix is usually a single step. Every change in The Complete Excel Course with AI Integration is recorded in the Applied Steps list (Lesson 156), so the query shows exactly where it stops: click down the steps until the error appears, and that step names the column it expected. That step is where the repair goes, and Lesson 167 shows the cure the lessons rely on most: delete the step causing the error, there a final Changed Type, and most errors vanish with it. A file moved to a new place is fixed at the Source step's gear icon (Lesson 164), the same move that points a whole pipeline at a new file. And where the ERP adds month columns to a wide report, Unpivot Other Columns was built not to care (Lesson 173). A query that breaks loudly is better than a copy and paste that fails silently.

The monthly spend pack takes me two days of copy and paste: which lesson ends that?

Lesson 166, where a whole folder of exports becomes one query, though the saving starts sooner. In The Complete Excel Course with AI Integration the first export is clean, typed and dated by Lesson 159; rebuild those steps on your own purchase export and that part of the two days is gone. Merges add supplier and category names (Lesson 163), a pipeline is reused on a new file without rebuilding (Lesson 164), appends stack the years (Lesson 165), and the folder query then takes in each month's file on refresh. The whole path is 1 hour 36 minutes, with the SalesFusion dataset and the finished workbook to check every step against. The PivotTables and charts of the pack then read one clean table, and Refresh All brings them up to date with the queries. Lifetime access keeps the lessons open for the next export your ERP invents.

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.