The Complete Excel Course with AI Integration
Power Query for market research analysts
Every wave brings the same export to fix: coded headers, labels in mixed case, scale answers as words, one file per market and grid questions spread across dozens of columns. The Complete Excel Course with AI Integration moves that work into Power Query through SalesFusion, an industry-standard project, and the lessons chosen here follow the order a wave is prepared in: import and clean, types and recodes, merges and appends, 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 a survey platform's CSV export into Power Query and leave the original untouched, with every clean-up step recorded in Applied Steps.
- Trim, clean and set one case for region, segment and brand labels, knowing that Power Query reads North and NORTH as two different values.
- Turn scale labels and text-held figures into true numbers with Replace Values and the right data types, and add year and month columns from interview dates.
- Recode inside the query with conditional and custom columns, NPS groups or age bands for instance, so every wave gets identical definitions.
- Stack wave files or one CSV per market from a folder, each row tagged with the file it came from, and take in the next file at a refresh.
- Merge survey results with lookup tables or a client's figures by region, using a left outer join that keeps every respondent.
- Unpivot a grid question with one column per brand or statement into a long table of respondent, statement and rating, ready for PivotTables.
- Keep a tracker workbook light by loading only the finished table and holding staging queries as connections.
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 sales CSVs, its Power Query half mirrors a research team's data preparation: exports with labels where numbers belong, lookup files to merge, two periods to stack, a folder of period files and a wide grid to unpivot, each cleaned once and replayed on every new file.
-
Project 05
SalesPlusPerformance
A sales question answered in seconds, straight from the order data.
Built on order-level sales data, it shows what happens downstream of a query: PivotTables that read a clean table, dates that group themselves, and the Refresh All (Lesson 65) that a new wave needs before any table changes.
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 you work in Excel tables and have built a PivotTable: SalesFusion opens with its folder of messy CSV files and builds the pipeline in the order a wave's data is prepared. Tables and PivotTables still new? Work through Lesson 19 on tables and the PivotTable lessons from Lesson 57 before SalesFusion, or start from Lesson 1 with no Excel behind you. Already importing and cleaning in Power Query? Move to Lesson 160 for recodes, then Lesson 166 for folders and Lesson 173 for grids.
17 of 186 lessons · 1 h 36 min
15 SalesFusion: advanced data tools and a Power Query modelling system The ETL idea and the first clean-up: a raw export kept untouched while Power Query records every step, a CSV brought in through Get Data and opened in the editor, columns removed and renamed into short headers without spaces, then text trimmed, cleaned, set to one case and stripped of placeholders such as NA. The files are sales exports; a survey platform's CSV takes the same steps.
- 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
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system From text to numbers and rules: true data types, words standing in for numbers replaced so a column can be summed, year and month fields from a date, custom and conditional columns that recode and flag, a Group By query counting rows and totals for every month and region, and Close and Load choices that keep staging queries as connections.
- 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
- 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 Joining and stacking: a merge that brings names in beside codes with a left outer join so no row is lost, a finished pipeline duplicated and pointed at the next file, and two cleaned periods appended into one table, the method behind every wave-on-wave file.
- 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
15 SalesFusion: advanced data tools and a Power Query modelling system A folder of files as one source: every file combined and cleaned by the same steps, a Source.Name column naming the file each row came from, calculated and period columns added, and one fact table merged with its lookups, appended to history and checked for blanks.
- 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 exports: a column per month becomes rows through Unpivot Other Columns, which names no column and so survives new ones, then Pivot Column and Group By shape the result. A grid question with one column per brand or statement reshapes in just the same way.
- 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.
Survey preparation repeats itself every wave: which of those steps can a market research analyst hand over to Power Query for good?
Nearly all of the routine ones, and The Complete Excel Course with AI Integration from Coding Liquids teaches it on SalesFusion, an industry-standard project designed after talking with people from many different industries. Importing the export, renaming coded headers, trimming and case-fixing labels, and turning text into numbers and dates (Lesson 155 to Lesson 159); recoding with conditional columns (Lesson 160); stacking waves or one file per market (Lesson 165 and Lesson 166); merging labels from lookup tables (Lesson 163); and unpivoting wide grids (Lesson 173): each is set up once and replayed on the next file at a refresh. The 17 lessons on this page, 1 hour 36 minutes of the course, follow that order from raw export to analysis-ready table, with the dataset and the finished workbook to check against. What stays with you is the judgement: which respondents to drop and what the numbers mean.
Our grid questions export one column per brand or statement: can Power Query turn them into a long table for cross-tabs?
Yes: Unpivot Other Columns does it in one step, and The Complete Excel Course with AI Integration teaches it in Lesson 173. The lesson's file is a wide export with a column for each month; selecting the columns that describe each row and unpivoting everything else turns every month column into rows of an attribute and a value. On a brand-image grid, keep the respondent ID and the segment columns, unpivot the rest, and each respondent becomes one row per statement with its rating, the long shape a PivotTable cross-tabs in a single layout. Because the step names no column, a statement added to the next wave's grid joins without any edit to the query. The lesson also renames the new columns, clears n/a entries, and uses Pivot Column to turn long rows back into wide columns when a client's format asks for that.
A multi-country study sends one CSV per market: can Power Query stack them and keep track of which market each row came from?
Yes, and every row keeps the name of the file it arrived in. The Complete Excel Course with AI Integration teaches the folder query in Lesson 166: point Power Query at the folder holding the market files and it stacks them into one table, adding Source.Name so one market's respondents stay distinct from another's once they share a table. The clean-up you design on a single sample file, header renames, trims, case and types, then runs on every market's file, and a market added in a later wave is taken in at the next refresh. For a multi-country tracker that tag doubles as a check: a Group By on it (Lesson 161) counts each market's completes before any table is built. Lesson 168 then joins the stack to its lookups and filters for blanks. The one condition is a shared layout, which one questionnaire scripted for every market normally gives, apart from translated answer labels that a Replace Values step can map.
Our region labels arrive as North, NORTH and north: does that matter in Power Query?
Yes, and The Complete Excel Course with AI Integration makes the point itself: Power Query is case-sensitive, so North and NORTH become two regions in a grouping or a merge, which is exactly what Lesson 157 sets out to prevent. The lesson trims stray spaces, cleans out hidden characters and sets codes to one case from the Format menu, then swaps stray text for the right value with Replace Values. Do the same to region, segment and brand labels and each wave's variants collapse into one spelling before anything is counted. Outside Power Query, PivotTables and COUNTIFS treat North and NORTH as one value, so the difference bites only once a query groups or merges, which is why the fix belongs at the very start of the pipeline. Consistent case also makes the final tables read cleanly in front of a client.
Our platform exports scale answers as labels such as Very likely, not numbers: can the query convert them every wave?
Yes: Replace Values swaps each label for its code, and a data type then makes the column a true number, both taught in The Complete Excel Course with AI Integration. Lesson 158 meets the same fault in the SalesFusion files, quantities written as words, spots each one in the column's filter list, replaces it and sets the column to Whole Number, because Power Query cannot sum or average text. Map Very likely to 5 and so on down the scale, set the type, and the mean score your tables need becomes possible; done in the query, the mapping runs again on every wave's export. Lesson 157 supplies the clean-up before it, trimming the labels so a trailing space never escapes the mapping. A report built on text looks fine and calculates wrong, and together these lessons put an end to that.
Can the query add NPS groups and age bands so every wave is recoded with the same definitions?
Yes, with conditional and custom columns, which The Complete Excel Course with AI Integration teaches in Lesson 160. The lesson adds a Conditional Column that labels each sale High or Normal against a threshold, a Custom Column for profit, and a Margin column that tests for zero before dividing, all inside the query. A recode is the same tool: a conditional column that returns Promoter, Passive or Detractor from the likelihood score, or an age band from the age column. Built in the query, the definitions cannot drift from wave to wave or from analyst to analyst, because every refresh applies the same rules to every row. The lesson's point suits a tracker perfectly: logic held in Power Query runs identically on every refresh, so no two reports built from it disagree.
Can Power Query join our survey results to the client's sales figures by region?
Yes: summarise the survey by region, then merge the two tables on the region code, both steps taught in The Complete Excel Course with AI Integration. Group By in Lesson 161 totals and counts a query by month and region, which is how a respondent file becomes one row per region with its base and the totals behind its scores; a merge in Lesson 163 then brings another table's columns in beside each row, using a left outer join that keeps every row of the first table. The lessons merge product and region lookups onto sales; put the client's sales by region in the lookup's place and awareness sits next to sales, region by region. Shared keys matter: a region coded NTH in one file and North in the other will never match, so the code clean-up of Lesson 157 comes first.
A tracker workbook holding every wave's query has become slow: does the course show how to keep it light?
Yes, with habits The Complete Excel Course with AI Integration teaches early in SalesFusion. Lesson 156 removes unneeded columns first, because every later step then has less data to process, and Lesson 162 sets the golden rule of loading: only the finished table goes to a sheet, while staging and checking queries stay as connections, held ready for a PivotTable or the data model without filling the grid. A tracker with a staging query per wave, a QA query and a combined table then loads one sheet instead of a dozen. Lesson 168 adds another: drop helper columns such as the source file's name once they have done their job, since unneeded columns bite back as a model grows. Queries and Connections then shows each query's rows and its last refresh at a hover.
Should a recode such as the NPS group live in Power Query or in a DAX measure?
In Power Query, while the score built from it belongs in a measure, and The Complete Excel Course with AI Integration teaches both sides. A respondent's group is a fact about one row, so a conditional column in the query (Lesson 160) fixes it for good. A share of respondents changes with every filter, so it suits a DAX measure, recalculated for each slicer choice; Lesson 170 builds measures with DIVIDE, CALCULATE and ALL for a percent of total, and DISTINCTCOUNT so each order counts once however many rows it has, just as each respondent should after a grid is unpivoted. In the course's words, Power Query makes data usable and the data model makes it useful. The Power Pivot lessons from Lesson 169 need Excel for Windows; the Power Query lessons on this page do not need Power Pivot at all.
Researchers work in survey platforms, SPSS and BI tools: where does Power Query sit among them?
Between the platform and the report, and The Complete Excel Course with AI Integration teaches it as exactly that bridge. A survey platform's export arrives as a CSV; Power Query imports it (Lesson 155), cleans and reshapes it on saved steps and loads a finished table, and Lesson 154 names the places it can go: Excel, or Power BI for reports and dashboards. The same editor and the same idea of extract, transform and load sit behind Power BI's data preparation, so the skill travels with you, though Power BI itself and statistics packages such as SPSS are not taught. Inside Excel, the clean table then feeds PivotTables, formulas and charts, and the course's AI lessons let Copilot, ChatGPT and Claude work on a file that is finally tidy enough to trust.
A client asks exactly which records were removed and why: can Power Query show it?
Yes: every change is listed in order, and The Complete Excel Course with AI Integration builds the habit of naming each one. Applied Steps records the clean-up step by step (Lesson 156), a step can be renamed so the list reads like a log, and clicking any step shows the table as it stood at that moment, before and after a filter or a Remove Duplicates. Lesson 160 removes duplicates on an ID and checks the ID columns for nulls; Lesson 161 builds a separate QA query that counts rows by month and region, so the base before and after cleaning can be set side by side for the client. The export itself is never edited, so the original stays on hand to settle any question. Deleting rows by hand on the sheet leaves nothing to show.
With AI tools tidying files on request, is it still worth building each wave's preparation in Power Query?
Yes, because a tracker's trend is only as sound as the sameness of its waves, and The Complete Excel Course with AI Integration teaches both tools so each gets its proper job. Copilot cleans a messy file with prompts and Excel functions in Lesson 97, and its answers vary with context, as Lesson 92 notes, so each run needs the checklist of Lesson 99 again. A Power Query step does the identical thing to the first wave and the twelfth, visible in Applied Steps and replayed at every refresh, so a movement in the trend reflects respondents rather than a change in cleaning. Use AI to plan an analysis or tidy a one-off file, and Power Query for anything that comes back every wave. Neither replaces the researcher's judgement, and the course builds that judgement alongside both.
What will I have built by the end, and can I show it to an agency I want to join?
A complete data pipeline, and yes: The Complete Excel Course with AI Integration gives you the dataset, the finished SalesFusion workbook to compare against and a Certificate of Completion when you finish the course. By Lesson 173 you will have imported and cleaned a set of messy CSV exports, recoded them with conditional columns, checked them with a Group By query, merged them with lookup tables, appended two periods, combined a whole folder into one fact table and unpivoted a wide export, every step visible in Applied Steps for anyone who opens the file. That is the preparation behind the trackers agencies run, rebuilt on your own machine. The certificate's verification link lets an employer confirm it, and the workbook lets you walk an interviewer through each query, step by 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.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
More skills for this job
- Formulas for market research analysts
- Lookups for market research analysts
- PivotTables for market research analysts
- Charts for market research analysts
- Dashboards for market research analysts
- Conditional formats for market research
- Data cleaning for market research
- Data validation for market research
- Excel tables for market research
- Text functions for market research
- Date functions for market research
- Dynamic arrays for market research
- Power Pivot and DAX for market research
- Macros and VBA for market research
- Power Automate for market research
- Copilot in Excel for market research
- ChatGPT for Excel for market research
- Claude in Excel for market research