MENU
Donate
=RESOURCE

Learn to Automate Everything with Power Query in Excel (Download Files): Excel learning resource

video

Learn to Automate Everything with Power Query in Excel (Download Files)

A real-world-problems tour of Power Query rather than a single-feature deep dive.

video / Intermediate

Learn to Automate Everything with Power Query in Excel (Download Files)

Leila Gharani

Open on YouTube (opens in a new tab)
Leila Gharani

Loading preview…

What this video actually covers

A real-world-problems tour of Power Query rather than a single-feature deep dive. Gharani starts on a genuinely messy source range — blank rows, a duplicated header row partway down the sheet — and cleans it step by step inside the Power Query Editor, calling out the Applied Steps panel as the thing that makes every transformation undoable and re-runnable. From there she covers the Column Quality indicator, a quick way to spot errors or blanks in a column before building anything on top of it, plus fixing text case and replacing values, and doing basic calculations inside the query instead of the worksheet. The second half moves from cleaning one file to cleaning many: combining every CSV in a folder into one table, then unpivoting a wide cross-tab report into the long, tidy shape a PivotTable actually needs, finishing with a PivotTable built from the refreshed query.

Where to jump in

  • 0:00 Why Power Query is worth learning
  • 1:02 Cleaning a messy range with blanks and a duplicate header
  • 2:02 Where Power Query lives in Excel
  • 4:40 The Power Query Editor and Applied Steps
  • 8:24 The Column Quality tool
  • 10:14 Replacing values and changing text case
  • 14:10 Refreshing the query automatically
  • 15:52 Combining every CSV file in a folder
  • 22:06 Unpivoting a wide report into a tidy table
  • 25:25 Building a PivotTable from the cleaned query

What to practice while watching

  • Load the messy-data practice file into Power Query and remove the blank rows and duplicate header row the way the video does, using Applied Steps to see and undo each change.
  • Turn on the Column Quality indicator and fix whichever column shows errors or blank values first.
  • Replace inconsistent text values and fix inconsistent case, for example Proper Case a name column, inside the query rather than with a worksheet formula.
  • Refresh the query after manually adding a new row to the source data and confirm the cleaned output updates automatically.

Exercise file

Practice the steps above on a real workbook instead of a blank sheet — no sign-up required.

Download Messy data cleanup practice (.xlsx)

Recommended learning path

Start by watching the lesson once without pausing, then reopen Excel and rebuild the example with your own small dataset. Save one clean practice workbook before moving to the next topic.

Source details

  • Channel: Leila Gharani
  • Format: video
  • Level: Intermediate
  • Topic: Power Query
=PRACTICE

Go deeper with this skill

Create a repeatable cleanup and refresh process instead of doing the same manual edits every month. For this article, the goal is to practice: A real-world-problems tour of Power Query rather than a single-feature deep dive.

Practice workbook setup

Use a raw export with extra columns, inconsistent text, blanks, or repeated monthly files.

Practice workflow

  1. Import the data into Power Query and rename every meaningful step.
  2. Remove columns only after confirming they are not needed downstream.
  3. Set data types deliberately for dates, numbers, IDs, and text.
  4. Load the cleaned result to a table and refresh it after changing the source.

Quality checks

  • Applied steps are named clearly enough to review later.
  • Data types are correct before loading the result.
  • Refresh works without manual cleanup in the worksheet.

Common mistakes

  • Editing the loaded table instead of the query steps.
  • Removing columns before checking whether reports depend on them.
  • Ignoring errors caused by new values or changed source headers.

Next actions

  • Create a small refresh checklist and keep it beside the report.
  • Try combining two files or appending a new month to test repeatability.

Formula focus: even if this workflow is not formula-heavy, add one check cell that confirms the final output still matches the source data.