How to get started with Power Query in Excel (Get & Transform)
In Excel for Microsoft 365 / Excel 2021–2024 (verified 2026-10-24), select a Table or range, open Data > From Table/Range, clean steps in the Power Query Editor, then Home > Close & Load to put the result on a sheet.
Later, right-click the output and Refresh when the source changes. Power Query records each clean step so you can re-run it.
Applies to Excel for Microsoft 365 and Excel 2021/2024 on Windows (Mac has a subset of connectors). Excel for the web has limited Power Query. You need a Table or file you are allowed to read.
Load and clean with Power Query
Start from a sheet table
- Click inside your data and press Ctrl+T if it is not already a Table.
- Go to Data > From Table/Range.
- The Power Query Editor opens with a preview.
Common clean steps
- Use Home > Remove Rows or filter arrows to drop blanks.
- Transform > Data Type to set whole number / date / text.
- Rename columns by double-clicking headers; split columns under Split Column if needed.
Close & Load and refresh
- Click Home > Close & Load (or Close & Load To… for a connection-only or Data Model load).
- A new sheet (or Table) appears with the shaped data.
- When the source updates: right-click the output Table > Refresh, or Data > Refresh All.
Our take: query once, refresh forever
Use Power Query for recurring CSV/folder imports and messy exports. For a one-off tidy-up, Flash Fill or Paste Special may be faster. Avoid editing the output Table by hand — change the query steps instead.
If it fails
- From Table/Range greyed out: select a cell inside the data first.
- Formula steps break on refresh: a column was renamed upstream — fix the step in Applied Steps.
- Mac missing a connector: some folder/web connectors are Windows-only — use CSV export as a bridge.
- Huge files slow: filter early in Applied Steps; load to Data Model when analysing large facts.
Frequently asked questions
Where is Power Query in Excel?
Mostly under the Data tab (Get Data / From Table/Range) — formerly Get & Transform.
Does Close & Load overwrite my source?
No — it writes a separate output Table or connection.
How do I edit steps later?
Data > Queries & Connections > double-click the query to reopen the editor.
Power Query vs formulas?
Queries reshape whole tables repeatably; formulas calculate cell-by-cell.
Is Power Query on Excel for the web?
Only limited support — prefer desktop for serious transforms.