The PivotTable feature is perhaps the most important component in Excel. PivotTable
is making one or more new table from a given data table.
The best way to understand pivot table is to see one. Start with the following Figure.
This figure shows a portion of the data we have used creating the pivot tables in this
chapter.
We shall create the Pivot Tables from this data table in this chapter.
Our example shows that data is in a table, but you can make pivot tables from any kind
of data.
This table consists of new account information of a bank. The bank has three branches:
Central, North Country, and Westside. The table has 712 rows. Each row represents a
new account opened at the bank. The table has the following columns:
What is the total amount of new deposits, broken down by account type and
branch?
What is the daily total new deposit amount for each branch?
How many new bank accounts were opened at each branch, broken down by
account type?
How does the North County branch compare with the other two branches?
In which branch do tellers open the most savings accounts for new customers?
You can sort the data and create formulas to answer these questions. But using pivot
table is a better choice, pivot table takes few seconds, doesn't require formula and
produces professional-looking report.
In addition, analyzing data with pivot tables makes less error than with creating
formulas.
In the Create PivotTable dialog box, you tell Excel where the data is and where you want
the place the
pivot table.
We shall use this PivotTable Fields task pane to build our pivot table.
Drag the Amount field into the Values area. The pivot table will display the
total of all the values in the Amount column.
2.
Drag the AcctType field into the Rows area. The pivot table will show now the
total amount for each of the account types.
3.
Now, drag the Branch field into the Columns area.The pivot table will show now
the amount for each account type, cross-tabulated by branch. Observe closely. You
will find that total amount of each AccType is calculated on the right side of pivot
table. At the same time, total amount opened in every branch is also calculated at the
bottom of the pivot table.
Click on this Refresh button when you have changed some information in your data
source to update your pivot table.