A small shop exports one CSV file per month into a folder called Sales. Each file has the same five columns: OrderID, Date, Store, SKU, Qty. A second, small table called Products lists each SKU with its Name and Price. The goal is a report of sales by store and month that updates when a new month's file is added.
Plan a workbook that refreshes itself
Think of a juice machine. You put fresh fruit in the top, the machine washes, peels and squeezes it, and juice comes out the bottom. You do not peel each orange by hand every morning. An automated workbook works the same way: new data goes in, the steps run, and the report comes out.
- Power Query is Excel's tool for getting and shaping data. On Windows it sits in the Get & Transform Data group on the Data tab. Click Get Data to see the sources.
- Microsoft describes four phases: Connect (link to files, databases, the web or tables in the workbook), Transform (remove columns, change data types, filter rows, without changing the original source), Combine (merge or append queries) and Load (put the result on a sheet or in the Data Model).
- Power Query records each change as a step. When you refresh, it runs every recorded step again on the new data. That is the whole secret of automation.
- The steps are written in a language called M in the background. You do not need to write M for this course.
- Choose the right tool for each job:
| Job | Best tool | Why |
|---|---|---|
| Import, clean and combine data every month | Power Query | Steps re-run on refresh |
| Summarise and filter results | PivotTables, slicers, timelines | Click to explore, no new formulas |
| Repeat clicks such as formatting a report or printing | Recorded macro (VBA) | Replays your actions |
| Automate in Excel for the web | Office Scripts | Runs in the browser (Lesson 7) |
- Plan in layers, as you did in 7.1.2: Source (files you never edit) → Queries (Power Query steps) → Tables (query output) → Report (PivotTables, slicers, checks) → Read me.
- Keep all source files for one report in one dedicated folder, with nothing else in it. Lesson 3 explains why.
- Make a folder on your computer called Sales. This folder will hold only the monthly export files.
- Open a new workbook and save it next to the folder as Sales Report.xlsx.
- Open the Data tab and find the Get & Transform Data group and the Get Data button. Do not import anything yet.
- On paper, draw five boxes: Source, Queries, Tables, Report, Read me. Under each box write what it will hold.
- Next to each job in your report (import, clean, summarise, format), write which tool from the table above will do it.
- Check: you can say in one sentence what goes in, what the steps do and what comes out.
Videos by other creators on YouTube, for reference. They are not made by or affiliated with The Future Market.
Read the video script
[Host] "If you clean the same report by hand every month, this course is for you."
[Text on screen: Connect. Transform. Combine. Load.] "Power Query works in four phases. Connect to the data, transform it, combine it with other data, and load it into Excel."
[Screen: Data tab, Get & Transform Data group, Get Data button] "It lives on the Data tab. Every change you make is recorded as a step."
[Screen: new month's file dropped into a folder, Refresh All clicked] "Next month, drop the new file in the folder and press Refresh. All the steps run again by themselves."
List three tasks you repeat every week or month in Excel. For each one, write the tool you would use from the table (Power Query, PivotTable and slicer, recorded macro, or Office Scripts) and one sentence on why.
ClaudeStuck? Copy a ready-made prompt for Claude
Copy this, open Claude, paste it, and Claude will walk you through the lesson step by step.
For a grown-up: Claude is for adults (18+). Copy this, paste it into Claude, and use the answer to explain the lesson to your child.
I'm learning "Excel Automation: Power Query, dashboards and macros" on The Future Market. Lesson 1: "Plan a workbook that refreshes itself". What the lesson teaches: - Power Query is Excel's tool for getting and shaping data. On Windows it sits in the Get & Transform Data group on the Data tab. Click Get Data to see the sources. - Microsoft describes four phases: Connect (link to files, databases, the web or tables in the workbook), Transform (remove columns, change data types, filter rows, without changing the original source), Combine (merge or append queries) and Load (put the result on a sheet or in the Data Model). - Power Query records each change as a step. When you refresh, it runs every recorded step again on the new data. That is the whole secret of automation. - The steps are written in a language called M in the background. You do not need to write M for this course. - Choose the right tool for each job: - Job - Best tool - Why - Import, clean and combine data every month - Power Query - Steps re-run on refresh The exercise I'm working on: List three tasks you repeat every week or month in Excel. For each one, write the tool you would use from the table (Power Query, PivotTable and slicer, recorded macro, or Office Scripts) and one sentence on why. I'm stuck. Please: 1. Explain the main idea in plain, simple words with one everyday example. 2. Walk me through the exercise one small step at a time. Ask me what I've done so far before giving the next step. 3. Don't just give me the final answer. Help me do it myself, and check my work when I share it.
I'm a parent helping my child (about 8 years old) with a lesson called "Plan a workbook that refreshes itself" from the course "Excel Automation: Power Query, dashboards and macros". Here's what the lesson says: Think of a juice machine. You put fresh fruit in the top, the machine washes, peels and squeezes it, and juice comes out the bottom. You do not peel each orange by hand every morning. An automated workbook works the same way: new data goes in, the steps run, and the report comes out. The activity: List three tasks you repeat every week or month in Excel. For each one, write the tool you would use from the table (Power Query, PivotTable and slicer, recorded macro, or Office Scripts) and one sentence on why. Please explain this so an 8-year-old understands: short sentences, a fun everyday example, and no hard words. Then give me 3 simple questions I can ask my child to check they understood, and a way to do the activity together, one tiny step at a time.
Sources
- Microsoft Support, About Power Query in Excel: support.microsoft.com/en-us/office/about-power-query-in-excel-7104fbee
- Microsoft Support, Import data from a folder with multiple files: support.microsoft.com/en-us/office/import-data-from-a-folder-with-mult
Import and clean a CSV with Power Query
This lesson is part of full access: every course and every level for one payment.
Combine monthly files and refresh
This lesson is part of full access: every course and every level for one payment.
Merge queries: lookups that refresh
This lesson is part of full access: every course and every level for one payment.
Interactive dashboards with slicers and timelines
This lesson is part of full access: every course and every level for one payment.
Record your first macros
This lesson is part of full access: every course and every level for one payment.
Macro safety and Office Scripts
This lesson is part of full access: every course and every level for one payment.
Document the workbook so others can reuse it
This lesson is part of full access: every course and every level for one payment.
Final project
This lesson is part of full access: every course and every level for one payment.
Quiz
What are Power Query's four phases?
Connect, Transform, Combine and Load.
What happens to your recorded steps when you refresh a query?
Power Query runs every step again on the new data.
How is Power Query's Trim different from Excel's TRIM function?
Power Query's Trim removes spaces only at the start and end; Excel's TRIM also removes extra spaces between words.
Why should you fix capital letters before removing duplicates in Power Query?
Because Power Query is case-sensitive, so "North" and "north" count as different.
What must be true about files you combine from a folder?
They sit in a dedicated folder with no extra files and have the same column names, types and number of columns (order can differ).
What appears when you append two tables and one has a column the other lacks?
Null (empty) values in that column for the rows that did not have it.
Which join kind keeps every order and adds matching prices?
Left outer.
Which join kind shows orders whose product code is missing from the Products table?
Left anti.
How do you make one slicer or timeline control two PivotTables?
Use Report Connections and tick both; they must share the same data source.
In which file type must you save a workbook that contains macros?
Excel Macro-Enabled Workbook (.xlsm).
What does Use Relative References change when you record a macro?
It records moves relative to the active cell instead of fixed cell addresses.
Why does every automated report need check cells such as "latest date"?
A failed Power Query refresh can keep old data without an error, and checks catch that.
Final exam
This lesson is part of full access: every course and every level for one payment.
Certificate
This lesson is part of full access: every course and every level for one payment.