In Excel: start from Data ▸ Get Data (or Data ▸ From Table/Range) to open the Power Query Editor, shape the data with the ribbon buttons, then Close & Load to drop the result on a sheet.
On this page7
Data ▸ Get Data and choose the source, or Data ▸ From Table/Range for data already on a sheet.
In the editor, shape the data with the ribbon: Remove Columns, Split Column, Filter, Change Type, Unpivot.
Watch the Applied Steps pane on the right — it is the recipe, and any step can be deleted or reordered.
Set every column's data type explicitly before loading; it is the step most often skipped.
Close & Load, or Close & Load To… if you want a connection only, or a load straight into the Data Model.
Afterwards, Data ▸ Refresh All replays every step against the current source.
What this does
Power Query — shown in the ribbon as Get & Transform — is the import-and-clean layer that sits in front of the worksheet. Its defining property is that it RECORDS every step rather than performing it: removing a column, splitting one, changing a type, filtering rows and unpivoting all land as an ordered list in the Applied Steps pane. Point it at next month's file and click Refresh, and the whole sequence replays. That makes it the correct answer to any cleaning job you will do more than once, and to combining a folder of identically shaped files (Get Data ▸ From File ▸ From Folder). Two operations have no practical worksheet equivalent: Unpivot Columns, which turns a wide twelve-month-columns layout into the tall three-column shape every PivotTable wants, and Merge Queries, a join that handles many-to-many where VLOOKUP cannot. The editor is built into Excel for Windows from 2016 and available in Microsoft 365 for Mac version 16.69 or later; Mac connectors can differ. Neither Excel 2016 for Mac nor Excel 2019 for Mac supports Power Query. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “can i save an excel power query to ide” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a data step that keeps your analysis trustworthy into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
Twelve monthly CSV exports in one folder, each with the same headers. Data ▸ Get Data ▸ From File ▸ From Folder ▸ pick the folder ▸ Combine & Transform. Power Query stacks all twelve, and the steps you then add — remove a blank column, set Date to date type, filter out cancelled rows — apply to every file. Next month, drop file thirteen into the folder and press Data ▸ Refresh All. Any cleaning routine you perform more than once is a query you should have built the first time — the second month costs one click instead of an afternoon. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.
In Google Sheets
Power Query does not exist in Google Sheets. Queries built in Excel do not carry over; in Sheets the nearest built-in tools are IMPORTDATA, IMPORTRANGE and QUERY, which work differently. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Treat “can i save an excel power query to ide” as a routine rather than a one-off. Once you know which setting or command controls it, the same few steps handle every workbook where it comes up in Excel, and you can explain them to a colleague in a sentence.
Common mistakes
- Editing the loaded output on the sheet — the next refresh overwrites it. All edits belong in the query.
- Skipping Change Type, so numbers arrive as text and every downstream total is wrong or zero.
- Filtering on a value list, which hard-codes today's values into the step and silently drops new ones later.
- Combining files whose headers differ slightly; the step records column names, so "Amount " with a trailing space breaks the append.
- Loading a million rows to a worksheet instead of Close & Load To ▸ Connection Only ▸ Add to Data Model.
- Building the same clean-up by hand each month when the query already exists and just needs Refresh.
Frequently asked questions
What is Power Query used for?
Importing data from files, folders, databases and the web, and cleaning it with steps that are recorded once and replayed on every refresh.
Where is Power Query in Excel?
On the Data tab as Get Data / Get & Transform in Excel for Windows from 2016. The editor is available in Microsoft 365 for Mac version 16.69 or later. Neither Excel 2016 for Mac nor Excel 2019 for Mac supports Power Query.
How do I unpivot data?
In the editor, select the columns that should stay, right-click ▸ Unpivot Other Columns. Wide month-per-column data becomes the tall layout PivotTables need.
Can Power Query combine multiple files?
Yes — Get Data ▸ From File ▸ From Folder ▸ Combine & Transform appends every identically shaped file in the folder, and picks up new files on refresh.
Is Power Query better than VLOOKUP?
For repeated joins across whole tables, yes: Merge Queries handles many-to-many and does not recalculate on every edit. For a single lookup in a live formula, XLOOKUP is simpler.