How to Create a Pivot Table from Multiple Worksheets

With a pivot table, you summarize your data within a few seconds. You can create reports, analyze data, and easily share with others.

That's the beauty of pivot tables.

But here is a twist:

Normally when you create a pivot table you can select source data from a single table in a worksheet as Excel doesn't allow you to refer to different worksheets.

But sometimes, it happens that we need to use the source data from multiple worksheets to create a pivot table.

So today, I'd like to share with you simple steps to use multiple worksheets in a pivot table.

The Problem!

Assume that you want to analyze the sales data of your company and you pull out the yearly data for the last 4 years.

This is how you get the data dump in Excel.

four multiple worksheets to create a pivot table

Please note, the data in all the 4 sheets is different but the structure is exactly the same i.e. same number of columns and heading.

Now, to analyze this data, you need to make a single pivot table report from these multiple sheets.

Some of the common methods are:

  1. Manually copy and paste data from each sheet and make one single data set on a new sheet.
  2. Use a VBA code to automatically consolidate data from multiple sheets.
  3. Or you can, consolidate multiple worksheets using into a single worksheet by using Excel's consolidate option.

But the thing is, these methods require coding, copy-pasting, or, are repetitive.

The Solution

Here I am going to discuss a new method using Microsoft query which is dynamic, robust and simple.

Trust me you’ll love it!

By using Microsoft query you can create a pivot table from multiple worksheets.

Download this data file to follow along.

Steps To Create a Pivot Table from Multiple Worksheets

Here we have simple steps which you can follow and before that, please download this file from here to follow along.