The Complete Excel Course with AI Integration

Excel macros and VBA for market research analysts

Every wave's export needs the same checks before a table is run: blank answers to required questions, ratings that are not numbers, tables formatted the house way. The Complete Excel Course with AI Integration teaches macros and VBA on FormatWizard, an industry-standard project, and this page takes all of it for survey files: recorded macros and buttons, the VBA editor, loops that flag each respondent row, highlights, IsNumeric checks, debugging and one validation macro.

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:

  • Record a macro that formats a cross-tab or a problem row the house way, with relative references so it works from whichever cell you start, and run it from the Developer tab or a toolbar button.
  • Save macro workbooks in the XLSM format, keep everyday macros in the Personal Macro Workbook, and enable content only on files you trust.
  • Read recorded code in the VBA editor, then write your own subs with declared variables, Option Explicit and a reusable function that finds the last respondent row of any export.
  • Loop through every row of a survey file with For Next, flag missing answers in a flag column and build one message per respondent that lists each problem found.
  • Colour the cells behind each flag with Interior.Color and RGB, and mark ratings that are not numbers with IsNumeric.
  • Clear old flags before each run, confirm what the code reads with Debug.Print in the Immediate window, and join every check in one master macro with an error handler.
  • Correct macro code drafted by ChatGPT or Claude by spotting the slips the lessons warn about, from a message never emptied to a column letter left unchanged.

Projects

What you will build.

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

  • Project 11

    FormatWizard

    One click that checks a whole sheet for you.

    Built on a sales sheet of some five thousand rows, it is the pattern for checking a respondent file: blanks and non-numbers flagged row by row, problem cells coloured, old flags wiped before each pass, and the whole audit started from one master macro that reports its own errors.

  • Project 13

    AutoFlow

    The weekly report routine, run by a flow instead of by you.

    Built around a starter workbook for a weekly sales routine, it is the code-free counterpart to a macro: Power Automate Desktop flows that open, read, write and close Excel from outside it, worth knowing when a job spans more than one app. Its lessons need Windows.

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 16 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 136 Excel macros and VBA for beginners

Start at Lesson 136: FormatWizard begins with the recorder and moves on to written code, so no programming is assumed. If you already record macros and want the code, begin at Lesson 141. New to Excel? Build the basics from Lesson 1 first, because the macros act on tables, formats and filters you should know by hand. If code holds no fear for you and checking files is the goal, jump to Lesson 146, where the flagging loops begin.

17 of 186 lessons · 1 h 16 min

14 VBA and macros in Excel: FormatWizard 5 of 17 lessons · 19 min The recorder's half of FormatWizard: the sales data and the flag column it will fill, a first recording with a keyboard shortcut, relative references so one recording fixes any row, the Developer tab and a Quick Access Toolbar button, and the XLSM format that keeps the code when the workbook is saved.
  1. 136 Start here Excel macros and VBA for beginners What macros are, the FormatWizard project 3 min
  2. 137 Record your first Excel macro Name, run and use absolute references 6 min
  3. 138 Relative references in Excel macros Make recorded macros dynamic 4 min
  4. 139 Developer Tab in Excel Run macros from a button and the quick access toolbar 4 min
  5. 140 Save macros in Excel Macro-enabled workbooks and the XLSM file format 3 min
14 VBA and macros in Excel: FormatWizard 5 of 17 lessons · 23 min Reading and writing code: the editor and its modules, macro security and trust settings, a first line that points at a worksheet, Option Explicit and declared variables, Sub against Function, and GetLastUsedRow, a function that finds the true end of a file of any length.
  1. 141 The VBA Editor in Excel Open it with Alt+F11 and learn the workspace 4 min
  2. 142 Working in the VBA editor Macro security, trust settings, switching to Excel 6 min
  3. 143 Your first VBA code Modules, worksheets, rows, columns and formatting 4 min
  4. 144 VBA variables and data types Sub vs function for Excel beginners 6 min
  5. 145 VBA functions in Excel Build GetLastUsedRow with find and exit function 5 min
14 VBA and macros in Excel: FormatWizard 4 of 17 lessons · 20 min Row-by-row checks: a reset of the flag column before each run, a For Next loop that flags every missing region, two checks in one pass with a message built per row, and soft red highlights on the empty cells, the same pattern a respondent file needs for its required questions.
  1. 146 Clear old flags with VBA Reset messages and fill colours with if statements 5 min
  2. 147 For Next loop in VBA Flag missing region values in Excel 4 min
  3. 148 VBA If Else and loops Check missing sales data and build a FlagText message 5 min
  4. 149 Highlight cells with VBA Interior.Color and RGB for missing data 5 min
14 VBA and macros in Excel: FormatWizard 3 of 17 lessons · 14 min Proof and polish: IsNumeric to flag entries that are not numbers, Debug.Print and the Immediate window to see what the code reads before it writes, and RunFullValidation, one subroutine that calls every check in order behind an error handler.
  1. 150 IsNumeric in VBA Validate unit price and amount data types in Excel 7 min
  2. 151 Debugging VBA for beginners Debug.Print and the Immediate window 5 min
  3. 152 Complete Excel validation macro One VBA subroutine with an error handler 3 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.

Excel macros and VBA for market research analysts: what can a macro take off my desk each wave?

The checks and formatting you repeat on every export, and The Complete Excel Course with AI Integration from Coding Liquids teaches you to hand them to code. FormatWizard, an industry-standard project designed after talking with people from many different industries, starts with recorded macros and moves to VBA that loops through a sales sheet of five thousand rows, flags blanks and entries that are not numbers, colours the problem cells and runs the whole audit from one master macro with an error handler. Read that sheet as a respondent file and every piece maps onto survey work: a missing region becomes a missing answer, the per-unit figure becomes a rating, and the flag column becomes your list of interviews to query. All 17 lessons sit on this page, 1 hour 16 minutes from the first recording to a validation run you can point at the next export.

Can a macro check every respondent row for missing answers in one pass and say what is wrong with each?

Yes, and FormatWizard builds exactly that in The Complete Excel Course with AI Integration. Lesson 147 loops down the sheet with For Next, using Trim so a cell holding only spaces still counts as empty, and writes Region missing in the flag column wherever the region is blank. Lesson 148 widens it to two checks in one loop: a FlagText message is emptied for each row and then gains every problem found, separated by a pipe, so one row can report a missing region and a missing salesperson together. Lesson 149 colours the empty cells a soft red with Interior.Color and RGB, a second layer of warning from the same run. For survey files, aim the checks at the questions every respondent must answer, such as the age band, the region or the screener, and the flag column becomes the list of interviews to query or remove.

Can a macro mark every rating that is not a number, so coders can see what to fix?

Yes. Lesson 150 of The Complete Excel Course with AI Integration writes a loop with IsNumeric that tests each entry in a number column and catches whatever is not a number: a word, a note such as N/A, a stray character typed in with the figure. Each such cell turns light red, the flag cell beside it turns red too, and the flag says the entry is invalid, a different message from missing, so a coder knows whether to chase a blank or correct an entry. The lesson tests the per-unit figure of a sales sheet; point it at a rating column and every DK or typed comment shows at once. Scores that arrived as digits held as text are a separate fault, and the course fixes those with the COUNT beside COUNTA check (Lesson 35) and Power Query's data types (Lesson 158).

Every wave's export runs to a different length: will the macro find the last respondent by itself?

Yes: the course writes a function for exactly that. In Lesson 145, The Complete Excel Course with AI Integration builds GetLastUsedRow, which searches the sheet upwards from the bottom with Find and returns the row number of the last entry, after a COUNTA test that returns zero for an empty sheet instead of failing. Run on the FormatWizard data it reports row 5071; add a row and it reports 5072, with nothing in the code changed. Every later macro calls it, so the loops run from the second row to the true last row of whichever file is open, whether this wave holds three hundred completes or three thousand. Lesson 146 adds the matching guard: when only the header row is present, the macro says so and stops. Declared Public in that lesson, the function then serves every module in the workbook.

Coders fix answers and I run the checks again: will old flags pile up or get erased?

They are cleared and rebuilt on every run, because The Complete Excel Course with AI Integration builds the clean-up into the routine. Lesson 146 writes a macro that clears the flag column's messages with ClearContents and removes its fill colours, so each pass starts from a clean column, and stops with a message if the sheet holds only headers. Lesson 152 then joins everything in RunFullValidation: old flags cleared first, then the missing-value checks, then the IsNumeric check, called in that order. One detail in that lesson matters for respondent files: two routines writing to the same flag cell must append after a pipe rather than overwrite, or the second check erases the first, and the lesson changes the code to append. The result is one current list of problems per respondent, rebuilt from scratch each time the coders hand the file back.

Our cross-tab tables must be formatted the house way every time: can a recorded macro do it?

Yes: record the formatting once and replay it with a keystroke, the first skill The Complete Excel Course with AI Integration teaches in FormatWizard. Lesson 137 records a macro that sets a row bold, italic and highlighted, names it without spaces and gives it a Ctrl shortcut; Lesson 138 records again with Use Relative References, so the macro formats whichever row you start from rather than one fixed row. Lesson 139 puts it on the Developer tab and as a button on the Quick Access Toolbar. For a results table, record your own pass of fonts, fills, number formats and borders, and every table of every wave gets identical treatment in one click. Two cautions from the lessons are worth knowing early: Ctrl+Z cannot undo a macro, and a macro kept in the Personal Macro Workbook is there whenever Excel opens on that computer.

Recording a macro looks easy: how far beyond the recorder does the course take me?

All the way to code you write and debug yourself. The Complete Excel Course with AI Integration opens the recorded macro in the VBA editor (Lesson 141) and reads it, then starts afresh: a module that points at the Data worksheet (Lesson 143), Option Explicit, declared variables and the difference between a Sub and a Function (Lesson 144), loops and If statements (Lesson 147 and Lesson 148), colour by RGB, IsNumeric, Debug.Print and finally a master macro with an error handler (Lesson 152). Record first, read the code second, then write your own: the order most macro users learn in, carried here all the way to a working validation tool. PDF exports and pulls from outside data sources are not among the lessons; checking and formatting the sheet in front of you, the heart of a researcher's macro work, is covered from end to end.

A macro from ChatGPT runs cleanly but flags the wrong respondents: what does the course teach me to look for?

The slips FormatWizard's lessons point out one by one, so you recognise them in code you did not write. The Complete Excel Course with AI Integration has learners draft parts of a loop with ChatGPT or Claude, each in its own window, and then correct them (Lesson 148). Three faults are named along the way: a FlagText message not emptied at the start of each row, which carries one respondent's problems into the next; a line copied from one check to another with its column letter unchanged, which lights up the wrong column (Lesson 149); and a variable used without being declared, which Option Explicit stops before the code runs (Lesson 144). Debug.Print and the Immediate window (Lesson 151) then show which rows and values the code really reads, before a single flag lands in a respondent file.

Client files arrive with macros switched off behind a yellow bar: when should I enable them, and how do I share my own?

Enable content only for files you trust, the rule The Complete Excel Course with AI Integration teaches in Lesson 142 along with Excel's macro security and trust settings. Survey work makes the rule practical: a tracker from a known colleague is one thing, an unexpected attachment is quite another. For your own macros, Lesson 140 shows why the file type matters: saved as an ordinary workbook, every macro is stripped out, while the macro-enabled XLSM format keeps the code with the data, and the first save of such a file needs Save As. Macros you want in every workbook belong in the Personal Macro Workbook (Lesson 137), which opens with Excel on your own computer, so your house formatting and checks never have to travel inside a client deliverable.

Is VBA still relevant for survey work, now that Power Query and AI tools exist?

Yes, for the jobs it does best, and The Complete Excel Course with AI Integration teaches all three so each gets its own. Power Query reshapes an export as it comes in, step by recorded step, which suits the import and cleaning of each wave (Lesson 157). VBA acts on the sheet in front of you: it loops through every respondent, flags what is wrong, colours cells, formats tables and runs from a button, which no query does. AI tools draft and explain, and Lesson 99 supplies the checklist for whatever they return. A macro also runs the same way every time, for you or a colleague, the point Lesson 136 makes about consistency. In a research team that sameness is the whole case: every wave checked by the same rules, whoever presses the button.

What is replacing Excel macros, and should a researcher learn Power Automate instead?

Learn both, because The Complete Excel Course with AI Integration teaches them as partners rather than rivals. FormatWizard covers VBA inside the workbook; AutoFlow covers Power Automate Desktop, with flows that open, read, write and close Excel from outside it. Lesson 181 draws the line itself: where the macro recorder writes VBA, the Power Automate recorder builds a visual flow you can inspect, edit and share without code. Lesson 185 states the trade-off plainly: across a long sheet, row by row, a VBA macro usually runs faster, while a flow lays its logic out where colleagues can read and audit it. For checking a respondent file, the macro is the quick tool; for a routine that moves between Excel, the desktop and the browser, a flow fits. The Power Automate lessons need Windows, as the course's requirements say.

Our respondent files run to thousands of rows: will a checking macro be quick, and what happens if it hits an error halfway?

It is built to be both quick and safe in The Complete Excel Course with AI Integration. RunFullValidation in Lesson 152 switches screen updating off while it works, so Excel stops redrawing the sheet at every change and the run goes faster, then switches it back on at the end. It opens with an error handler, so a fault halfway through is caught: the handler turns screen updating back on and shows the error's own description, reporting what went wrong instead of crashing. The same lesson fixes a compile error caused by a misspelt call, the kind a long macro picks up. Before any of that, Lesson 151 uses Debug.Print to confirm the code reads the right cells in the right order, because a mistake caught at that stage never spreads across thousands of respondent rows.

Our exports put questions in different columns from wave to wave: how much of the macro has to change?

The column letters and little else, and The Complete Excel Course with AI Integration shows you where they live. The FormatWizard checks name their columns by letter, the region in B, the salesperson in C, the per-unit figure in F and the flags in H, so moving a check to another question means changing a letter, exactly the edit Lesson 149 makes when it copies the highlight line from one check to the next. The sheet is picked by name in a single line, Set ws pointing at the Data worksheet (Lesson 143), and the length of the file is found by GetLastUsedRow (Lesson 145), so nothing else depends on the layout. A new wave's layout costs a few quick edits, and Debug.Print confirms the code is reading the right column before the flags are written.

Our export lands the day fieldwork closes: which lessons do I need before a checking macro runs on it?

The Complete Excel Course with AI Integration puts the essentials in a short run, and the rest of the section refines them. Take the recorder and the editor first (Lesson 137 to Lesson 142), so code stops looking foreign, then variables and the last-row function (Lesson 144 and Lesson 145), the loops that flag blanks (Lesson 147 and Lesson 148) and the IsNumeric check (Lesson 150). Lesson 152 joins them into the macro you run on the export. The whole path is 1 hour 16 minutes, and every step can be compared with the finished FormatWizard workbook in the practice files. The lessons are shown on Windows, with Windows shortcuts such as Alt+F11; on a Mac the screens look slightly different, and a quick search finds each step.

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.