The Complete Excel Course with AI Integration
Power Query for accounts payable clerks
The same invoice export lands every week with the same faults: amounts held as text, invoice numbers stripped of their zeros, one supplier under three names and a new file for every run. The Complete Excel Course with AI Integration hands that routine to Power Query on SalesFusion, an industry-standard project, and this page picks out the lessons in the order a payables clean-up runs: import, clean, type, prove, merge, append, a folder of files and Unpivot.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Bring the invoice export from your finance system into Power Query, so the clean-up is recorded once and replayed on every new file at a refresh.
- Clear spaces, symbols, NA entries and mixed capitals out of supplier codes, references and amounts with Trim, UPPERCASE and Replace Values.
- Give every column its type on purpose, amounts as decimals and dates as dates, with invoice numbers and supplier codes as Text so their leading zeros survive.
- Prove an export before it is used with a Group By that totals it and counts its rows, and list any supplier and invoice number pair that appears more than once.
- Set each invoice beside its purchase order with a left outer merge, work out the difference in a custom column and catch the invoices with no order.
- Map a supplier's trading and registered names to one record with a merge against a mapping table you keep.
- Combine a folder of weekly payment run files into one history that takes in the next file on refresh, each line marked with the file it came from.
- Unpivot an ageing report with a column per age band into rows of supplier, band and amount, ready for PivotTables and charts.
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 reporting system, its Power Query half handles the raw material of a payables desk in another guise: exports with symbols and words where figures belong, lookup tables to match against, a second year to stack, a folder of period files and a wide grid, each made into a table you can prove before anything is paid.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales, it teaches where a clean query's output goes next: PivotTables that total a table by any field with its dates grouped for you, slicers to narrow the view, and Refresh All, which updates every query and PivotTable in the workbook in one press.
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
Start at Lesson 153 if your invoice list already lives in an Excel table and you have built a PivotTable: SalesFusion runs from there in the order a weekly clean-up does. If tables or PivotTables are new to you, Lesson 19 and Lesson 57 come first; if Excel itself is new, the course begins at Lesson 1. Cleaning exports in Power Query already? Skip ahead to Lesson 161, where control totals, merges and the folder query start.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system The idea and the first step: ETL, where a clean-up is recorded once and replayed on every new file, the project folder that keeps every connection working, and a CSV brought in through Get Data with Transform Data chosen over Load, so an export becomes a pipeline instead of a paste.
- 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 itself: unwanted columns removed and the rest renamed, an InvoiceNumber column among them; codes trimmed, put in capitals and stripped of hyphens; the money symbol, commas and NA cleared from amounts; every column given its true type; and dates rescued from placeholder text, with year, month and year-month columns added. The files are sales exports; an invoice export takes the same steps.
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system Rules and proof inside the query: custom and conditional columns that calculate and label, Remove Duplicates where a repeated row is a fault of the export, a Group By that totals the data and counts its rows by month and region, and Close and Load choices that keep working queries as connections.
- 160 Business logic in Power Query Custom and conditional columns for profitability 6 min
- 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 Matching and combining: a left outer merge that keeps every row and brings in what matches, a pipeline pointed at a new file by changing one step, two years appended into one table, every file in a folder combined with the name of its source, the folder's files cleaned through one sample file, and a master table checked for blanks after every merge.
- 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
- 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 Unpivot for wide reports: a grid with a column per month turned into rows of period and amount by naming only the columns to keep, so a column added later cannot break it. An ageing report with a column per band takes the same step.
- 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.
Where does Power Query earn its place in an accounts payable clerk's week, and where is it taught on exports as faulty as the real ones?
The Complete Excel Course with AI Integration from Coding Liquids teaches it on SalesFusion, a project that is industry standard, designed after talking with people from many different industries, whose raw files share the faults of a payables export: text where amounts belong, codes in mixed case, dates that will not read and a new file every period. You import a CSV through Get Data (Lesson 155), clean it once in steps that replay at every refresh, prove it with a Group By of totals and row counts (Lesson 161), set it beside a second table with a merge (Lesson 163) and combine a whole folder of files (Lesson 166). For a clerk that means the weekly invoice export cleaned without a hand on it, invoices matched to their orders and a history of every payment run. The path here holds 17 lessons, 1 hour 36 minutes in all, each one tied to a piece of payables work.
Invoice numbers such as 000417 lose their leading zeros and stop matching: can Power Query keep them as text?
Yes, by taking each column's type out of Excel's hands, and The Complete Excel Course with AI Integration teaches both halves. When a CSV is imported, Power Query records a Changed Type step of its own, visible in Applied Steps from Lesson 156, and that step can read 000417 as the number 417. Lesson 158 sets each column's type deliberately, decimals for amounts, whole numbers for quantities and Text for anything that identifies, and Lesson 167 shows the cure when an automatic Changed Type step causes trouble: delete it, since most Power Query errors vanish with the step that caused them. Set invoice numbers, supplier codes and order numbers to Text before anything else touches them, and every later merge compares 000417 with 000417, so no invoice drops out of a match because a zero went missing on import.
Some invoices carry a supplier's trading name and others its registered name: can a query map both to one supplier?
Yes, with a small mapping table and a merge, and The Complete Excel Course with AI Integration teaches the merge on real lookup files. Keep a two-column table, every name the supplier has used beside the one name your register uses, and merge the invoice query with it on the name column (Lesson 163). The left outer join keeps every invoice and fills in the standard name wherever a match exists. Clean both sides first: Trim and UPPERCASE in Lesson 157 remove the stray spaces and mixed capitals that make two spellings of one name look different, and Power Query is case-sensitive, as the lesson's quiz points out. After the merge, look for invoices whose standard name came back empty, the way Lesson 168 checks for blanks after every merge: those are names the mapping does not know yet. Add each one once and every future export maps it too.
Can Power Query set each invoice beside its purchase order and show where the amounts differ?
Yes: a merge brings the order's amount onto the invoice, and a custom column works out the gap. The Complete Excel Course with AI Integration merges one query with another on a shared code in Lesson 163, using a left outer join that keeps every row of the first table, so each invoice keeps its line whether or not an order exists. Expand the order amount beside the invoice amount, then add a custom column for the difference (Lesson 160), the same subtraction the lesson uses for profit, and a conditional column that labels any gap above your tolerance. An invoice whose order columns come back empty quotes an order number purchasing never raised, the first query to send. Load only the finished table to a sheet and keep the working queries as connections (Lesson 162). Next week's export runs through every one of these steps at a refresh.
A year of payment run files sits in one folder: can Power Query make one payment history, with the run each line came from?
Yes: that is From Folder, and The Complete Excel Course with AI Integration builds it in Lesson 166. Power Query combines every file in the folder into one table and adds a Source.Name column naming the file each row came from, so every payment stays tied to the run that made it. The cleaning is set once in the sample file and applies to every file in the folder, and a file saved there next week joins at the next refresh. Lesson 167 adds derived columns on top, and Lesson 168 appends the folder's rows to an earlier history and checks the result for blanks. Column profiling over the entire data set shows at a glance how many values are empty or in error. The files need one layout, which exports from one system normally share. A year of runs becomes one table you can search, filter and summarise in a moment.
Before an invoice joins the run, can a query check it against every payment already made?
Yes: merge the run against the payment history, and any invoice that finds a partner has been paid before. The Complete Excel Course with AI Integration teaches the merge in Lesson 163 and the history in Lesson 166, and joining the two answers the most expensive question in payables. Merge this week's proposal with the history on supplier and invoice number, keep the left outer join so every proposed payment stays on the list, and expand the payment date: an empty date means not yet paid, and a filled one is a payment to stop. The Join Kind list read through in Lesson 164 offers other joins, among them one that returns only the matches, which gives the list of repeats on its own. Clean both sides of the key first, since a stray space or a missing zero hides a match and lets a duplicate payment through.
Can Power Query find the same invoice number from the same supplier twice in an export, without deleting either line?
Yes, with Group By, and The Complete Excel Course with AI Integration shows why that beats Remove Duplicates for payables. Lesson 160 removes duplicate rows on an order number, which is right for an export that repeats rows by mistake. In accounts payable the second line may be a second invoice to stop, so deleting it hides the evidence. Use the method of Lesson 161 instead: a Reference query that stays wired to its source, grouped by supplier and invoice number, with Count Rows as its aggregation and a number filter keeping the groups greater than one. The result lists every pair worth a look while the data itself loses nothing. Add a Sum of the amount to the same grouping and you see at once whether the copies agree exactly, which separates a line keyed twice from a genuine second invoice that happens to share a number.
Our system's ageing report puts each age band in its own column: can Power Query turn it into rows a PivotTable can total?
Yes: Unpivot Other Columns does it in one step, and The Complete Excel Course with AI Integration teaches it in Lesson 173 on a wide export with a column for every month. Select the columns that describe each line, supplier and account here, and Unpivot Other Columns turns every other column into rows of attribute and value, which you rename Band and Amount. Because the step names the columns it keeps rather than the ones it turns, a band the system adds later cannot break the query, the point of the lesson's quiz. The lesson clears n/a entries from the amounts and totals the result with Group By, steps a report with blank bands needs as well. In the long shape a PivotTable totals the bands by supplier, a chart reads them directly, and the same query refreshes the day next month's report replaces this one.
Can the query work out how overdue each invoice is, or does ageing belong on the sheet?
Both have a part, and The Complete Excel Course with AI Integration teaches each where it works best. The query makes the dates trustworthy: Lesson 159 clears placeholder text and impossible dates, sets the column to Date and adds year, month and year-month columns, so every invoice reports in the right period. The ageing itself belongs on the sheet, beside the loaded table, because TODAY recalculates every time the file opens (Lesson 39) while a query recalculates only when it is refreshed. A conditional column (Lesson 160) still suits labels that never move, such as an invoice's size class, and IFS on the sheet (Lesson 32) bands the live day count. Clean dates from the query and live ages from the sheet: the split keeps the weekly refresh simple and the ageing right on every day of the week.
Payments and invoices come from two systems that write references differently: can a merge still match them?
Yes, once both sides are written the same way, which is a cleaning job The Complete Excel Course with AI Integration teaches before its merges. In Lesson 157 Replace Values strips the hyphens out of product codes, and Trim and UPPERCASE remove the spaces and capitals that make one code look like two; apply the same steps to both reference columns and INV-0042, inv 0042 and INV0042 all become one key. Set the key to Text in Lesson 158 so no zero is lost, then merge (Lesson 163). Any payment that still finds no invoice comes back with empty columns, the short list to look into by hand. Matching on loose or partial references is not taught; for references that share a core once cleaned, the steps run again on every export at refresh, so this week's reconciliation starts where last week's ended.
Is Power Query difficult to learn for someone who lives in the invoice register?
No: it is mostly menus and buttons, and The Complete Excel Course with AI Integration keeps the typing to a minimum. Every step in SalesFusion, from importing a CSV (Lesson 155) to combining a folder (Lesson 166), is a click that Power Query records for you in Applied Steps, where clicking any step shows the data as it stood at that point. The only formulas are short custom columns, such as a profit or a discount rate (Lesson 158, Lesson 160), and they read much like the formulas in your register. A merge does for every row at once what an XLOOKUP does for one, and Group By totals every group the way SUMIFS totals one, so a clerk who uses those has the instincts already. Stuck on a step with your own export? The instructor support plan answers in writing under the lesson for two months, counted from the day you turn it on.
Does an accounts payable clerk need DAX as well, or is Power Query enough?
For cleaning, matching and combining payables data, Power Query is the tool, and The Complete Excel Course with AI Integration teaches it in full on this page. DAX does a different job: it writes measures over a data model, totals that recalculate for every filter and slicer, and SalesFusion moves on to it after the queries, relating tables in Power Pivot and measuring them with DAX from Lesson 169; those lessons need Excel for Windows. A clerk whose reports are PivotTables on one clean table rarely needs a model, while one who joins invoices, orders and payments into a single reporting system will find DAX the natural next step. SalesFusion puts the difference in one line: Power Query makes data usable, and the data model makes it useful. Learn the queries first, because every measure depends on the clean tables they produce.
Monday's invoice export takes most of the morning to tidy: at which lesson does that time start coming back, and will a Mac do?
At Lesson 159, where the clean-up of one export is complete, and yes, a Mac will do. By then The Complete Excel Course with AI Integration has taken a CSV from import to true data types and period columns; rebuild those steps on your own export and the Monday tidy becomes a refresh. Control totals, merges and appends follow, and by Lesson 166 a folder of weekly files has become one query. Power Query is built into Excel under Get Data on the Data tab, so there is nothing to install, and the course's requirements name Windows only for Power Pivot and Power Automate, neither of which is on this page. The whole path is 1 hour 36 minutes, the SalesFusion dataset and finished workbook come with the course for checking every step, and lifetime access keeps the lessons open for the next export your finance system 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.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
More skills for this job
- Formulas for accounts payable clerks
- Lookups for accounts payable clerks
- PivotTables for accounts payable clerks
- Excel charts for accounts payable clerks
- Dashboards for accounts payable clerks
- Conditional formatting for AP clerks
- Data cleaning for AP clerks
- Data validation for AP clerks
- Tables, sort and filter for AP clerks
- Text functions for AP clerks
- Date functions for AP clerks
- Dynamic arrays for AP clerks
- Power Pivot and DAX for AP clerks
- Macros and VBA for AP clerks
- Power Automate for AP clerks
- Copilot for AP clerks
- ChatGPT for AP clerks
- Claude in Excel for AP clerks