MENU
Donate

Free ebook

Free ebook: Conditional Formatting Mastery

Everything you need to know about Excel's conditional formatting: highlight rules, top/bottom rules, data bars, color scales, icon sets, formula-based rules, managing and debugging rules, and real-world use cases. Hands-on examples throughout.

Get the ebook

Course path

Turn this into a course path

Power Query strings lessons like this one into a structured, intermediate-friendly path.

View course path

Free tools

There's a free tool for this

Formula builder, formula explainer, CSV cleaner, and 8 more browser tools — no upload, no sign-up.

Browse free tools

Templates & data

Want to practice this yourself?

Free .xlsx templates and practice datasets — direct download, no sign-up.

Browse templates & datasets

Tip

Looking for something specific?

Search finds functions, articles, courses, and directory entries from one box — the icon lives in the header.

Try search
=ARTICLES

Getting started with Power Query: import and clean data automatically

=YOUTUBE

Watch alongside this article

Public YouTube resources matched to this article's topic, functions, and practice goal.

Power Query is Excel’s built-in tool for pulling in data and reshaping it — from a file, a database, or the web — through a sequence of steps that stay attached to the result. Change the source data, click refresh, and every step reruns automatically.

Step 1: Get data

Go to Data → Get Data, then pick a source: From File (CSV, another workbook), From Table/Range (a table already in this workbook), or From Web. For a first attempt, From Table/Range on any data in your current sheet is the easiest way in.

Step 2: The Power Query Editor

This opens a separate window with your data in a grid and an Applied Steps list on the right. This list is the whole point of Power Query: every transformation you make — a filter, a rename, a split — gets recorded as a named step, in order, and can be edited or removed later without starting over.

Step 3: Common transforms

A few operations cover most cleanup work:

  • Remove Duplicates — right-click a column header, or select the whole table and use the Home tab
  • Remove Blank Rows — Home → Remove Rows → Remove Blank Rows
  • Split Column — Home → Split Column → By Delimiter, useful for pulling apart something like "Smith, John" into two columns
  • Change Type — click the icon in a column header to fix a column that imported as text but should be a number or date
  • Filter Rows — the dropdown arrow on any column header, same as a worksheet AutoFilter

Each of these becomes its own line in Applied Steps.

Step 4: Close & Load

When the data looks right, Home → Close & Load sends it to a new worksheet as a table (or to the Data Model, if you’re feeding a PivotTable across multiple sources).

The actual benefit: refresh

The reason to use Power Query over manual cleanup is what happens next time. Paste in a new export of the same report, right-click the table, choose Refresh, and every step — the filter, the split, the dedupe — reruns on the new data automatically. A manual cleanup has to be redone from scratch every time; a Power Query cleanup doesn’t.

When you don’t need it

For a one-off CSV that you’ll never touch again, opening Power Query is often more setup than the job needs. The CSV cleaner tool on this site does trim/dedupe/blank-row-removal instantly in your browser for exactly that case — reach for Power Query once you’re repeating the same cleanup on a recurring basis.

=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: How to pull data into Excel with Power Query, apply repeatable cleaning steps, and load the result — without touching a single formula.

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.