The Complete Excel Course with AI Integration

Excel data cleaning for accounts payable clerks

An open-invoice export rarely arrives ready to use: subtotal rows under each supplier, names spelt three ways, invoice numbers with trailing spaces, amounts and dates stored as text. The Complete Excel Course with AI Integration teaches an accounts payable clerk to clean it identically every time, on industry-standard projects, and this page picks the lessons: worksheet clean-up, duplicates, splitting, text-number checks, and Power Query for the weekly file.

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:

  • Clear subtotal, grand total and blank rows out of an aged payables export with filters and a single delete, so no summary line is ever read as an invoice.
  • Bring supplier names and invoice numbers into one form with TRIM, PROPER, UPPER and Find and Replace, pasting the results back as values so no helper formulas stay behind.
  • Join overlapping weekly exports and take out the repeats with Remove Duplicates, comparing every column that identifies a line so a genuine second line of an invoice stays.
  • Split a combined order and invoice reference into separate columns with Text to Columns or Flash Fill, ready for a lookup.
  • Expose amounts stored as text with a COUNT against COUNTA check, and turn text dates into real dates so due dates and ageing calculate.
  • Turn credit notes marked CR into negative amounts with SEARCH, SUBSTITUTE and IF, before they inflate a supplier's balance.
  • Record the clean-up of a CSV export in Power Query, from trimming and replacing values to data types, and apply it to a whole folder of weekly files at each refresh.
  • Prove the cleaned list against the system's total with a Group By query of row counts and sums, and review Copilot's cleaning suggestions before accepting any.

Projects

What you will build.

The course has 14 industry-standard projects. These four matter most here.

  • Project 12

    SalesFusion

    A sales report that refreshes itself from a folder of files.

    Its sales CSV files arrive in the state finance-system exports do, amounts mixed with symbols, commas and NA and codes in mixed case, so the clean-up you record on them runs again on every weekly payables file.

  • Project 05

    SalesPlusPerformance

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

    Before its first PivotTable the raw order data is cleaned, because a stray space or a second spelling makes one region appear twice: the same fault that shows one supplier's balance on two lines of a payables summary.

  • Project 14

    Agentic AI in Excel

    AI finds and fixes the formula; you check it before it counts.

    Copilot drafts a cleaning plan and offers tidied names as a column to insert, while the call on which spellings are one supplier stays with the clerk who pays them.

Tap or pinch to zoom in, drag to move around. Click or scroll to zoom in, drag to move around.

  • Project 02

    Dunder Michael Paper Company employee database

    Its raw employee list carries the faults an invoice export does: stray spaces, inconsistent spellings, doubled symbols, repeated IDs and two facts crammed into one column. Cleaning it, then the Ninja Challenge's messier set, rehearses every fix before your live file.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 24 of them, 2 h 21 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 22 Cleaning data in Excel

Start at Lesson 22 if your invoices already sit in an Excel list you can sort and filter: it is the clean-up lesson itself, and its Find and Replace and TRIM work on this week's export straight away. Tables and filters new to you? Lesson 19 comes first, and Lesson 1 opens the course for anyone new to Excel. Already confident cleaning by hand? Jump to Lesson 155 and make the routine permanent in Power Query.

24 of 186 lessons · 2 h 21 min

03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 7 of 9 lessons · 52 min Tables, sorts and filters to see the whole export, then the clean-up itself: TRIM, Paste Special values and Find and Replace, Duplicate Values and Remove Duplicates, Flash Fill and Text to Columns. The lessons use an employee database whose faults, stray spaces, misspellings, repeated IDs and crowded columns, are the ones an invoice export arrives with.
  1. 19 Excel tables Create and format a table, structured references and total row 8 min
  2. 20 Sorting data in Excel Single and multi-level sort on an employee database 6 min
  3. 21 Filtering data in Excel AutoFilter, text and number filters on employee data 10 min
  4. 22 Start here Cleaning data in Excel TRIM, Paste Special values and Find and Replace 13 min
  5. 23 Remove duplicates in Excel Find and delete duplicate rows in an employee list 6 min
  6. 24 Flash Fill in Excel Split first and last names automatically 3 min
  7. 25 Text to Columns in Excel Split data by delimiter into separate columns 6 min
04 Essential formulas and functions (IF, SUMIF and more) 2 of 13 lessons · 11 min SUM, COUNT and COUNTA over whole columns: the completeness check that exposes amounts held as text and empty cells before a total goes to anyone.
  1. 34 SUM, COUNT and COUNTA in Excel SUM with FILTER and counting numbers with COUNT 7 min
  2. 35 SUM, COUNT and COUNTA in Excel COUNTA, unique counts and completeness checks 4 min
05 Text functions and data validation (enhancing data quality) 6 of 7 lessons · 30 min TRIM, UPPER, LOWER and PROPER for names and codes, FIND, SEARCH and SUBSTITUTE for characters inside a cell, the Text to Columns wizard, a drop-down list that stops the mess returning, and a Ninja Challenge on a messy employee set with its solution.
  1. 42 TRIM, UPPER, LOWER and PROPER in Excel Clean messy text and fix capitalisation 6 min
  2. 43 FIND, SEARCH and SUBSTITUTE in Excel Locate and replace text with formulas 5 min
  3. 44 Text to Columns wizard in Excel Split a column by a comma delimiter 4 min
  4. 45 Data validation in Excel Create drop-down lists for consistent data entry 4 min
  5. 46 Ninja Challenge: problem Clean messy data with text functions and validation 4 min
  6. 47 Ninja Challenge: solution PROPER, Text to Columns and drop-down lists 7 min
07 PivotTables and PivotCharts: data analysis made easy 1 of 10 lessons · 5 min The clean-up before a PivotTable: messy text, a stray space or a second spelling, makes one region appear twice, and Find and Replace, TRIM and PROPER put it right, as they put right a supplier split across two lines.
  1. 58 Preparing data for PivotTables Clean data with TRIM, PROPER, find and replace 5 min
08 Advanced Excel functions: lookups, text and arrays 1 of 12 lessons · 5 min TODAY, EOMONTH and NETWORKDAYS on a sheet of deadlines, with the lesson's warning that an odd date result usually means a date read as text, the fault behind most broken ageing.
  1. 74 TODAY, EOMONTH and NETWORKDAYS in Excel Date calculations for HR data 5 min
10 Boosting productivity with AI in Excel (Copilot, ChatGPT and Claude) 1 of 17 lessons · 4 min Copilot cleaning a messy sheet: extra spaces removed, inconsistent spellings brought to one form, a cleaning plan drafted, and a cleaned column offered to insert beside the original.
  1. 97 Clean messy data with Copilot in Excel AI prompts plus Excel functions 4 min
15 SalesFusion: advanced data tools and a Power Query modelling system 4 of 21 lessons · 20 min Power Query on a raw CSV: imported through Get Data with Transform Data, columns removed and renamed, text trimmed, cleaned and put in one case, symbols, commas and NA stripped out, and true data types set, all recorded as steps that replay on the next file.
  1. 155 Import a CSV with Power Query Get data from text and transform data 2 min
  2. 156 Clean columns in Power Query Remove and rename columns for modelling 5 min
  3. 157 Clean text in Power Query Trim, clean, replace values and fix text case 6 min
  4. 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 1 of 21 lessons · 5 min A Group By query that totals the data and counts its rows by month and region: the control figure to hold against the finance system's own report before the cleaned list is used.
  1. 161 Group By in Power Query Summarise sales by month and region to validate data 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system 1 of 21 lessons · 9 min From Folder: every file in a folder stacked into one table and cleaned by the same steps, with a column naming each file, so a new weekly export joins at the next refresh.
  1. 166 From Folder in Power Query Combine every sales file in a folder automatically 9 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.

Is there Excel data cleaning training that starts from the mess in a real accounts payable export?

Yes. The Complete Excel Course with AI Integration from Coding Liquids practises on files that are messy on purpose, and this page lines up the 24 lessons (2 hours 21 minutes) an accounts payable export calls for, in the order a Monday clean-up runs. First the junk rows: subtotals and blanks found with filters and deleted together (Lesson 21). Then the text: supplier names and invoice references put into one form (Lesson 22, Lesson 42), and crowded reference fields split apart (Lesson 25). Then the figures: amounts held as text exposed by counting (Lesson 35) and dates made real (Lesson 74). Then the repeats, removed with care (Lesson 23). Finally Power Query records the routine, so next week's file cleans itself on arrival (Lesson 166). You rehearse all of it on industry-standard projects, each designed after talking with people from many different industries, then point the same moves at your own export.

The aged payables report exports with a subtotal under every supplier: how do I clear those rows before anything is totalled?

Filter for them, delete them together, and check nothing else went with them; The Complete Excel Course with AI Integration teaches each move. Turn the filters on with Ctrl+Shift+L, as Lesson 21 does, and a Text Filter set to Contains, with the word your report prints on its total lines, shows every subtotal and the grand total at once. Lesson 23 shows the delete that follows: filter to the unwanted rows, remove them, clear the filter, and only real lines remain. Blank rows between suppliers go the same way, and they matter more than they look: Lesson 58 shows that an empty row can make a PivotTable think the data ends early. Left in, a subtotal row is read as one more invoice, and the supplier appears to owe double. Once the list is plain rows, Lesson 19 turns it into an Excel table that keeps every new row inside its totals.

My cleaned invoice list totals less than the system's aged payables figure: where does the gap usually hide?

In one of three places, and The Complete Excel Course with AI Integration gives you the check for each. Amounts stored as text are the commonest: SUM passes over them without a word, and the COUNT against COUNTA test of Lesson 34 and Lesson 35 exposes them, because COUNT sees only true numbers while COUNTA sees every filled cell, so any difference between the two is a count of suspects. Hidden rows come next: Lesson 21 warns that a filter hides rows without deleting them, and a forgotten filter can leave a supplier out of view while you copy. Rows lost in cleaning are the third. In Power Query, Lesson 161 builds a Group By query that totals the data and counts its rows by month and region, a control you can lay beside the system's report line for line. The gap is found in minutes, not after the payment run has been agreed.

Last week's export and this week's overlap by a few days: how do I join them without paying the overlap twice?

Stack them, then let Remove Duplicates take out the lines that appear in both, and The Complete Excel Course with AI Integration shows exactly how to decide what counts as a repeat. In Lesson 23, Remove Duplicates asks which columns to compare: Continue with the current selection removes values from one column only, while Expand the selection removes whole rows. For invoices, compare every column that tells two lines apart, cost centre included, so a genuine second line of one invoice survives while the copy from the overlap goes. Before deleting anything, the Duplicate Values highlight from the same lesson shows each repeat in colour for a quick look. The lesson's table filter method also lets you choose by hand which copy stays, useful when the later export carries a corrected amount. Power Query has its own Remove Duplicates step, used inside SalesFusion in Lesson 160, for an overlap that comes back every week.

The supplier master may hold one company twice under slightly different names: can cleaning show it before a payment goes to the wrong record?

Yes: standardise the names, then let the duplicates show themselves, and The Complete Excel Course with AI Integration teaches the full sequence. Lesson 42 trims stray spaces and evens out capitals with TRIM and PROPER in a helper column, then pastes the results back as values so no formulas are left behind. Lesson 22 uses Find and Replace on spellings, limited to one column so nothing else changes, which turns Ltd. and Limited into one form. A Text Filter with Contains (Lesson 21) lists every record carrying a key word of the name, the quickest way to see variants side by side. Then the Duplicate Values highlight of Lesson 23 colours the names that now match. Merging supplier records happens in your finance system, but the list of candidates comes from Excel, and a supplier set up twice is one of the classic routes to a bill being paid twice.

Some invoice dates arrive as text, so the ageing and the payment run pick the wrong bills: how does the course deal with that?

It shows you the symptoms, the checks and the fixes, on the worksheet and in Power Query. The Complete Excel Course with AI Integration meets the problem in Lesson 20: a date column that sorts strangely may hold dates Excel reads as text, so the column is set to Short Date and checked before sorting. Lesson 74 adds the rule of thumb that an odd date result usually means a date read as text, and fixes one by retyping it in the order the sheet expects, day first. Since Excel stores dates as numbers, a text date breaks every subtraction from TODAY, which is exactly how an ageing column goes wrong. For the export that keeps arriving, Lesson 158 gives each column its data type in Power Query, dates included, and the same step runs on every later file. Once the dates are real, due dates sort, ageing bands hold, and the payment run selects the right bills.

The invoice capture export holds references like PO4500123/INV8821 in one field: how do they become two columns a lookup can read?

Text to Columns splits them at the slash in a few clicks, and The Complete Excel Course with AI Integration teaches it twice over. Lesson 25 runs Data, Text to Columns, chooses Delimited and sets Other to a character of your own, the move the lesson uses to split email addresses at the @ sign, here pointed at the slash. Insert an empty column first, as the lesson advises, or the split overwrites its neighbour. Lesson 44 repeats the wizard with a comma and explains Treat consecutive delimiters as one, which stops a doubled separator pushing data into the wrong column. Where the pattern is irregular, Flash Fill from Lesson 24 learns from one example you type, Ctrl+E, and fills the rest, results you then check. With the order number in a column of its own, matching each invoice to its purchase order becomes a plain lookup instead of a hunt through text.

Suppliers write one invoice number as INV-0042, inv 0042 and 0042: can the export be made consistent before the duplicate check?

Yes, and it is worth doing before any duplicate test, because Excel treats each spelling as a different invoice. The Complete Excel Course with AI Integration gives you two routes. On the worksheet, Lesson 22 uses Find and Replace to strip a prefix or a hyphen, always with the column selected first, since the lesson shows Replace All removing every dash on the sheet when it was not narrowed. Lesson 42 brings the case into line with UPPER. In Power Query, Lesson 157 trims, sets UPPERCASE and uses Replace Values with nothing in the replace box to strip hyphens from a code, steps saved with the query so next week's file receives them too. Find and Replace rewrites the column itself, so keep the export as it came on a sheet of its own; Power Query never edits the source file at all, which leaves every cleaned number traceable to the original.

Credit notes come through as positive amounts with CR after them: can the clean-up turn them into negatives?

Yes, with functions taught in The Complete Excel Course with AI Integration and a helper column you remove afterwards. SEARCH, from Lesson 43, finds the letters CR inside a cell and returns their position, and wrapping it in IFERROR, as the lesson does, gives a plain answer where they are missing. SUBSTITUTE, in the same lesson, strips the letters away, and IF (Lesson 29) multiplies the amount by minus one only on the rows where CR was found. Paste the results back as values, the habit Lesson 22 teaches, and the helper column goes. The point is more than tidiness: a credit note left positive inflates the supplier's balance and could be paid out as if it were an invoice. Power Query offers the same logic as a conditional column, and in SalesFusion a negative amount is labelled a return by a custom column (Lesson 160), a pattern that suits credits too.

The finance system saves a fresh open-invoice file to one folder every week: can Excel clean each file as it lands?

Yes: Power Query's folder query does exactly that, and The Complete Excel Course with AI Integration builds one in Lesson 166. Get Data, From Folder, then Combine and Transform stacks every file in the folder into one table, with a column naming the file each row came from, so you can always see which week a line belongs to. The cleaning is set once, in the sample file the query provides: header renames, Trim, UPPERCASE, Replace Values and data types, the same steps taught on a single CSV in Lesson 155 to Lesson 158. Every step there applies to every file in the folder, and a new file dropped in is picked up at the next refresh. The lesson also switches on column profiling, so the quality of each column shows before anything is loaded. Monday's manual clean-up turns into a refresh, whether the folder holds sales files, as in the lesson, or your payables exports.

Is there a quick way to clean an export, or does every fix need a formula?

Many fixes need no formula at all, and The Complete Excel Course with AI Integration teaches the quick ones with their shortcuts. Find and Replace opens with Ctrl+H and clears a misspelling or a stray character across a column at once (Lesson 22). Paste Special values, Ctrl+Alt+V, swaps cleaned formulas for plain values. Flash Fill, Ctrl+E, splits or joins text from one typed example (Lesson 24). Ctrl+Shift+L switches the filters on (Lesson 21), and Remove Duplicates and Text to Columns are a button each on the Data tab. Formulas such as TRIM and PROPER come in where a rule must apply to every row the same way (Lesson 42), and Power Query takes over when the file comes back every week. The shortcuts shown are the Windows ones; every command also sits on the ribbon, so a Mac user follows the same lessons. Knowing which tool fits which fault is what turns a morning of cleaning into minutes.

Copilot offered to clean my export the moment I opened it: should I accept what it suggests?

Accept it the way The Complete Excel Course with AI Integration teaches: one suggestion at a time, checked. In Lesson 97, Copilot's suggestion opens above the formula bar on the messy sheet, applies the removal of extra spaces, and fixes each inconsistent spelling by letting you pick or type the one correct form, repeated until none remain. Asked, it also drafts a cleaning plan covering text fields, redundant spaces, inconsistent casing and missing values, and offers a cleaned column to insert rather than overwriting yours. For a supplier list that last choice matters: Copilot can see that two spellings look alike, but only you know whether they are one supplier or two companies with similar names. Keep the original column, compare, then decide. The checklist in Lesson 99 applies to every AI result, and these suggestions need Copilot in your Microsoft 365, while the worksheet and Power Query methods on this page need nothing beyond Excel.

I clean the AP export by hand every Monday: how much of that routine will these lessons take over, and how soon?

Most of it, and the first part within days of starting. In The Complete Excel Course with AI Integration the worksheet lessons come first, and every move in them works on Monday's file at once: trimming, case, Find and Replace, duplicates, splitting. The Ninja Challenge (Lesson 46 and Lesson 47) then hands you a messy employee list with its own task sheet and a solution file, so you rehearse on something that is not live. The Power Query lessons make those moves permanent, and the routine becomes a refresh. The whole path is 2 hours 21 minutes. Nothing beyond everyday Excel is assumed, and none of it needs Windows, since Power Pivot and Power Automate are not on this path. With the instructor support plan, a question about your own export goes to the instructor in writing, and lifetime access keeps the lessons ready for the next odd file the system produces.

Cleaning fixes this week's file: what stops the same mess coming back in invoices keyed by hand?

A drop-down list on the columns people type into, and The Complete Excel Course with AI Integration teaches it as the last step of the clean-up. Lesson 45 sets Data Validation to List with the approved entries kept on a sheet of their own, so a cost centre or a status can only be chosen, never typed three ways, and a value off the list is refused with an error message. The lesson's own example is the trap every register falls into: two names for one department count as two departments in every report. In the Ninja Challenge solution (Lesson 47), four columns end up behind drop-downs, and an error on an existing cell once its list is in place is the rule at work, the cue to pick the right value from the drop-down. Keep the cleaned register as an Excel table (Lesson 19) and new rows inherit its structure, so this week's tidy file is still tidy 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.