Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

How to Use Power Query in Excel: Get Data, Applied Steps, Append and Merge

Power Query is Excel's data-preparation tool: you go to the Data ribbon, select Get Data, pick your source, clean it up in the Power Query editor, and every cleanup step is saved as a query you can refresh next time instead of redoing by hand. It never changes your source data; it only changes the copy it loads into Excel.

Microsoft calls Power Query a data transformation and data preparation engine. It has a graphical interface for getting data from sources and an editor for applying transformations. If you export the same report every week and spend half an hour deleting columns and fixing dates before you can use it, this is the tool that gets that half hour back.

What Power Query is for

Microsoft lists the problems it was built to solve, and they'll sound familiar to anyone who's wrestled with exported data:

  • Finding and connecting to data is too difficult.
  • Connecting to different sources works in different, fragmented ways.
  • Data needs reshaping before you can use it.
  • Any shaping you do is one-off and not repeatable.
  • The volume, velocity and variety of data keep growing.

The fourth one's the big one for most small businesses. A formula gives you a result; Power Query gives you a repeatable recipe for getting the data ready in the first place.

On scale, Microsoft says Power Query connects to hundreds of data sources and offers over 350 types of data transformations for each one. You can also define your transformations against a subset of the data, then refresh the query to run them on the lot.

Step 1: get your data in

In Excel for Windows or Mac, go to the Data ribbon and select Get Data. Scroll through the categories in the menu, choose the connector you want, then fill in the access information it asks for. In Excel for Windows you can also go straight to Text/CSV, Web or Excel worksheet data without opening the Get Data menu.

Here's the catch to check before you plan a workflow. Not every version of Excel supports the same Power Query connectors. Microsoft keeps a separate list of the connectors supported by each version of Excel for Windows and Excel for Mac, so if your process depends on one particular source, check that your version has it before you build around it.

Step 2: clean the data in the editor

You don't need to write code. Microsoft says the editor lets you apply transformations by clicking ribbons, menus and buttons. Each time you create a step, Power Query automatically writes the code for it in M, its own formula language. If you ever want to see or edit that script, it's in the Advanced Editor, but plenty of people use Power Query for years without opening it.

Step 3: read the Applied steps list

This is what makes Power Query different from cleaning data by hand. It records every transformation as a query step and applies the steps when the query runs. Your source isn't touched.

Every step appears in the Applied steps list in the Query Settings pane. Select any step and you see the data as it looked at that point, which makes it easy to spot where something went wrong. If the pane's closed in Excel, go to the View tab and select Query Settings, and it opens on the right.

Step 4: combine tables with Append or Merge

Both live on the Home tab in the Combine group, and they do very different jobs.

TaskWhere in Power QueryWhat happens
Get dataData ribbon > Get DataChoose a connector, enter access details
Clean dataPower Query editor ribbons and menusEach action becomes an Applied step
Stack tablesHome > Combine > Append queriesRows from several tables become one table
Join tablesHome > Combine > Merge queriesTables joined on matching columns
Update laterRefresh the querySteps re-run on fresh data

Append stacks tables on top of each other. It creates a single table by adding the contents of one or more tables to another, combining the column headers into one set. If one table has a column the other doesn't, the rows from the second table show null in that column. Choosing Append queries changes the current query and leaves the other one unchanged. It's the tool for twelve monthly exports that need to become one year.

Merge joins tables side by side on matching values in one or more columns, using a join kind you choose. There are two options: Merge queries, where the current query becomes the left table, and Merge queries as new. Left and right order matters when you pick the join kind. If you've been using VLOOKUP to pull columns from one table into another, Merge is the Power Query way to do the same job once and refresh it.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Step 5: load it and refresh it

Power Query transforms data, but it doesn't store it in a destination of its own. The product hosting it decides where the results load, and in Excel that's back into your workbook. From then on, when the source changes, you refresh the query and every step runs again on the new data.

  1. Open Excel and go to the Data ribbon.
  2. Select Get Data and choose a connector, such as a file, the web or a database.
  3. Pick your table and open it in the Power Query editor.
  4. Apply your cleanups from the ribbons and watch each one appear under Applied steps.
  5. Load the result to Excel, and refresh the query whenever the source changes.

Once the data's clean, the usual next move is to summarise it, and a pivot table built on a Power Query table updates every time you refresh.

Power Query Online and Desktop

Microsoft describes two experiences. Power Query Desktop is the one inside Excel and Power BI Desktop. Power Query Online runs in the browser, in Excel Online, Power BI dataflows, Power Platform dataflows and Dataflow Gen2 in Microsoft Fabric. They share the core editor, but connectors, sign-in methods and where the data lands can differ depending on which product you're in. If a workflow works on your laptop, don't assume it'll behave identically online.

Here's the related guide: this walkthrough of how to use the SUBTOTAL function in Excel.

My verdict

If you repeat the same cleanup every week, Power Query is the thing to learn next, before any new formula. I think of it this way: formulas are for the result, Power Query is for the prep. Build the steps once, check them in the Applied steps list, and let a refresh do the boring part from then on.

Related reading: this walkthrough of how to calculate days between dates in Excel.

Frequently asked questions

Where is Power Query in Excel?

On the Data ribbon. Select Get Data, choose a connector and the Power Query editor opens when you transform the data.

Does Power Query change my original data?

No. Microsoft says it records transformations as steps and applies them when the query runs; it doesn't modify the source.

Do I need to know code to use Power Query?

No. You click ribbons and menus, and Power Query writes the M code for each step automatically.

What's the difference between Append and Merge?

Append stacks tables into one longer table. Merge joins two tables side by side on matching column values.

Why can't I find a connector in my Excel?

Not every Excel version supports the same connectors. Microsoft keeps a list by version for Windows and Mac.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.