The Complete Excel Course with AI Integration

Power Query for treasury analysts

A treasury morning opens with files: a statement from each bank, a balance report, receivables and payables extracts. Power Query turns them into clean tables at the press of Refresh, and The Complete Excel Course with AI Integration builds that skill in SalesFusion, a project held to industry standard: from the first CSV import to a fact table fed by a whole folder, with a control query that proves each file and the reshapes a balance report needs.

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 bank's statement file into Power Query with Transform Data, so its clean-up is saved as steps that run on every new file.
  • Strip symbols, placeholders and stray spaces from amounts and codes, and give amounts, rates and dates their true types with no silent rounding.
  • Put interest rates that arrive on different scales onto one scale with a custom column rule.
  • Prove each morning's file with a Group By control query that totals and counts it by account and day.
  • Turn a balance report's opening, closing and available lines into columns with Pivot Column, and a wide grid into rows with Unpivot.
  • Combine a folder of statement files into one fact table, profiled over the entire data set and checked for blanks after every merge.
  • Load only the final table and keep staging queries as connections, so the cash workbook stays quick.
  • Repoint a pipeline at a new file or folder from its Source step, and find the step that broke when a bank changes its layout.

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 report fed by messy CSV files, it rehearses a treasury morning: amounts carrying symbols, dates stored as text, lookup tables to merge, a whole folder to combine and a wide grid to reshape, with a count and a total to prove each result before anyone uses it.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    The course's budget vs actual dashboard, where actual figures sit beside the plan, matched key by key with SUMIFS and measured as variance and percent variance: the place a cash forecast meets the flows a query has prepared.

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

SalesFusion opens at Lesson 153; start there if Excel tables and PivotTables already feel familiar, because the project builds its queries in the order a morning's files are handled. Tables or PivotTables still new? Work through Lesson 19, then the PivotTables section from Lesson 57, and someone who has never opened Excel starts with Lesson 1. If cleaning a single file in Power Query is second nature, the treasury payoff starts at Lesson 166, the folder query.

17 of 186 lessons · 1 h 36 min

15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 13 min SalesFusion's plan and the ETL idea behind it, then a first CSV opened from Get Data, with Transform Data chosen over Load: the difference between a routine that reruns every morning and a one-time paste. The lessons import sales CSV files; a bank's statement file comes in the same way.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 7 of 21 lessons · 40 min Clean-up and control in one run: columns removed and renamed, codes trimmed and made one case, symbols and placeholders stripped from amounts, true number and date types, month fields, business rules as custom and conditional columns, a Group By check of totals and row counts for each month and region, and the choice between loading a table and keeping a connection.
  1. 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
  2. 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
  3. 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
  4. 159 Date columns in Power Query Add year, month and year-month fields for reports 7 min
  5. 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
  6. 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
  7. 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 3 of 21 lessons · 14 min Lookup tables joined on with a left outer merge, a finished pipeline duplicated and pointed at the next file with its merges made again, and the two years stacked with Append: the moves that bring a further bank or a new period into the same routine.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 22 min A folder's worth of files from successive periods combined and cleaned by one set of steps, with column profiling over the entire data set, profit and fiscal year columns added, then a single fact table assembled from lookups and history and checked for blanks after every merge.
  1. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 min
  2. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
  3. 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 A wide export with each month in its own column unpivoted into rows, then a metric column pivoted back into separate columns and totalled by month: the two reshapes a bank's balance report can call for.
  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.

Power Query is ETL built into Excel: what would it extract, clean and load on a treasury analyst's morning, and which course teaches it?

The morning's files, prepared with one refresh, and The Complete Excel Course with AI Integration from Coding Liquids covers the whole run in SalesFusion, one of its industry-standard projects, developed after talking with people from many different industries. Extract: Get Data brings in a CSV export, with Transform Data chosen so the steps are kept (Lesson 155). Transform: columns pruned and renamed, codes trimmed, amounts and dates given true types, rules added as columns (Lesson 156 to Lesson 160). Load: the finished table alone goes to a worksheet or into the Data Model, while the working queries stay as connections (Lesson 162). From there a folder of files combines in one query (Lesson 166). For a treasury desk that means statements, balance reports and ledger extracts prepared the same way every morning, and the 17 lessons on this path, 1 hour 36 minutes of study, turn that manual routine into a query you refresh.

Our banks send statements as CSV files, some as XML and a few only as PDF: which of them can Power Query take in?

All three appear among its sources, and The Complete Excel Course with AI Integration shows that list before it builds anything. Lesson 154 opens Data, Get Data, From File and walks through what Power Query can read, CSV, JSON, XML, PDF and more, then explains the extract, transform and load stages every source passes through. The lessons themselves work with CSV files, so the import of Lesson 155 and every cleaning step after it carry straight over to a statement in CSV. An XML or PDF statement starts with a different first step and brings its own shape, and once its table is in the editor the same cleaning tools apply. Whatever the format, the rule of the lessons holds: choose Transform Data rather than Load, so the clean-up is kept and replayed on tomorrow's file instead of being done again by hand.

One bank reports interest rates as whole numbers of per cent and another as fractions: can the query put them on one scale?

Yes, with a rule The Complete Excel Course with AI Integration teaches on exactly that fault. In Lesson 158 some values in the sales file's Discount column were typed as 15 for 15 per cent and others as true fractions, so a custom column divides anything above 1 by 100 and every row lands on one scale; Lesson 167 applies the same rule across a whole folder of files. Rates from two banks are the same problem: one sends 4 meaning 4 per cent, the other sends the fraction, and the rule makes them agree before a yield or an interest figure is worked out. The lesson first strips the per cent signs and stray hyphens with Replace Values and sets the column to Decimal Number, so the rule works on numbers rather than text, and it runs again on every file that follows.

Could a wrong data type quietly round the amounts in our bank files, and how does the course guard against it?

Yes, and The Complete Excel Course with AI Integration names both the risk and the guard. Lesson 168 sets the Profit column to Decimal Number with the warning that a whole number type would round it silently: no error, just figures that stop adding up to the statement. Lesson 158 draws the line where it belongs, Decimal Number for money columns once their symbols and commas are gone and Whole Number only for things counted in units, since nobody sells half a unit. On a treasury file that means every amount, balance and rate held as a decimal, and counts such as the number of payments held as whole numbers. Look at the type icon on each column header after any change, because a type set wrongly at import passes quietly into every total built from the query.

Our balance report lists opening, closing and available balances on separate lines: can the query set them side by side?

Yes: that is Pivot Column, and The Complete Excel Course with AI Integration uses it in Lesson 173. The lesson's budget export arrives wide, each month in its own column, so it is first unpivoted into rows; its metric column, which holds two kinds of figure (budget sales, target units) on separate lines, is then pivoted with the amount as values, giving each metric a column of its own, totalled by month with Group By. A balance report with one line per balance type is the second half of that exercise: pivot the type column with the amount as values, and each account gets its opening, closing and available balances on one row, ready for the position and its checks. Because every step is recorded, tomorrow's report takes the same shape at the next refresh.

A bank added a column to its file and this morning's refresh failed: how do I find the step that broke?

Walk the Applied Steps, the habit The Complete Excel Course with AI Integration builds from the first clean-up. Lesson 156 shows that every change is a named step in order, including the Promoted Headers and Changed Type steps Power Query records by itself, and clicking a step brings back the data exactly as that step left it; Lesson 159 steps back through them to see where a problem enters. Lesson 167 meets a real failure and clears it by deleting the step that caused it, with the lesson's verdict that most Power Query errors vanish once that step goes. A new or renamed column in a bank file usually trips a step that names the old columns, so the fix is to find that step, correct or rebuild it, and refresh. A few clicks through the steps beat rebuilding the morning position by hand.

How would I know a bank file arrived short of lines before the cash position is built from it?

Count it before you trust it, with the control query The Complete Excel Course with AI Integration builds in Lesson 161. A Reference query, which stays wired to its source, groups the data with Group By and returns a total and a row count for every month and region, biggest first, so a figure that looks wrong stands out at a glance. Group the statement lines by account and day instead, and a file cut short shows up as an account with too few rows or a total far from its usual size. When files arrive in a folder, the Source.Name column of Lesson 166 tells you which file every line belongs to, so the short one is named rather than guessed. The control refreshes with everything else, so the check costs nothing on the mornings the file is complete.

Before a year of statement history feeds the forecast, can Power Query show where its columns have gaps and errors?

Yes: switch on column profiling, as The Complete Excel Course with AI Integration does in Lesson 166, and every column reports its gaps and errors before the forecast sees them. On the View tab, column quality shows the share of valid, error and empty values in each column, column distribution shows how the values spread, and column profile gives the detail for one column; the lesson then changes profiling from the first thousand rows to the entire data set, so a fault in the last month of a year is not missed. For a statement history that means seeing at once which months lack value dates, where amounts failed to convert and which codes appear only once. Fix what you find with the steps of Lesson 157 to Lesson 159, and the forecast starts from history that has been examined, not assumed.

The cash workbook has slowed since every query was loaded onto a sheet: what should be loaded, and what kept as a connection?

Keep the grid for the final table alone, the golden rule The Complete Excel Course with AI Integration teaches in Lesson 162. That lesson finds every query written out to its own sheet, opens Queries and Connections, switches the staging and checking queries to Only Create Connection through Load To, and deletes the sheets they had filled. Held as connections, those queries still feed a PivotTable, a merge or the Data Model, with none of their rows weighing down the workbook. On a cash desk the split is clear: each bank's import and its clean-up stay connections, the control query stays a connection you open when needed, and one table, the statement lines the position is built from, lands on a sheet. Lesson 156 adds a second speed rule: drop the columns the position never uses at the very first step, so every later step has less to carry.

Our statement folder is moving to a new location: will the queries break, and how are they pointed at it?

A single setting points them at the new location, and The Complete Excel Course with AI Integration shows where it lives. Lesson 153 gives the rule up front: keep every source file in the project's folder, because moving files breaks the query connections. Lesson 164 shows the repair: open the gear icon beside the Source step, browse to the new file and confirm, and every cleaning step after it runs on the file in its new home; the lesson uses it to point a whole pipeline at the next year's export. In a folder query the Source step holds the folder path instead, so the same gear changes one setting. Repoint, refresh and run the control query of Lesson 161, and the morning position is back without a single step rebuilt.

Our cash forecast starts from receivables and payables extracts: can Power Query prepare them every week?

Yes: the clean-up The Complete Excel Course with AI Integration builds on SalesFusion's sales exports suits any ledger extract, and it runs again at every refresh. Lesson 156 removes and renames columns, Lesson 157 trims codes and strips symbols and placeholders from amounts, Lesson 158 sets true number types and Lesson 159 turns due dates into real dates with month fields such as MonthStart and YearMonth. Custom and conditional columns from Lesson 160 can label lines the way the lesson's HighValue and IsReturn columns do, large items apart and credit notes marked by their negative sign, and the Group By of Lesson 161 totals an extract by month, the shape a forecast reads. Each extract gets its own query, built once and refreshed weekly, and the forecast inherits clean inputs instead of a fresh round of copy and paste.

Transfers between our own accounts swell the bank file: can the query leave them out of the position and still keep them in view?

Yes: a filter step drops them from the position and a Reference query keeps them visible, both moves The Complete Excel Course with AI Integration teaches. The lessons filter through a column's own list, unticking null in the dates so empty rows leave the final table (Lesson 161, Lesson 164); unticking a transaction type such as an internal transfer works the same way and is saved as a step that runs at every refresh. Lesson 161 also builds a Reference query, which stays wired to its source, so a second query can keep only the transfers, ready for checking that both legs cancel out. The position then shows true external flows, and nobody deletes by hand a row that tomorrow's file will bring back.

Which morning job will Power Query take over first, and how long is the path that gets me there?

Cleaning a single bank file, and it is finished by Lesson 159, well inside the 1 hour 36 minutes this path takes. The Complete Excel Course with AI Integration builds that first win in order: the import (Lesson 155), then columns, text and amounts tidied, true types set and month fields added. Apply the same steps to your own statement and that file never needs cleaning by hand again. The control query, merges and the folder query follow, and by Lesson 168 a fact table draws on a whole folder of files. Windows is needed only where the course reaches Power Automate or Power Pivot, and this path stops before either. With lifetime access, the next new bank format sends you straight back to the lesson it needs, and the SalesFusion files let you rehearse each step before it meets a real statement.

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.