The Complete Excel Course with AI Integration

Power Query for medical billing specialists

A billing office runs on files that keep coming back: the claims export, the payment file, a rejection report every day, each with the same stray spaces, text amounts and payer spellings. The Complete Excel Course with AI Integration hands those chores to Power Query, Excel's tool for importing and cleaning data by recorded steps, on SalesFusion, one of its industry-standard projects. The lessons below follow a biller's files from one import to a folder of daily reports.

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 the claims export, the payment file and the clearinghouse reports into Excel through Get Data, cleaned by steps that repeat at every refresh.
  • Trim payer names and set them in one case in every query, so merges and totals never split one payer in two.
  • Stack a folder of daily rejection reports into one running list, each row tagged with the report it arrived in and repeats removed.
  • Total a remittance by claim with Group By before merging it onto the claims list, so no claim is counted twice.
  • Flag recoupments and other negative lines with a custom column, and keep them apart from payments in every total.
  • Prove each month's cleaned data against the billing system's report with a Group By of totals and row counts.
  • Feed separate lists for denials, credit balances and unpaid claims from one cleaned query through reference queries.
  • Rename, retype and append an old system's export and a new one into a single history.

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 deliberately messy CSV exports with two lookup tables, it carries every fault a billing export brings: mixed-case codes with stray spaces, amounts held as text, dates Excel cannot read, a stack of period exports to combine and a second year to add, each solved by a step recorded once and replayed on demand.

  • Project 05

    SalesPlusPerformance

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

    The course's PivotTable project and the natural home for a table Power Query has cleaned: your denials by reason and collections month by month for each payer, with one Refresh All (Lesson 65) bringing queries and PivotTables up to date together.

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

The SalesFusion lessons open at Lesson 153 with the messy files a biller will recognise, so that is the place to begin once Excel Tables and a first PivotTable are behind you. Without them, spend an evening on Lesson 19 and Lesson 57 first; with no Excel at all yet, the course itself starts at Lesson 1. Anyone who already imports with Get Data can jump to Lesson 163 for merges, appends and folder queries, the steps that pay off fastest on payment and clearinghouse files.

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 Where the pipeline starts: the finished SalesFusion report as the goal, ETL explained as extract, transform and load, and a CSV opened through Get Data with Transform Data rather than dropped on a sheet as it is. A claims export or a payment file enters 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 3 of 21 lessons · 17 min The clean-up a billing file needs: temporary columns removed and headers renamed without spaces, text trimmed and set in one case, which matters because Power Query treats capitals as different values, symbols, commas and NA cleared out of amounts, and every column given its true type.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 4 of 21 lessons · 23 min From clean columns to checked output: dates repaired and split into year and month fields, conditional and custom columns for rules such as a negative line or a large amount, a Group By control of totals and row counts, and the choice of loading each query to a sheet, to the Data Model or as a connection only.
  1. 159 Date columns in Power Query Add year, month and year-month fields for reports 7 min
  2. 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
  3. 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
  4. 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 Joining and stacking: a merge by left outer join, pulling matching columns in from a second table, a finished query duplicated and aimed at a new file with its merges made again on a fresh query, and two queries stacked as one by matching headers. Payments onto claims, a second practice, an old system and a new one all follow these steps.
  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 Folder queries: all the files saved in one folder stacked as a single table, each row keeping its file's name, the cleaning set on a sample and applied to every file, business columns and duplicate removal added, then a master table assembled from lookups and history and inspected for empty values. Daily clearinghouse reports stack the same way.
  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 Unpivot for reports laid out sideways, such as an ageing report with a column per band or a payer statement laid out month by month across the page: Unpivot Other Columns turns them into rows of label and amount, and a column added later cannot break the query.
  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, not a provider query: what does this Excel tool do for a medical billing specialist, and where is it taught?

It is Excel's built-in tool for bringing files in and cleaning them by recorded steps, nothing to do with the queries coders send to physicians, and The Complete Excel Course with AI Integration from Coding Liquids sets it to work on SalesFusion, its industry-standard project designed after talking with people from many different industries. For a biller it takes over the weekly chores: importing the claims export and the payment file (Lesson 155), trimming payer names and fixing amounts held as text (Lesson 157, Lesson 158), stacking a folder of daily clearinghouse reports into one table (Lesson 166) and joining payments to claims with a merge (Lesson 163). Each step is saved, so next week's files go through the same cleaning at a refresh. The 17 lessons on this page take 1 hour 36 minutes, and Power Query comes with Excel itself, with nothing to install.

The clearinghouse drops a rejection report every day: can Power Query keep one running list of them all?

Yes: save each day's report into one folder and a single folder query stacks them all, and The Complete Excel Course with AI Integration builds that query in Lesson 166. From Folder joins every file it finds into one table, and Source.Name records which file each row belongs to, so every rejection keeps the name of the report that carried it, and with files saved under their dates, its day. Clean one sample file and all the files in that folder receive the same steps, the reports already there and those still to come, so a report saved tomorrow joins the list at the next refresh. Lesson 167 adds business columns to the same folder query, there profit, margin and fiscal year, in your case a status group or a payer category, and Lesson 168 inspects the combined table for empty values. The files need one shared layout, which reports from a single clearinghouse normally have. A month of daily reports becomes one list to filter by payer or rejection reason in seconds.

Our remittance has several lines for one claim: will merging it with the claims list double some claims?

Group the remittance by claim number before the merge and every claim stays single, both steps taught in The Complete Excel Course with AI Integration. A merge holds on to every claim and pulls the remittance columns in beside it (Lesson 163), and where the remittance holds several lines for one claim, the claim row repeats once for each of them, so balances and counts quietly double. The cure comes from Lesson 161: Group By totals a table by its keys and counts the rows behind every total, so the remittance shrinks to one line per claim with its total paid and its number of payment lines. Merge that summary onto the claims and each claim appears once, carrying what was paid against it. Keep the line count as well, since a claim paid in three parts is worth knowing about. The lessons join sales rows to product and region lookups; the claim numbers are yours.

Why does a Power Query merge miss payers that look identical on screen?

Because Power Query compares text exactly, capitals and hidden spaces included, and The Complete Excel Course with AI Integration teaches the two steps that make matching names match. Lesson 157 makes the point with regions: to Power Query, North and NORTH are two different values, which is not how a worksheet lookup behaves, so a merge or a Group By splits them. The same lesson trims stray spaces and sets codes in one case with UPPERCASE, the steps to run on the payer column of both queries before they meet. Do it on both sides, because a payer cleaned in the claims query still fails against an untrimmed name in the remittance. Lesson 163 merges on codes once both tables are tidy, and because its join keeps every row, the unmatched ones arrive with empty columns, so any payer still adrift stands out the moment the merge is expanded.

Payers take money back with negative lines: can the query flag recoupments and keep them apart from payments?

Yes: a custom column marks every negative line as the file loads, the move The Complete Excel Course with AI Integration makes in Lesson 160. There a custom column labels each sale Return when its amount is negative and Sale otherwise, beside a Profit column and a Margin that stays empty when the amount is zero or missing instead of dividing by it. On a payment file the same pattern writes Recoupment or Payment on every line, so a takeback never hides inside a payer's total. Group By (Lesson 161) then totals each payer's payments and recoupments separately, and the net figure is one subtraction away. Because the rule lives in the query, it runs identically on every file at every refresh, and any two reports built from it agree on what counted as a recoupment, whoever prepared them.

We switched billing systems mid-year: can Power Query stack the old export and the new one when their columns are named differently?

Yes: give both queries one set of column names, then append, and The Complete Excel Course with AI Integration covers each half. Lesson 156 renames every header to a clean name without spaces, and Lesson 158 gives each column its true type, so a date from the old system and a date from the new one end up as the same kind of value. Lesson 165 then appends one query under the other, and the lesson is plain that an append relies on matching column headers: a column called Payer in one file and Insurance in the other would stack as two half-empty columns. Append as New leaves both sources untouched, so a fault in the combined table can be traced to the file that caused it. One query for the old system, one for the new, and the year reads as a single history for every report after it.

Before the month-end pack, can the query prove the export matches the billing system's own totals?

Yes: one Group By query sets the month's totals and line counts beside the billing system's report, and The Complete Excel Course with AI Integration builds that check in Lesson 161. The lesson points a reference at the cleaned query, so the check always sees the latest cleaning, groups by year-month and region with a Sum and a Count Rows, and sorts the biggest totals to the top, where an impossible figure gives itself away; the lesson's example is a region outselling the planet. For billing, group by month and payer instead: when each payer's charge total and claim-line count agree with the practice management system's month-end report, nothing was lost or doubled between export and pack. A month that comes out blank means some dates of service failed to convert, the trail the lesson follows back to the raw file. Refresh, compare, sign off: once the query exists, the routine takes a few minutes a month.

We bill for two practices with identical exports: can one cleaning query serve both?

Yes: duplicate the finished query and change only its source to the second practice's file, as The Complete Excel Course with AI Integration does in Lesson 164. Every saved step, from trimmed names to true dates, comes across with the duplicate; only the Source step changes, through the gear icon beside it. The lesson is candid about two things worth knowing. The new file brings faults of its own, such as empty dates, so the copy is audited rather than trusted, and the merges with lookup tables are made again on a fresh query built from the copy, since they do not travel with the duplicate. Lesson 165 then appends the two practices into one table whenever the group wants a combined view, while each practice keeps its own query for its own report. A third practice later costs one more duplicate rather than another week of building.

Should claim ageing be worked out inside the query or on the sheet?

On the sheet, in the clean table the query loads, and The Complete Excel Course with AI Integration gives you both halves of that split. A query's results change only when it is refreshed, while a claim's age has to grow every morning by itself; TODAY minus the date of service handles that on the worksheet (Lesson 39), and IFS turns the days into bands (Lesson 32). The query's job is to make that formula safe: dates converted to the Date type with placeholders and impossible dates cleared (Lesson 159), amounts set as true numbers (Lesson 158), payer names trimmed. Load the clean table to a sheet (Lesson 162), add the age as a formula column of that table, and each refresh brings in new claims that the ageing formula picks up at once. The query cleans; the sheet keeps time.

Can one cleaned claims query feed separate lists for denials, credit balances and unpaid claims?

Yes: build the cleaning once, then make a reference query for each list, the structure The Complete Excel Course with AI Integration uses in Lesson 161. There the main query is referenced rather than copied, and the reference stays wired to its source, so any later fix to the cleaning flows straight into every list built on it. Each reference then keeps only its own rows: a status of Denied for the appeals list, a negative balance for credits, an open balance for the chase list. Lesson 162 decides where each one lands, with the cleaned base query kept as a connection only and each finished list loaded to a sheet of its own, which keeps the workbook light. Correct a payer's spelling once in the base query and all three lists are right at the next refresh, with nothing done three times.

This week the export arrived with a renamed column and the query broke: how do I find the step at fault?

Click back through Applied Steps until the error appears, and The Complete Excel Course with AI Integration teaches you to read that list. Every change a query makes is recorded as a step with a name (Lesson 156), and selecting a step displays the table exactly as it looked after that change, which is how Lesson 159 checks its date repairs. A renamed column breaks the first step that mentions the old name, often a rename or a type change, and the error sits on that step. Lesson 167 meets a broken query too and clears it by deleting the step that caused the error, with the rule of thumb that most Power Query errors vanish once that step goes. Then redo the step with the new name, or rename the column back at the start, and the rest of the pipeline runs as before. Exports that keep their headers keep their queries working.

The same rejection appears in two days of clearinghouse reports: can the combined query keep it once?

Yes: Remove Duplicates on the right columns keeps a single copy, and The Complete Excel Course with AI Integration uses it inside its queries in Lesson 160 and again on the folder query in Lesson 167. The choice of columns is the whole skill. Remove duplicates on the claim number alone and a claim rejected twice for different reasons loses one of them; on claim number and rejection reason together, a repeat of the same rejection goes while a new reason stays. Leave Source.Name out of that comparison, since the file name differs from day to day by design (Lesson 166). Before and after, a Group By count (Lesson 161) shows how many rows went, so the clean-up is proved rather than assumed. A running list that holds each rejection once is a list the whole team can work from.

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.