The Complete Excel Course with AI Integration
Power Query for credit analysts and lending teams
A loan tape, a ratings file, a collateral list, borrowers' own figures: credit work starts by forcing them into one clean table, often by hand each month. The Complete Excel Course with AI Integration builds that routine into Power Query with SalesFusion, one of its industry-standard projects, and the query lessons a credit desk needs follow below: cleaning, bands, checks, joins by facility ID, folders of borrower files and quarterly columns turned into rows.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring each month's loan tape in through Get Data and set its clean-up as query steps: columns trimmed and renamed, codes in one case, balances and dates given true types.
- Add arrears, size or margin bands inside the query with conditional and custom columns, so every report built on the tape uses the same rule.
- Join the loan tape to a ratings file and a collateral list by facility ID with Merge Queries, and check the result for facilities that found no partner.
- Point the cleaning query at next month's tape by changing its source, and append the months into one history for trends.
- Gather every borrower file saved in a folder into a single stacked table that picks up late arrivals at each refresh, each row marked with its file.
- Profile a tape's columns for empty, faulty and out-of-pattern values, and total it by month and branch in a check query before anything is reported.
- Turn a portfolio file with a column per quarter into long rows of period and value with Unpivot, ready for PivotTables.
- Put only the final table on a worksheet and hold the staging queries as connections, so a large tape stays quick to open.
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 deliberately messy sales exports, it gives you the whole query routine a loan tape needs: codes padded with spaces, amounts carrying symbols and words, impossible dates, lookup files waiting to be merged, a second year to append, a whole folder of exports to combine and a wide month-by-column grid to reshape, each turned into a table you can check before a credit report rests on it.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
The course's PivotTable project on order data, where a clean table turns into cuts by region, category and month with slicers and Refresh All updates them together; a cleaned loan tape feeds the same pivots by branch, product and month of disbursement.
-
Project 06
PeopleInsight HR workbook
Employee data joined across sheets with one formula.
The HR workbook of the course, where VLOOKUP, XLOOKUP and INDEX with MATCH join sheets cell by cell: the worksheet form of the join a merge performs on a whole loan tape at once, and still the quickest route for a one-off 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
Begin at Lesson 153 if a PivotTable on an Excel table is everyday work for you: SalesFusion opens with its finished report and works back to the raw files, one query step at a time. Tables or PivotTables still new? Take Lesson 19 and the PivotTable run from Lesson 57 first, and anyone opening Excel for the first time should begin at Lesson 1. Power Query already part of your routine? Jump to Lesson 163 for merges, next month's file, appends and folders.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system The pipeline idea and the first import: a finished SalesFusion report as the goal, Extract, Transform and Load explained as steps recorded once and run on every new file, the formats Get Data reads, and a CSV opened with Transform Data so the clean-up becomes a query rather than a paste. The lesson's files are sales exports; a loan tape enters by the same door.
- 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 a tape needs every month: surplus columns removed and headers renamed, codes trimmed and set in capitals, symbols, commas and NA entries stripped from amounts, true number and date types, impossible dates cleared, year and month fields added, then calculated columns, custom and conditional, for profit, a margin that stays empty rather than dividing by zero, a size band and a returns flag.
- 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
- 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
15 SalesFusion: advanced data tools and a Power Query modelling system Checks and loading: a reference query that sums the sales and counts the rows for each month and region, biggest first, so a figure too good to be true surfaces at once, then the choice between loading a query as a table, to the Data Model or as a connection only.
- 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 merged in from lookup files, Left Outer chosen as the join kind; the cleaning query duplicated and its source switched to the second year's file, with the merges done again on the new year's query; and both years stacked with Append as New. The same three moves join a ratings file to a tape, rerun the clean-up on next month's extract and build a history.
- 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 in one query: all of its files stacked and cleaned by the same steps, each row tagged with its source file, columns profiled across the full data set, profit and fiscal year columns added, then a fact table merged with its lookups, appended to the history and 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 files made long: a budget export holding each month in a column of its own, reshaped by Unpivot into rows that each hold a period and a value, the text periods made into real dates, two measures pivoted back into columns and totalled by month, and no step that names a month, so a new column never breaks the query.
- 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.
From raw loan tape to committee pack: which steps of that journey can a credit analyst automate with Power Query?
Every step between the export and the analysis itself, and The Complete Excel Course with AI Integration from Coding Liquids teaches each one on SalesFusion, an industry-standard project designed after talking with people from many different industries. A query records the jobs a credit analyst repeats each month as steps that run again on the next tape: cleaning (Lesson 157), bands for arrears or size (Lesson 160), joins to the ratings and collateral files by facility ID (Lesson 163), a folder of borrower files (Lesson 166) and quarterly columns turned into rows (Lesson 173). Formulas recalculate, but they have to be filled down again over every new paste, and copy and paste does a job once and forgets it. The 17 lessons picked for credit work here take 1 hour 36 minutes, and afterwards a new tape saved in place of the old one, or into the query's folder, needs only a refresh.
Our loan tape, ratings file and collateral list share a facility ID: can Power Query join all three on that ID?
Yes, one merge at a time, and The Complete Excel Course with AI Integration shows the chain on lookup files of its own. Lesson 163 merges a sales query first with a products file and then with a regions file, choosing Left Outer as the join kind and expanding the new columns without the long prefix, so every original row survives and gains the matched details. On a credit desk the tape is the main query, the ratings file brings each facility's grade and the collateral list its security, and a facility missing from either file keeps its row with empty cells beside it. Trim the IDs and set them in one case first (Lesson 157), because Power Query, unlike a worksheet lookup, treats capitals as different characters. Lesson 168 supplies the closing habit: after the merges, filter the key columns for nulls before any total is taken.
Borrowers return their quarterly figures on our template, one file each: can a query gather them as they come in?
Yes: save them into one folder and a single query takes in every file there, today's and next quarter's, which The Complete Excel Course with AI Integration builds in Lesson 166. Get Data From Folder lists the files, Combine and Transform stacks them, and a Source.Name column keeps the name of the file behind each row, so every line stays tied to its borrower. The clean-up is written once, in the query's Transform Sample File, and runs on each file in turn; a borrower who returns the template late simply appears at the next refresh. Lesson 167 then adds calculated columns on top, and Lesson 168 turns the result into one master table. Your template is what makes it work: borrowers who keep to its layout feed the query untouched, and a file with moved columns is easy to spot, since its rows come out empty or misplaced.
Arrears bands, size bands, margins: should they be built inside Power Query or with IFS on the sheet?
Inside the query for the bands every report shares, on the sheet for the ones you are still testing, and The Complete Excel Course with AI Integration teaches both. Lesson 160 adds business logic as query columns: a custom Profit column, a Margin that returns empty instead of an error when sales are nil, a conditional High or Normal band at a threshold, and a returns flag. The lesson's case for it is the one a credit desk needs: logic set in the query runs identically at every refresh, so no two reports built on the tape can disagree about which band a loan sits in. IFS on the worksheet (Lesson 32) stays the better tool for a what-if or a band you are tuning before a policy change, because its boundaries sit in plain view and change with one edit. Once the policy is settled, fix the band in Power Query.
The loan system's export changes now and then, a new column or a renamed header: will my query break?
It keeps running through most changes, and The Complete Excel Course with AI Integration teaches you to mend the rest from the Applied Steps list. An added column seldom stops anything; a column that disappears or changes its header stops the step that named it, and the editor shows which step that is. Lesson 167 shows the remedy on a real error: the step that caused it, a stray Changed Type, is deleted and the query runs again, and the lesson's rule of thumb is that most errors vanish once their step goes. Unpivot is built to survive the commonest change of all, since Unpivot Other Columns names no month and a new one cannot break it (Lesson 173). Keep the source files where the query expects them, too: Lesson 153 warns that files moved out of the project folder break the connection.
Can Power Query show me a loan tape's empty, faulty or out-of-pattern values before I model anything?
Yes, at a glance, with the column profiling The Complete Excel Course with AI Integration switches on in Lesson 166. On the View tab, Column quality shows each column's share of valid, error and empty values, Column distribution how many distinct and unique values it holds, and Column profile the detail for the column you select; set the profiling to the entire data set rather than the first thousand rows and the check covers the whole tape. Lesson 161 adds a summary check: a reference query grouped by month and region with a total and a row count, sorted largest first, where the lesson's point is plain: one region outselling the planet is usually a typo. On a loan tape that is the branch whose balance jumped tenfold, or a blank month, which the lesson traces to dates the raw file could not read.
Can a query set each facility's balance this month beside last month's, so the movements stand out?
Yes, by combining three moves The Complete Excel Course with AI Integration teaches in SalesFusion. Lesson 164 duplicates the cleaning query and changes only its source step, so last month's tape is cleaned by exactly the same rules as this month's. A merge like those of Lesson 163 then joins the two on the facility ID with Left Outer, bringing last month's balance in beside this month's, and a custom column like those of Lesson 160 subtracts one from the other. A facility with nothing on last month's side is new to the book; sort by the movement and the largest drawdowns and repayments head the list. When the aim is a trend rather than a comparison, Lesson 165 appends the months into one long history instead, and a PivotTable reads it month by month. The lessons work with two years of sales files; monthly loan tapes take the same steps.
Our portfolio file has a column for every quarter's balance: can Power Query turn it into a table a PivotTable can read?
Yes, with Unpivot, the reshaping step The Complete Excel Course with AI Integration teaches in Lesson 173 on an export laid out exactly that way, one column per month. Select the columns that describe each row, the facility and its branch for instance, choose Unpivot Other Columns, and every period column becomes rows holding a period and a value; rename the pair and the table is long and narrow, the shape PivotTables, SUMIFS and charts read best. The lesson then gives each text period a day of the month to make it a real date, since Power Query cannot do date arithmetic on text, pivots its two measures back into columns of their own and totals them by month. Because no step names a period, next quarter's column joins at the next refresh with nothing edited.
Our loan tape workbook has grown slow: will Power Query make it lighter or heavier?
Lighter, by loading the way The Complete Excel Course with AI Integration teaches in Lesson 162. Close and Load offers three destinations, a table on a sheet, the Data Model or a connection only, and the lesson's golden rule is to put only the finished output on a sheet and keep every staging and checking query as a connection, held in memory and ready for a PivotTable without filling the grid. Lesson 156 adds the other saving: remove the columns a report never uses at the very first step, so each later step has less data to work through. A tape that arrives with dozens of system columns and leaves with the dozen a credit report reads is quicker to open, quicker to refresh and easier for a colleague to follow. Queries and Connections then lists every query, with its rows shown on hover and its last refresh.
A borrower's aged debtor listing arrives every quarter: can a query clean it and total it by customer?
Yes, and it becomes the same query every quarter. The Complete Excel Course with AI Integration teaches the two pieces in SalesFusion. Lesson 161 groups a query in Advanced mode, there by month and region, with a sum and a row count for each group and the largest total first; group a debtor listing by customer instead and the biggest balances, with the number of invoices behind each, head the table. Lesson 160 supplies the bands: a conditional column that labels each line against a threshold, which on a debtor listing becomes an age band from the days outstanding the borrower reports. Clean the customer names first, trimmed and in one case (Lesson 157), so one debtor never splits into two groups. Next quarter, save the new listing over the old one and refresh, and last quarter's concentration and ageing come back updated.
Once the tape is clean, how does it reach the committee pack: PivotTables, the data model or both?
Both routes are in The Complete Excel Course with AI Integration, and the clean table suits either. Loaded as a table, it feeds PivotTables by branch, product and month, with slicers, and Refresh All (Lesson 65) updates queries and PivotTables in one press. For a larger book, SalesFusion goes on to load its clean queries into the Data Model (Lesson 169), relate the main table to its lookups in Diagram View and write DAX measures (Lesson 170) such as a distinct count, which on a loan book counts each borrower once however many facilities it holds; those Power Pivot lessons run only in Excel for Windows. Lesson 171 and Lesson 172 then format a report and build a dashboard of PivotTables and slicers from the model. Start with the table route, and move to the model when the tape outgrows it.
Borrowers send figures as PDFs as well as spreadsheets: can Power Query read both?
Get Data reads both kinds of file, and The Complete Excel Course with AI Integration shows where each sits in Lesson 154, which walks through the formats From File offers: CSV, JSON, XML, PDF and more. The lessons build their queries on CSV exports and on a folder of files, and every step they teach works the same whatever the source once its table is in the editor: headers promoted, columns removed, text trimmed, types set. A table lifted from a PDF needs the most checking of any source, so the column profiling of Lesson 166 and a total tied back to the borrower's own figures matter most there. Spreadsheets returned on your own template are the easiest source of all, and the folder query gathers them without a single copy and paste.
Month-end reporting leaves me a few evenings: how far into this path do I need to be before the tape runs through a query?
A single evening gets the first query running, and the whole path is 1 hour 36 minutes. In The Complete Excel Course with AI Integration bringing a file in and tidying it takes the run from Lesson 155 to Lesson 159: build those steps again on a copy of your own tape and the monthly tidy-up is automatic from then on. The bands and checks come next (Lesson 160 and Lesson 161), then the joins to your ratings file (Lesson 163) and next month's tape (Lesson 164); the folder and Unpivot lessons can wait until a pile of borrower files or a wide portfolio report lands. The course supplies the SalesFusion files and a completed workbook to check each step against, and with lifetime access every lesson waits for the next unfamiliar extract.
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 credit analysts
- Lookups for credit analysts
- PivotTables for credit analysts
- Charts for credit analysts
- Dashboards for credit analysts
- Conditional formats for credit analysts
- Data cleaning for credit analysts
- Data validation for credit analysts
- Excel tables for credit analysts
- Text functions for credit analysts
- Date functions for credit analysts
- Dynamic arrays for credit analysts
- Power Pivot and DAX for credit analysts
- Macros and VBA for credit analysts
- Power Automate for credit analysts
- Copilot for credit analysts
- ChatGPT for credit analysts
- Claude in Excel for credit analysts