Excel Pivot Tables Tutorial : What is a Pivot Table and How to Make one

Posted on August 19th, 2009 in Excel Howtos , Featured , Learn Excel - 28 comments

Excel pivot tables are very useful and powerful feature of MS Excel. They can be used to summarize, analyze, explore and present your data.

In plain English, it means, you can take the sales data with columns like salesman, region and product-wise revenues and use pivot tables to quickly find out how products are performing in each region.

In this tutorial, we will learn what is a pivot table and how to make a pivot table using excel.

Excel Pivot Tables: Tutorial

click here to see a video tutorial of making pivot tables in excel

Example uses of Pivot Tables

As I said before pivot tables are very powerful and useful. There are numerous uses of pivot tables that we can talk about them until Christmas.

Here are some example uses of pivot tables:

  • Summarizing data like finding the average sales for each region for each product from a product sales data table.
  • Listing unique values in any column of a table [learn more]
  • Creating a pivot report with sub-totals and custom formats
  • Making a dynamic pivot chart
  • Filtering, sorting, drilling-down data in the reports without writing one formula or macro.
  • Transposing data – i.e. moving rows to columns or columns to rows. [learn more]
  • Linking data sources outside excel and be able to make pivot reports out of such data.

Excel Pivot Table Tutorial: How to create your first pivot table

Let us make your first pivot table. We will use example data in the following format. Download the excel pivot tables tutorial workbook with the data.
Pivot Tables in Excel - Tutorial

Step 1:  Select the data
Select the data range from which you want to make the pivot table.

Insert Pivot Table in Excel WorksheetStep 2:  Go to Insert ribbon and click on new Pivot table option
To insert a new pivot table in to your spreadsheet, go to Insert ribbon and click pivot table icon and select pivot table option.

Step 3:  Select the target cell where you want to place the pivot table. For starters, select New worksheet.
Excel will display a pivot table wizard where you can specify the pivot table target location etc. Select “New worksheet” option and your pivot table will be placed in newly created worksheet.

Step 4:  Make your first pivot report

The pivot report UI is very intuitive and sandbox like. To make powerful analysis, all you have to do is drag and drop fields in to the pivot table grid area. In excel 2007, you can also control this by using the “Pivot table panel”.

The pivot report is divided in to header and body sections. You can drag and drop the fields you want in each area. The body itself contains three parts. Rows, Columns and Cells. You can use any fields in these areas too.

For the above sample data, I have set this criteria:

Pivot Table Settings - Row, Column, Header and content settings

And the outcome is this pivot report.

Example Pivot Report - Excel Pivot Tables

It might be a bit difficult to understand how this works. But believe me, if you have seen any reports or worked with any other reporting systems, then the idea of pivot tables, pivot reports and pivot charts becomes quite simple to you.

You can use the excel pivot table features to make a more complicated pivot report like this in no time.
Example Pivot Report - A very detailed Pivot Table with sub-totals and totals

Some useful tips on Excel Pivot Tables

  • You can apply any formatting to the pivot tables. MS Excel has some very good pivot table formats (and they are better in Excel 2007 and 2010).
  • You can easily change the pivot table summary formulas. Right click on pivot table and select “summerize data by” option.
  • You can also apply conditional formatting on pivot tables although you may want to be a bit careful as pivot tables scale in size depending on the data.
  • Whenever the original data from which pivot tables are constructed, just right click on the pivot table and select “Refresh Data” option.
  • If you want to drill down on a particular summary value, just double click on it. Excel will create a new sheet with the data corresponding to that pivot report value. (This is extremely useful)
  • Making a pivot chart from a pivot table is very simple. Just click on the pivot chart icon from tool bar or Options ribbon area and follow the wizard.

Download the excel pivot tables tutorial workbook and practice yourself

Click here to download the excel pivot tables tutorial workbook. [.zip version of tutorial here]The workbook has sample data and one pivot table in it. You can play with it to learn more.

Checkout the video tutorial to make excel pivot tables

Click here to see a video tutorial of making pivot tables in excel

Share your experiences of using pivot tables

Tell me how you use pivot tables, your favorite tricks using comments.

This post is part of our spreadcheats series, a 30 day online excel training program for office goers and spreadsheet users. Join today.

Subscribe to Chandoo.org Email updates and get a free excel e-book with 95 tips & tricks

Comments

Nice clear article, good to see someone else trumpeting the value of pivot tables. If you read this and are still not sure, you can learn by video:

Excel 2003 version

Excel 2007 version

It is well worth making the effort to learn pivot tables – you won’t look back once you do.

Dear Expert,
How can I replace the “Sum of” to “Different of” in a pivot table? I have a set of data that consists of both 2007 and 2008 sales, however these info were in one same column that name “period”. Could you kindly show me the formula that I can add into the Pivot table to show the comparisions?
Thanks a zillion

Hi Chandoo,

Well structured and presented as usual.
I’m doing a lot with pivot tables. What I am looking for is a tool where you can change the data directly in the pivot table.
Do you have an idea?

br, Meikel

I want to apply the same type of pivot table to a different file I get each month (but same format and type of data). Can I “save” a custom pivot table format ? (excel 2003)

Thanks

srikanth January 17, 2010

hi chandoo,
thanks. it was very simple and clear. really it is very usefull. it was well presented. great job.

Thanks for posting this info. I’ve been struggling with pivot tables for some time now and this has cleared up a lot of my confusion. Nice job.

@Louis… yes, you can save custom pivot formats…

@Srikant & TMS: thank you very much. I am happy you liked this tutorial.

Jeremiah Minifield February 4, 2010

Will this cover Excel 97 and Excel 2002?

@Jeremiah… The steps are more or less similar in Excel 2002. I dont remember Excel 97 so cant say for it.

I have two data point per condition, is it possible to display both the data points either bewlo one another or next to each other in a pivot table. If so, how would i do it.
Since right now I can just display average, count or sum but not the actual raw data points.

Also can we have error bar in the pivot chart for a bar graph?
thanks for the help

mantataf excelnya…………….. top markotop

michaelG May 6, 2010

My question is:

I have a body of data that I have placed in a pivot table.. I understand how to manipulate it to shpow me eithert the min, sum, average etccc of the data
however I dont know how I can have the pivot table express 2 different options like the min and the average??

in the corresponding chart i would like to see the min amount in each period however I would like for the graph to also show me the average in each period

for example the min would be displayed as a bar chart and the avg would be a line running through,

can anyone help me with this??

@MichaelG: Just add the value field again to the “value field area” of pivot table. Now set value field settings to change the summary type to “average” for first value and “min” for second value. That is all.

gr8

i want to learn excel, best and also focus on audit and accounts point of view so pls suggest me what should i do?
is there any simple but strong book or any other on line site for it.

@Hemant: Try one of these books Excel Accounting books

PS: I have not read any of them

Shefeeque K A August 27, 2010

Its a great skill to present these complicated thing in such an easy way.
I tried a lots of Ebooks from online non of them give me currect use of pivot table but ur presentation helped me a lot. Good Job.

Thanks a lot.

how to create pivot table,macros, vlookups with examples please send

In reply to Rajesh:

I recently posted the following post that has links to video tutorials on pivot tables, vlookups amd macros:

Top 5 Tips to make Excel Spreadsheets work for you

I hope they’re helpful.

RSS feed for comments on this post. TrackBack URI

Leave a comment

   Name (required)

   E-mail (required, never displayed)

   URL