How to Make a Pivot Table in Excel

Photo of author

By Victor Ashiedu

Published

Ever wondered if Excel has tools you can use to analyze relationships between large sets of data? Yes, it does and this guide shows you how to use Excel Pivot Tables to analyze data.

Overview

A Pivot Table allows you to analyze, summarize, and calculate large data to help find relationships. With a Pivot Table in Excel, you can see patterns and trends.

The table below shows a table of sales divisions of a company, the subdivisions, and information about products.

If you are asked to find the average price of products in each division it will be time consuming to get that information directly from the table.

You may also want to know the total number of products in each division, by subdivision. A Pivot Table will help you easily group the data so as to extract and analyze the data.

You can make a Pivot Table using Excel’s recommended PivotTables. You could also make a Pivot Table from a blank PivotTable. In the next two sections, I will demonstrate each.

In this example, I will show you how to make a Pivot Table in Excel using Recommended PivotTables.

Here are the steps:

  • Select the data you want to plot a Pivot Table for, including the table headers.
 How to Make a Pivot Table With Excel Recommended PivotTables - select data including column headers
  • Click the Insert tab. Then click Recommended PivotTables.
 How to Make a Pivot Table With Excel Recommended PivotTables  - click Insert tab. Then select Recommended PivotTables
  • Excel will open different pre-plotted PivotTables. On the left hand side, select any recommended PivotTable to previou it. Select the one that meets your need. Then click Ok.
 How to Make a Pivot Table With Excel Recommended PivotTables - select a Recommended PivotTable
A new PivotTable will be created in a new worksheet.

The PivotTable I selected have organized the original data in a way that can be easily analyzed. For the PivotTable to make sense, you will need to change some of the labels. For example, cell A4 is labelled Row Labels. From the original data, this is Subdivisions. Change cell A4 to Subdivision.

Also, cell B3 is called Column Labels. This is Divisions. Change this as well. You may also wish to rename the worksheet to a more recognizable name.

Here is the updated PivotTable.

Option 2: Make a Pivot Table from a Blank PivotTable

You can also make a Pivot Table in Excel from a blank PivotTable.

Here is how:

  • Select the data you want to make a Pivot Table from, including the table headers.
  • Then click the Insert tab and select PivotTable. The Creat PivotTable option will load.
  • To create the PivotTable using the default options, click Ok. This will create a blank PivotTable as show below.

The next step is to insert data into the blank Pivot Table in Excel. This is as simple as dragging and dropping the columns to the Fields, Columns, Rows or Values boxes.

To make a Pivot Table similar to one in the last example:

  • Drag Division to Columns box. Then drag Subdivision to Rows box. Finally drag Number of units to Values box. This will produce a Pivot Table as shown in the image below.
Add data to blank Pivot Table in Excel
You can modify the column labels as we did in the previous section.

How to Customize a Pivot Table in Excel

The image below shows a Pivot Table in Excel. It is created from the original data shown in the second image below.

The Pivot Table shows the data organized by Divisions and Subdivisions. It then shows the total units and average Price per unit for each product in a Subdivision.

How to Customize a Pivot Table in Excel - finished Pivot Table sample
How to Customize a Pivot Table in Excel  - raw data

In this section, I will walk you through how to make a Pivot Table similar to the one above.

Here are the steps:

How to Customize a Pivot Table in Excel  - blank Pivot Table
  • Next, drag Division and Subdivision columns to the Rows box.
How to Customize a Pivot Table in Excel - drag column headers to Rows box
  • Then, drag Number of units and Price per unit to the Values box.
How to Customize a Pivot Table in Excel - drag column headers to Values box
By default when you add column headers to the Values box, Excel calculates the column as a SUM. But we need the last column, Sum of Price per unit as an Average, not a SUM.
  • To turn that column to average, double-click it. It will open for editing.
  • Beneath the Summarize value field by, select Average. Then click Ok. The column will be changed from Sum to Average. Excel will also label it accordingly.
The final part of this section is to change the reporting layout of the Pivot Table.

To change the layout to show Division and Subdivision in two separate columns with subtotals:

  • Click anywhere on the Table. Then click Design tab.
  • Next, click the Report Layout drop-down and select a layout. For this guide I will use Show in Tabular Form. The result is shown in the second image below.
As you can see from the image above, the last column is not formatted. You can format it as currency and make it 2 decimal places. You can also change the colors of the subtotals.

Conclusion

This guide showed different ways you can make a Pivot Table in Excel. The guide showed how to make you can make a Pivot Table using Recommended PivotTables.

It also showed how to make one from a blank Pivot Table. Finally, the guide concluded by demonstrating how to customize a Pivot Table in Excel.

If you were able to make a Pivot Table in Excel by following the steps in this guide, kindly spare 2 minutes to share your experience with us. You can respond to the “Was this page helpful?” question below.

Alternatively, share your feedback with our community using the “Leave a Reply” form located at the bottom of this page.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend