The Complete Excel Course with AI Integration

Power Query for government officers

District returns, grant and case logs and budget exports reach an officer's desk in a different state every time, and fixing them by hand eats the week. In The Complete Excel Course with AI Integration, Power Query takes over that work on SalesFusion, one of its industry-standard projects, and the lessons chosen here follow the order a return is built in: import, standardise, flag and check, merge and append, a folder of office files, then a wide grid unpivoted.

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 system export or an office return into Power Query through Get Data, leaving the source file exactly as it arrived.
  • Standardise what offices type differently: trim stray spaces, set codes in one case, replace placeholders such as n/a, and turn text dates and figures into true dates and numbers.
  • Remove personal or unneeded columns as the first step of a query, so the table you load and share holds only what the report needs.
  • Write review flags into every row with conditional and custom columns, such as an amount above a set limit or a negative entry that may be a refund.
  • Check a return before it goes to head office by grouping it into sums and row counts for every month and district.
  • Bring names in for codes with a merge, rerun a finished query against the following year's file, and stack years or offices into one table.
  • Stack every office's file from one shared folder as one table, with each row labelled by its source file, and take a late return in at the next refresh.
  • Unpivot a target or budget grid laid out month by month across its columns into rows that line up with monthly actuals.

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.

    The course's Power Query project, built on messy sales exports, rehearses a returns cycle: placeholders and symbols in figure columns, impossible dates, codes in mixed case, lookup files to merge, two years to stack and a folder holding one file per period, each handled by steps that rerun at every refresh.

  • Project 05

    SalesPlusPerformance

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

    Built on order-level sales data, it is where a clean table becomes answers: PivotTables grouped by date and category, slicers, and Refresh All (Lesson 65), the button that also reruns every query, so a refreshed return turns into this month's figures by district and month.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    The course's budget vs actual project, it shows where a cleaned spending table goes next: SUMIFS against each allocation, variance and percent variance for every head with colour from custom number formats, and slicers that let a director pick a department or a 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

Begin at Lesson 153 when tables and PivotTables are already part of your work: SalesFusion opens with the finished report it builds towards. New to both? Take Lesson 19 and Lesson 57 first, or go back to Lesson 1 when Excel is new to you altogether. Importing files through Get Data already? Jump to Lesson 160 for flags and checks, with the merge, the append and the folder query after it.

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 The SalesFusion goal and the idea of ETL, extract, transform and load, with steps saved once and rerun on every new file, then a CSV imported with Get Data and opened in the Power Query Editor rather than pasted into a sheet.
  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 4 of 21 lessons · 24 min Standardising a messy export: columns removed and renamed, codes trimmed and set in upper case, symbols, NA and stray hyphens replaced, true number and date types set, and impossible dates cleared before the year and month fields are added. SalesFusion's exports hold sales; a district return shows the same faults.
  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
15 SalesFusion: advanced data tools and a Power Query modelling system 3 of 21 lessons · 16 min Business rules and checks built into the query: conditional and custom columns that work out values and mark rows, Remove Duplicates, a Group By of sums and row counts for each month and region, then the Close and Load choice that keeps staging queries as connections.
  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 3 of 21 lessons · 14 min Lookup files joined to the sales query by a Left Outer merge, a finished pipeline duplicated and re-aimed at the following year's export, and both years stacked into a single table by their matching headers.
  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 holding one file per period, combined into one query with every file cleaned by the same steps and named in a Source.Name column, then a master table built from the lookups, the history and the folder, and checked for blanks after each 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 a column for every month unpivoted into a long table, the months made into real dates and the budget and target measures pivoted back into columns of their own; because the query names no month, next month's column cannot break it.
  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.

Most Power Query training for government officers comes through Power BI: can I learn it inside Excel instead, and where?

You can, and The Complete Excel Course with AI Integration from Coding Liquids is built that way: Power Query is taught inside Excel on SalesFusion, one of its industry-standard projects, each designed after talking with people from many different industries. You meet the editor where an officer's data already lives, in the workbook, and work through the jobs a returns cycle brings: importing CSV exports, standardising codes, dates and figures, flagging rows, proving totals by grouping them, merging code lists, stacking years and a whole folder of office files, and unpivoting a wide grid. The 17 lessons chosen here take 1 hour 36 minutes, each built from the course's own messy dataset with the completed workbook there to check your work. The editor and its steps are the ones Power BI uses as well, so everything you learn travels with you if your department moves its reporting later.

Grant logs, district returns, budget exports: what does Power Query change about an officer's month?

It turns each monthly clean-up into a query you build once, and The Complete Excel Course with AI Integration teaches every piece of it. Grant and case logs arrive with codes in mixed case, stray spaces and placeholder text; a query trims, upper-cases and replaces them every time (Lesson 157). District returns come as one file per office; a folder query stacks them all and names each row's source file (Lesson 166). Budget exports hold figures as text and dates nobody can sort; the query sets true types and adds year and month columns (Lesson 158, Lesson 159). Before anything leaves your desk, a Group By query totals and counts the rows by period and place, so a wrong figure shows up early (Lesson 161). Each step stays saved, so next month's work is one refresh instead of a day of copying and pasting, and the time goes back to the analysis your role exists for.

Our district offices type dates, codes and status labels each their own way: can Power Query make them consistent?

Yes, and the SalesFusion files in The Complete Excel Course with AI Integration carry exactly those faults on purpose. Codes come in with stray spaces and mixed case, so Lesson 157 trims them and sets one case; that matters here, because Power Query, unlike SUMIFS or a PivotTable, treats North and NORTH as two different values. Replace Values swaps placeholders and stray characters for clean entries, the same tool that turns a status typed as Pend. or Pending review into one agreed label. Lesson 158 gives every column a true type, numbers held as numbers, and Lesson 159 clears dates that cannot be real, a thirtieth of February and text such as not a date, before converting the rest and adding the year, the month's name and number, its first day and a year-month field. Set those steps up once, and every office's next return is brought into line the moment it is refreshed, whoever typed it.

Names, addresses and case numbers: can a query keep personal details out of the table I share?

Yes: remove those columns as the query's first step and they never reach the table you load. The Complete Excel Course with AI Integration teaches removing and renaming columns at the very start of a query in Lesson 156, where cutting what is not needed early also makes every later step quicker. The source export stays as it was, in its folder; the table that lands in your workbook holds only the columns you kept. Lesson 162 adds the second habit: staging queries are kept as connections only, and only the finished output is loaded to a sheet, so no intermediate table full of detail sits in the file. Pair that with a summary, counts by district and month, and most reports need no personal detail at all. Your department's data rules and Power Query's privacy level settings sit outside the lessons; a lean output table built for its purpose is what the lessons give you.

Can a query flag the rows that need a second look, such as an amount above the delegated limit or a negative entry?

Yes: custom and conditional columns write the flag into every row, and The Complete Excel Course with AI Integration builds four of them in Lesson 160. A conditional column marks each sale of 500 or more as High and the rest as Normal; a custom column labels negative amounts as returns; another works out a margin, with a test that stops it dividing by zero. Swap the threshold for your delegated limit and the labels for your office's own words, and every payment above the limit carries a flag the moment the data is refreshed, as does every negative entry that may be a refund or a keying error. Because the rule sits inside the query, it applies identically on every refresh and nobody can forget to drag it down. A PivotTable or a filter on the flag column then lists exactly the cases that need a second signature.

How do I prove this quarter's figures before they go to head office?

With a check query that totals and counts the rows by period and place, which The Complete Excel Course with AI Integration builds in Lesson 161. A reference query, wired to the main one so it always sees the latest data, groups the sales by year-month and region code and returns two figures for each pair: the sum and the number of rows. Sorted with the largest sums on top, a figure that is far too big stands out at once, and the lesson's own example says a region outselling the planet is usually a typo. For a quarterly return, lay the system's report beside that query: when the counts and sums for each month and district agree, nothing has been lost or doubled; when rows land in no month at all, the lesson traces them to dates that could not be read. The check reruns at every refresh, so the proof is ready each quarter without being rebuilt.

Test entries and repeated rows keep creeping into our case log: can the query drop them every time?

Yes, and every future export gets the same treatment, because the rules live in the query. The Complete Excel Course with AI Integration removes duplicates on the order ID in Lesson 160, so a row keyed in twice leaves only one copy, and the same lesson checks the ID columns for blanks, closing each check with Cancel so that no needless step is added. Test entries go the same way: a filter on the column that marks them, a reference beginning with TEST, say, unticked in the filter list, becomes a saved step. Lesson 161 and Lesson 164 untick blank months and blank dates in just that manner, and Lesson 168 checks the finished table for nulls after every merge and append. Nothing in the export is changed, so if a row was dropped wrongly you can step back through Applied Steps and see where it left.

One office sends its return late and another sends a corrected copy: how does a folder query cope?

The late return joins at the next refresh, and The Complete Excel Course with AI Integration shows how to spot a corrected copy stacked beside its original. The folder query of Lesson 166 stacks all the files it finds in the folder and adds a Source.Name column holding the name of the file behind every row, and a file saved there later is taken in when you refresh, so a late office simply arrives when its file lands. A corrected copy should replace the original in the folder rather than sit next to it, or both versions are stacked and that office is counted twice. Source.Name makes the double visible, and a Group By count of rows per file or per office, built the way Lesson 161 builds its check, shows any office that appears twice. Lesson 168 keeps Source.Name while the table is being built and unticks it before the final load.

Head office sends targets as a wide grid, one column per month: how do they end up beside our monthly actuals?

Through Unpivot, which The Complete Excel Course with AI Integration teaches on exactly that kind of file in Lesson 173. The lesson's export holds a region code, a category and a measure in its first columns, then a column for every month. Unpivot Other Columns, applied with those descriptive columns selected, folds the month columns down into rows, so the table reads one line per region, category, measure and month. The lesson then renames the new columns, clears n/a out of the amounts, builds a real date for each month and pivots the measure column back out, so budget and target stand as columns of their own, before Group By sums them for each month. Laid out long like this, the targets sit month by month exactly as actuals do, ready for SUMIFS or a PivotTable. Because the query names no month, next quarter's grid from head office refreshes without a single edit.

Our department is moving its reporting to Power BI: is Power Query in Excel still worth learning?

Yes, because it is the same Power Query, and The Complete Excel Course with AI Integration teaches it where you can practise today. Power BI prepares its data in the Power Query editor too, with the same Applied Steps, Replace Values, merges, appends and folder queries, so the method of SalesFusion carries straight across; Lesson 154 itself describes loading the cleaned output into Excel or Power BI. Learning it in Excel suits an officer well: the files you already hold are the practice ground, the results land in a workbook colleagues can open, and the step after, a data model with relationships and DAX measures, is taught in Excel too from Lesson 169, on Windows. Power BI's own report canvas and publishing are not among the lessons; the data preparation behind every Power BI report is, built by your own hand.

Our IT team installs nothing without approval: is Power Query already in the Excel on my office PC?

Yes: it is part of current Excel, and The Complete Excel Course with AI Integration opens it from the Data tab with nothing to install. Lesson 155 brings in a CSV through Get Data, From Text/CSV, and chooses Transform Data so the file opens in the Power Query Editor, and every lesson on this page works from that same built-in menu, with no add-in and no download. Windows is required by the course for two tools alone, Power Automate and Power Pivot, neither of which is on this path, so your request to IT stays at nothing. The first switch you meet comes one step beyond the page: the Power Pivot lessons from Lesson 169 turn on the data analysis add-ins from inside Excel, and that part of the course runs on Excel for Windows. Until then, the Excel already on your desk carries every query here.

When I move to another post, can my successor run the monthly query without me?

Yes, and a query is far easier to hand over than a routine kept in your head. Every step of a query in The Complete Excel Course with AI Integration is recorded in Applied Steps in the order it runs, and Lesson 156 shows how to rename those steps, so a successor reads Remove personal columns or Fix dates rather than a list of defaults. Running it next month is a refresh. Two habits from the lessons make the handover safe: keep every source file in the project's own folder, since Lesson 153 warns that moving files breaks the connections, and remember that pointing a query at a new file means changing only its Source step, as Lesson 164 does for a new year's export. Leave a finished copy with the check query of Lesson 161 beside it, and your successor can prove their first return against yours.

The system behind our export renamed one of its columns: what happens to the query?

One step reports an error, and The Complete Excel Course with AI Integration shows you how to find it and put it right in moments. A query refers to columns by their names, so the first step that names the old one stops with an error, and Applied Steps shows exactly which step that is. The lessons meet this in practice: Lesson 167 clears an error by deleting the main query's last Changed Type step, with the reminder that most Power Query errors vanish once the step that caused them is gone. A renamed column is often mended even more simply, by renaming the new header back to the old name as the query's first change, the same rename taught in Lesson 156, after which every later step runs as before. And Unpivot Other Columns in Lesson 173 is built so that new month columns never need an edit at all.

The next quarterly return is a few weeks away: can I learn enough Power Query to build it with a query?

Comfortably: the path takes 1 hour 36 minutes, and the first useful query is finished well before the end of it. In The Complete Excel Course with AI Integration, a messy export goes from import to clean columns, true types and year and month fields by Lesson 159; build those steps on a copy of your own export and this quarter's clean-up is done. The check query of Lesson 161 follows, then the merge, the append and the folder query of Lesson 166, the point at which a whole cycle of office files becomes one refresh. The lessons are short, the SalesFusion dataset comes with the course, and the completed workbook is there to check against. Choose the plan with instructor support and the instructor answers your questions in writing, your own return included, for two months that begin when you switch them on, and lifetime access keeps every lesson open for next quarter.

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.