Get help

Help center

Guides and answers

Contact support

Write to our team

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Finance

Turn manual finance work into reports that update themselves.

What Finance teams automate

  • Track payables and receivables
  • Build cash flow statements
  • Compare budget against actuals

Inventory and manufacturing

See stock levels and automate ordering.

What inventory and manufacturing teams automate

  • Track inventory across multiple sites
  • Connect sales, purchasing, and warehouse data
  • Link a barcode scanner to your sheet

HR

Run recruitment, attendance, and OKR tracking from your sheets.

What HR teams automate

  • Track recruitment and onboarding
  • Record team OKRs and results
  • Track check-ins, check-outs, and leave

Project management

Assign tasks and track hours without manual updates.

What project teams automate

  • Assign tasks and track status changes
  • Estimate effort and log hours worked
  • Track milestones across projects

Sales and CRM

Track leads and sales performance with automated reports.

What sales teams automate

  • Track and convert leads
  • Set sales goals and track team metrics
  • Monitor sales KPIs on dashboards

Education

Automate attendance, grades, and school purchasing.

What schools automate

  • Track attendance and notify parents
  • Record and compare class grades
  • Track inventory lent to students and staff

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Get started

Templates

Ready-made workflows to start from

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Help center

Guides and answers

Contact support

Write to our team

Workflows

Build processes with your team

Automations

Connect files and automate tasks

How to use queries and connections in Excel with Power Query

Knowing your way around Excel formulae is a helpful skill, especially if you work with large datasets and multiple worksheets at once. In another article, we showed you the two basic procedures to transfer data from one Excel worksheet to another automatically as a simple alternative to manual copy/paste. Although the Copy and Paste Link and Worksheet Reference functions can make your life easier, Excel has integrated features that require even less effort.

In this guide, we’ll show you how to use Power Query in Excel to import data from various sources and combine and merge tables according to your preferences, all without having to learn any specific code.

What is Excel Power Query?

Power Query is a Microsoft Excel tool that simplifies the two main tasks of any spreadsheet user: importing and sorting data. Before showing all the applications, let’s briefly explore how they work.

How do power queries work in Excel?

Power Queries are commands set up in Excel that can be broken down into the following steps:

  • Import or connection: You can connect data stored in the cloud, specific service, or local environment. Moreover, you can connect from multiple sources to combine all of your data in one place.
  • Editing or transformation: You can change the data according to your preferences, as these will not affect the original source.
  • Automate or load: After completing your query, you can then load it into a worksheet or Data Model and update it regularly, without the need to repeat that same process.

So, is Power Query easy to use? Yes. Power Query doesn’t require knowledge of coding or programming and since 2016, it has become an integrated tool in Excel, so there is no longer a need for third-party installation. Like any automation tool, its most attractive feature is the ability to achieve the same results in half the time.

How to use Excel Power Query?

Before showing how you can use Power Query in Excel, note that it only works in the following Excel versions:

  • Power Query for Excel 2010 and 2013: To use it, you need Microsoft’s Power Query add-in. Microsoft no longer supports either version. Unfortunately, there are no add-ins available for macOS and you can only refresh the existing query, but not create a new one or edit.
  • Power Query for Excel 2016, 2019, 2021, 2024, or Microsoft 365: Depending on the version, Power Query will appear under the “Get & Transform Data” group or the “Get Data” button. This integrated feature allows you to create and edit queries in Windows and Mac.

This article will show you how to use Power Query in Excel for Microsoft 365 on Mac.

How to import data using Excel Power Query?

Importing your data using Power Query is simple, as Excel provides a great variety of data connections that are accessible from your toolbar. Now that you know what Power Query is and the type of data format it can import, let’s look at how you can import data from an Excel spreadsheet.

How to import data from a single sheet in Excel Power Query?

Imagine that you want to analyze the car sales made by an employee in 2021. Using Power Query, you can import the data without affecting the source file at all.

1. Open a new Excel spreadsheet and go to Data > Get Data (Power Query). As explained, there are several options depending on the source type. Here, I will select “Get Data (Power Query)” to import a spreadsheet stored locally.

Queries and connections in Excel — Data tab with Get Data (Power Query) highlighted in the menu

2. Select “Excel workbook”.

Power Query in Excel — Data sources window with the Excel workbook and Text/CSV options

3. Once you have selected your preferred data source, choose your “Connection settings”. Here, I can select the local file by clicking on “Browse”.

Power Query in Excel — Connection settings with the Browse button and SALES2021_FELIX.xlsx selected

4. For a quicker search, type the source filename in the search bar. Here, I’ve typed ‘SALES’. Select the file, click “Get Data”, and then the “Next” button located on the bottom right-hand corner of the original window.

Power Query in Excel — SALES typed in the search bar and SALES2021_FELIX selected next to Get Data

5. You should now be able to see the data preview window. If you are using Windows, then you can transform or edit your data at this point. On a Mac, you can also click Transform Data in Excel for Microsoft 365. Older Mac versions only let you load the data and apply changes afterward.

Power Query in Excel — preview of the SALES2021_FELIX car sales data with the Load button

Once you load the data, Excel automatically saves the query in your system. Every time you want to import or format (for Windows), click the “Refresh” icon in the top-right corner to repeat the steps. This will eliminate repetitive manual work and unnecessary human errors.

How to import data from multiple sheets in Excel Power Query?

As mentioned before, Power Query can import data from multiple files at the same time. This is very useful when you don’t want to import all the data from a larger file, and would like to import specific sheets. Here is how you can get data from multiple sheets.

1. Repeat steps 1-3 from the previous section.

2. Search for your general folder rather than a specific sheet. Here, I’ll search for my ‘SALES2021’ file. Click on “Get Data” and then “Next” located in the bottom right-hand corner.

Power Query in Excel — SALES2021 workbook selected in the Downloads folder

3. As you can see, you can now select the specific sheets of data you’d like to import. I have selected two sheets corresponding to the sales employees I want to compare. Once selected, click “Load”.

Power Query in Excel — SALES2021_ANNA, SALES2021_FELIX and SALES2021_ROB sheets listed with the Load button

4. You should now have a new Excel workbook with the two loaded sheets. Below is an example of how Excel has converted my data into a table, each in a separate tab.

Query table in Excel — car sales data loaded as a table on the SALES2021_ROB tab

In Windows, Power Query also gives you the option to load to a pivot table, pivot chart or simply create a connection for the query. This last option does not import data, but it’s still a useful way of speeding up any data transformation process.

Now that you know how to load data from a single sheet and multiple sheets, let’s see how to edit the query in Excel.

How to edit external data range properties in Excel?

A great way to edit future imports using Power Query is to change the settings for the external data range.

1. Go to Data > Properties to edit any of the following elements.

Query table in Excel — External Data Range Properties with Save query definition and refresh options

Below are summaries of the three most useful properties to consider for future queries:

  • Query Definition: Leave the “Save query definition” box ticked and change the name to something that will be easier to remember. Don’t forget that the point of Power Query is to reduce the number of steps in data transformation processes.
  • Refresh Control: What’s most important here is the “Refresh data when opening the file” option. If you choose this option, then any change you make to the original file will automatically affect the destination file.
  • Data Formatting and Layout: If you select “Insert cells for new data, delete unused cells”, any new rows of data added to your source file will be transferred and formatted to coincide with the rest of your Power Query table, and any unused cells will be deleted.

It’s crucial to understand how Excel can transform your data automatically to boost productivity. Although the most basic features of Power Query in Excel work in a similar way in Windows and Mac, further automation features may vary to a greater extent.

To avoid version incompatibility and build the same automated spreadsheet workflow on any operating system, you can also consolidate Excel files automatically with Sheetgo, an AI-powered data automation platform.

How to remove a query from queries and connections in Excel

If you would like to remove a Power Query connection in Excel, follow the steps below:

Excel lists every query in the workbook in the Queries & Connections window. From there you can refresh a query, open its properties, or remove it.

1. Go to Data > Queries & Connections.

Queries and connections in Excel — Workbook Queries and Connections window listing two queries

2. Click on the query you’d like to delete and select “Remove”.

Queries and connections in Excel — query selected with the Description, Type and Connection string columns menu

3. Excel will prompt you with an alert message to make sure you wish to proceed.

Queries and connections in Excel — alert asking to confirm removing the connection, with OK and Cancel

If you do not use a workflow automation tool, Power Query is a great way to not only automate updates, edits, or repetitive tasks but also to track any modifications made to the file.

Conclusion

In this article, we have shown you how to use Excel Power Query at a basic level in Excel 2016 and later, including Microsoft 365, for Mac and Windows. It’s a powerful query tool that can import a variety of data sources in terms of file type and storage systems. In a few simple steps, you can automate your most common repetitive tasks, avoid future manual errors, and increase the efficiency of your business.

If you want to learn more advanced methods to automate your workflow in Excel, read our guide on how to use macros in Excel to automate tasks.

Power Query also imports Text/CSV files. If a new CSV export lands every week, see how to import CSV to Excel automatically. To move only some rows, see how to transfer filtered Excel data from one workbook to another.

You may also like…

How to lock cells in Excel — Excel logo next to a green padlock on a mint background

How to lock cells in Excel? (cells, sheets & formulas)

Learn how to lock cells in Excel to stop accidental edits, plus how to protect a sheet and lock formulas, with steps for Windows and Mac.

Excel version control — stacked XLS file icon in teal on a dark navy background

The beginner’s guide to Excel version control

Discover what Excel version control is, the version control features Excel has to offer, and how to use them to share, merge, and review Excel changes.

How to remove password protection from Excel — Excel icon next to a padlock with a masked password on a light blue background

How to remove a password from Excel (multiple methods)

Learn how to remove password protection from Excel: unlock a file or a sheet when you know the password, and what to try if you’ve forgotten it.