How to use Power Query in Excel

In this article we will learn to install a very useful feature of Excel which is known as Power Query. Getting started with Power Query has multiple steps. But, for the sake of eliminating confusion, let's say we'd have nothing. Therefore, we'd need to begin from the beginning.


It is an extra tool which can installed in the same way we add onther Add-ins. We can download the add_in from the following link (1), and choose a desired language (2), then press download (3).

Power Query download

You will have to choose the version as per your Excel installation (32 bit or 64 bit). Wait for it to download, and then install it.

Open Microsoft Excel, and click File.

Power Query click file

Click Options.

Power Query click options

Click on Add-ins (1), Browse manager to COM Add-ins (2), and then press Go (3).

Power Query com addins

Check the Microsoft Power Query for Excel (1), and then press Ok (2).

Power Query click ok

Get data

Now, click on Power Query (1), then choose any options in the Get External Data (2).

Power Query get external data

Note: This tutorial article uses online search that is also in the Get External Data.

Write something relevant to search (1), and click on search (2).

Power Query online search

Note: You could now click on the result, and choose the kind of data you would like to display. This is just one example of how to use the Power Query, as there are a lot of other ways to use it.

How to consolidate tables with Power Query?

Let's see how to consolidate tables with Power Query. This is wonderful way to boost your efficiency and save bunch of time.

I have a worksheet. There are a few tables in there and I'd like to combine them into one table. Power Query will help me with that.

To join tables click Power Query in the ribbon menu. Choose From File - From Excel.

power query from file from excel

Choose the file in your local drive.

power query from file

Power Query Navigator window pops out.

power query navigator

Select the whole file and click Edit.

power query editor

I can see every objects in the whole workbook. I'd like to load only tables. So I need to click Kind and filter only tables.

power query kind filter

Next I'd like to remove obsolete columns. I don't need so many of them.

power query remove columns

To merge tables I need to press a small icon next to Data header.

power query merge tables

I unchecked Use original column name as prefix option. Just because I don't like it.

This is how preview of my consolidated tables looks like.

power query merged tables

Here is the time for final formatting.

First thing is to change the name. I did it on the right side of the screen.

Next important thing is to set proper columns data formatting. Click the small icon in the top headers and set right data type for each column.

When you are happy from your merged tables, and I am happy, click Close & Load To in the left top side of the screen.

power query close and load to

I'd like to have Table in the New worksheet. Click Load to get merged tables in the new sheet.

power query load to

And here is how my joined tables by Power Query look like.

power query tables merged

I saved a bunch of time because now I have joined tables which don't require any more formatting.

Further reading: 
Anova test
How to create KPI dashboard?
Interactive Charts