How to Use Power Query in Excel: Step-by-Step Tutorial (2024 Guide)

Published: December 5, 2024 - 3 min read

Jordan Mappang

Power Query helps Excel users clean, combine, and update data automatically. Whether you work with sales reports, financial data, or customer lists, Power Query reduces manual work and prevents errors. This guide shows you exactly how to use Power Query, from basic setup to advanced techniques.

Getting Started with Power Query in Excel

Power Query comes built into recent Excel versions. Here’s how to access and set up your workspace:

  1. Open Excel and select the “Data” tab

  1. Look for “Get Data” or “Get & Transform Data” in the ribbon

  1. Click to open Power Query Editor

The Power Query Editor has three main sections:

  • Query pane (left): Shows your data sources
  • Preview pane (center): Displays sample data and changes
  • Steps pane (right): Lists all transformations applied

Importing and Transforming Your First Dataset

Let’s start with a basic example using sample sales data.

To import your first dataset:

  1. Click “Get Data” > “From File” > “Excel Workbook

  1. Select your source file
  2. Choose the table or range to import
  3. Click “Transform Data” to open the editor

Pro tip: Start with a small sample of your data while learning. This makes testing faster and easier.

Sample Data Structure

Order ID

Date

Product

Quantity

Price

A101

1/1/2024

Widgets

5

$10.00

A102

1/1/2024

Gadgets

3

$15.00

Essential Power Query Transformations

Clean Column Names and Data Types

Follow these steps to standardize your column headers:

  1. Right-click any column header
  2. Select “Transform column

  1. Choose from options like:
    • Remove spaces
    • Make uppercase/lowercase
    • Remove special characters

To set correct data types:

  1. Click the icon next to the column name
  2. Select the appropriate type (Text, Number, Date, etc.)
  3. Apply to all affected rows

Filter and Sort Data

Create custom filters:

  1. Click the filter icon on any column
  2. Choose filter conditions
  3. Apply multiple filters across columns

Example filter settings:

Filter Type

Column

Condition

Number

Quantity

Greater than 10

Date

Order Date

Last 30 days

Coefficient Excel Google Sheets Connectors
Try the Free Spreadsheet Extension Over 500,000 Pros Are Raving About

Stop exporting data manually. Sync data from your business systems into Google Sheets or Excel with Coefficient and set it on a refresh schedule.

Get Started

Text

Product

Contains “Widget”

Combine Multiple Data Sources

Merge Tables in Power Query

To combine two related tables:

  1. Select “Combine > Merge Queries” from the Home tab

  1. Pick your tables and matching columns

  1. Choose a join type:

    • Left outer
    • Right outer
    • Full outer
    • Inner

For tables with the same structure:

  1. Select “Combine > Append Queries” from the Home tab

  1. Choose tables to combine

  1. Review column alignment
  2. Fix any mismatched columns

Create Custom Columns

Add calculations with these steps:

  1. Select “Custom Column” from “Add Column” tab

  1. Enter your formula

  1. Name the new column

  1. Click OK

Example formulas:

Purpose

Formula

Total Price

[Quantity] * [Price]

Full Name

[First Name] & ” ” & [Last Name]

Refresh and Manage Queries

Set up automatic updates:

  1. Right-click query in workbook
  2. Select “Properties

  1. Choose refresh settings
  2. Set refresh frequency

Best practices:

  • Test queries with small datasets first
  • Document your transformation steps
  • Keep queries simple and focused

Master Power Query in Excel

Now you can transform Excel data faster and more accurately with Power Query. Start with simple transformations and build up to more complex operations as you gain confidence.

Want to connect your spreadsheets directly to your business systems? Try Coefficient to sync live data from 50+ sources directly into Excel.

Sync Live Data into Your Spreadsheet

Connect Google Sheets or Excel to your business systems, import your data, and set it on a refresh schedule.

Try the Spreadsheet Automation Tool Over 500,000 Professionals are Raving About

Tired of spending endless hours manually pushing and pulling data into Google Sheets? Say goodbye to repetitive tasks and hello to efficiency with Coefficient, the leading spreadsheet automation tool trusted by over 350,000 professionals worldwide.

Sync data from your CRM, database, ads platforms, and more into Google Sheets in just a few clicks. Set it on a refresh schedule. And, use AI to write formulas and SQL, or build charts and pivots.

Jordan Mappang
500,000+ happy users
Wait, there's more!
Connect any system to Google Sheets in just seconds.
Get Started Free

Trusted By Over 50,000 Companies