Power Query in Excel: The Basics Explained

Power Query imports, cleans, and reshapes data while remembering every step. The real advantage is refresh: when a new export has the same structure, Power Query can repeat the cleanup automatically.

Does this affect you?

Use this for Excel for Microsoft 365, Excel 2021, and Excel 2019 on Windows. Power Query is more limited on Mac and is not available in Excel for the web.

Import data and open Power Query Editor

Start by sending raw data into the editor instead of loading it directly.

  1. Open the Data tab.
  2. Choose a source from Get & Transform Data, such as From File, From Text/CSV, or From Web.
  3. Select the source file or enter the source details.
  4. In the preview window, click Transform Data.
  5. Power Query Editor opens with an Applied Steps list on the right.

Clean the data and load it

These basic transforms appear in many queries.

  1. Right-click unneeded columns and choose Remove.
  2. Change data types from the type icon in a column header.
  3. Use Remove Rows > Remove Duplicates for repeated records.
  4. Use Remove Rows > Remove Blank Rows for empty imported rows.
  5. Click Close & Load when the data is clean.

Excel loads the cleaned result as a table. Later, right-click that table and choose Refresh to rerun the same query steps.

More control

Use refresh as the payoff

Point the query at a new file with the same layout and use Data > Refresh All. Power Query repeats the recorded cleanup steps.

Append or merge queries

Append stacks similar tables, such as monthly CSV exports. Merge joins related tables, similar to a lookup across full datasets.

Use formulas after cleanup

Power Query is strongest for import and reshaping. Use Excel formulas and pivot tables after the data is clean.

Edit an existing query

Open Data > Queries & Connections, right-click the query, and choose Edit to return to the Applied Steps history.

Sources

  • Microsoft Support – About Power Query (2025)
  • Microsoft Support – Get and Transform in Excel (2025)
  • Microsoft Support – Create, load, or edit a query in Excel (2025)
Disclosure: This post may contain affiliate links which means I may receive a commission for purchases made through links. I will only recommend products that I have personally used! Learn more on my Private Policy page.
A thoughtful woman reads a newspaper while enjoying coffee at an indoor workspace.

DEALWEEK

SUBSCRIBE AND GET 20% OFF YOUR NEXT ORDER! OFFER ENDS SOON - DON’T MISS OUT!

We don’t spam! Read our privacy policy for more info.

Shopping Cart