A Complete Guide to Power Query in Excel
TL;DR: Power Query in Excel is an inbuilt data transformation tool that facilitates accessing, cleansing, and reshaping data from just about any source without using any formulas.

What Is Power Query in Excel?

Power Query is the built-in ETL (extract, transform, load) engine of Excel. It automatically links to your data source, transforms and cleans that data, and saves the outcome into your workbook, repeatedly and automatically.

Data has to be fixed before you create a pivot table or perform any calculations: It might be in the wrong format, there may be duplicate rows, and it may have inconsistent values. All that is performed using a step-by-step visual interface in Power Query in Excel. Every transformation saves automatically and reruns with one click when your source updates.

Quick Workflow Diagram of Power Query in Excel

Where Is Power Query Located in Excel?

The answer depends on your version of Excel, and the differences matter.

As of now, Power Query is not included in Excel 2010 and 2013. Microsoft has officially discontinued support and removed download links. If you have it installed, you will see it in its own standalone user interface on the ribbon, away from all the other user interfaces.

Excel 2016 changed things. Microsoft dropped the name “Power Query” and integrated its capability into the Data tab under the heading “Get & Transform Data”. The Power Query tab is no longer standalone, but all the add-in's capabilities are still available. To start, click Data → Get & Transform Data → Get Data, and select your source from the drop-down.

Microsoft 365 goes further with what Microsoft calls a "unified Get and Transform" experience. The data source looks the same in the Data → Get Data, but the connector library is bigger and more frequently updated.

How the Data Tab Navigation Works in Excel 2016+

  • Open Excel and select the Data tab on the top ribbon

Select the Data Tab

  • Check the Get & Transform Data group located on the left-hand side of the Data tab

Check the Get and Trandform Data

  • Click Get Data to display the Complete Source menu

Click Get Data

  • The most common imports, from Text/CSV, from Web, or from Table/Range, are available as shortcut buttons within the same group

Shortcut Buttons

  • Clicking any of these opens a Navigator or preview dialog box where you select your table or sheet. Here’s an example of a table.

Navigator or preview dialog box

  • Click Transform Data to open the Power Query Editor, or Load to import directly without transforming

Power Query Editor

Understanding Power Query Editor in Excel

Once you connect to a data source, the Power Query Editor opens, a standalone workspace where all transformation work happens. Four areas define the interface:

  • Ribbon (top): Home, Transform, Add Column, and View tabs
  • Queries pane (left): Lists every query in your workbook
  • Data preview (center): Live preview that updates as you apply steps
  • Applied Steps pane (right): A running log of every transformation, in sequence

The Applied Steps pane is the standout feature of the Power Query Editor in Excel. Every action is recorded as a step in the M language. You can reorder, edit, or delete any step without restarting. This is what makes it far more reliable than manual cleanup for repeatable work.

Enroll in the Data Analyst Course to learn over 17+ data analysis tools and skills, and gain real-world insights through live online classes led by industry experts.

How Power Query Works

Power Query follows a simple workflow that connects to data sources, transforms information, and loads the cleaned results into Excel for analysis.

Process Flow of Power Query in Excel

Common Data Transformation Tasks in Power Query

Power Query in Excel covers a wide range of prep operations. These are the ones that Power Query for data analysts use most: 

  • Remove duplicates – select a column, click Remove Duplicates
  • Change data types – convert text to dates or numbers to currency
  • Filter rows – drop blanks, outliers, or region-specific records
  • Replace values – fix "USA" vs "U.S.A." inconsistencies at scale
  • Split columns – break "First Last" into two fields by delimiter
  • Pivot / Unpivot – reshape wide tables into long format
  • Group by – aggregate rows by category with sum or average
  • Custom columns – use M language in Power Query for calculated fields 

These work the same way regardless of your source, CSV, SQL, SharePoint, or web. That consistency is one of the core advantages of using Power Query in Excel over source-specific formula approaches.

Data Analyst CourseExplore Program
Your Data Analytics Career is Around The Corner!

How to Import Data Using Power Query

Here's how to use Power Query in Excel for the three most common source types: 

From a File (Excel or CSV)

  1. Go to Data → Get Data → From File, choose your type
  2. Navigate to the file and click Import
  3. Select your table or sheet in the Navigator
  4. Click Transform Data to open the editor, or Load to import directly

From a Database

  1. Go to Data → Get Data → From Database
  2. Select your database type, enter credentials, and pick your table

From a Web Page

  1. Go to Data → Get Data → From Other Sources → From Web
  2. Paste the URL. Power Query in Excel automatically detects tables on the page.

When done transforming, click Close & Load. Power Query in Excel saves the entire connection, so future refreshes take seconds.

How to Merge and Append Queries

Follow these steps to merge and append queries

  1. Go to Home → Merge Queries in the editor
  2. Select the second query, click the matching column in each table
  3. Choose a join type: Inner, Left Outer, Full Outer, etc.
  4. Click OK, then expand the merged column

Append Queries (stacks rows from similar datasets):

  1. Go to Home → Append Queries
  2. Select two or more queries with the same structure and click OK

Use Merge to join related datasets in Power Query for Excel using a shared key. Use Append when consolidating files with identical structures, such as 12 monthly sales reports into a single table.

With Our Unique Data Analyst CourseExplore Program
Become an Expert in Data Analytics

Power Query Example: Cleaning a Sales Dataset

Here's a real Power Query project example showing how to clean data from a raw sales CSV file that contains blank rows, invalid data types, and a combined "Region – Rep Name" column.

  • Load it: Data → Get Data → From Text/CSV
  • Split the column: Transform → Split Column → By Delimiter (use "–") → rename to Region and Rep Name
  • Fix sales column: change data type to Decimal Number
  • Remove blanks: column dropdown → uncheck (null)
  • Remove duplicates: Home → Remove Duplicates on the Order ID column
  • Click Close & Load

Every step is saved. When next month's file arrives, swap the source and hit Refresh. Power Query in Excel automatically re-runs the full sequence. This is exactly how to automate reports using Power Query and why it's more practical than VBA for routine work.

For Power Query performance optimization, filter rows and remove unneeded columns early in your applied steps. This significantly reduces processing time for large datasets.

Ready to turn data into career growth? This Data Analyst roadmap outlines the skills, tools, salary trends, and advancement opportunities to help you become a successful Data Analyst.

Key Takeaways

  • Power Query in Excel is located under the Data tab and requires no coding to start cleaning data
  • The Power Query Editor logs every step in M language, making transformations fully repeatable
  • Use Merge to join tables by key; use Append to stack rows from identically structured files

FAQs

1. Where is Power Query located in Excel?

In Office 2016 and Microsoft 365, it is located in Data → Get & Transform Data. For Excel 2010/2013, Microsoft officially discontinued support and removed download links for Power Query.

2. How do I clean data using Power Query?

Open your file in the Power Query Editor. Use Remove Duplicates, Replace Values, Change Type, Filter Rows, and Split Column. Each step is logged in Applied Steps and is fully editable. 

3. What is the Power Query Editor?

It's the dedicated workspace inside Excel Power Query, the ribbon tools. It has a live data preview and the Applied Steps pane that records every transformation you apply. 

4. How do I merge files in Power Query?

Go to Home → Merge Queries, select both queries, match the key column, and choose a join type. To stack rows instead, use Append Queries. 

5. Can Power Query replace Excel formulas?

For data preparation, largely yes. The difference between Power Query vs Excel formulas is about timing: Power Query cleans data before they are loaded into your sheet, and formulas calculate after. Power Query vs. VBA is a clear win, as almost all transformation tasks can be performed without any code. 

6. What data sources can Power Query connect to?

It can connect with more than 200 connector types for data in Excel, CSV, PDF, SQL Server, MySQL, Oracle, SharePoint, Azure, web pages, JSON, XML, and OData feeds. 

7. What is the difference between Power Query and Power Pivot?

Power Query is used to perform ETL, importing, and shaping data. Power Pivot manages modeling, relationships, and DAX calculations. Power Query vs Power BI is a different comparison: Power BI is built on Power Query and provides visualization on top of the same engine, along with cloud sharing.

About the Author

Shruti MShruti M

Shruti is an engineer and a technophile. She works on several trending technologies. Her hobbies include reading, dancing and learning new languages. Currently, she is learning the Japanese language.

View More
  • Acknowledgement
  • PMP, PMI, PMBOK, CAPM, PgMP, PfMP, ACP, PBA, RMP, SP, OPM3 and the PMI ATP seal are the registered marks of the Project Management Institute, Inc.
  • *All trademarks are the property of their respective owners and their inclusion does not imply endorsement or affiliation.
  • Career Impact Results vary based on experience and numerous factors.