Pivot Tables
A Pivot Table is one of the most powerful tools in Microsoft Excel used to summarize, analyze, and organize large amounts of data quickly. It helps users create reports without writing complex formulas.
Example: If you have 10,000 sales records, a Pivot Table can instantly show Total Sales by Product, City, Salesperson, or Year.
Why Use Pivot Tables?
| Benefit |
Description |
| Summarize Data |
Creates summaries from large datasets. |
| Analyze Data |
Quickly identify trends and patterns. |
| No Formulas Needed |
Most calculations are automatic. |
| Interactive Reports |
Easy filtering and grouping. |
Sample Sales Data
| Date |
Salesperson |
Product |
City |
Amount |
| 01-Jan-2026 |
Rahul |
Laptop |
Bangalore |
45000 |
| 02-Jan-2026 |
Priya |
Laptop |
Mysore |
48000 |
| 03-Jan-2026 |
Rahul |
Printer |
Bangalore |
12000 |
Creating a Pivot Table
Steps
- Select the data range.
- Go to Insert Tab.
- Click PivotTable.
- Verify the table/range.
- Select New Worksheet.
- Click OK.
- Drag fields into Rows, Columns, Values, and Filters areas.
Pivot Table Areas
| Area |
Purpose |
| Rows |
Displays data vertically. |
| Columns |
Displays data horizontally. |
| Values |
Performs calculations such as Sum, Count, Average. |
| Filters |
Filters the entire Pivot Table. |
Example Pivot Table
Drag Salesperson to Rows and Amount to Values.
| Salesperson |
Sum of Amount |
| Rahul |
57000 |
| Priya |
48000 |
| Grand Total |
105000 |
Pivot Table Calculations
Pivot Tables can perform different types of calculations automatically.
Common Value Calculations
| Calculation |
Purpose |
| Sum |
Adds all values. |
| Count |
Counts records. |
| Average |
Calculates average. |
| Maximum |
Highest value. |
| Minimum |
Lowest value. |
Changing Calculation Type
- Right-click any value in the Pivot Table.
- Select Summarize Values By.
- Choose Sum, Count, Average, Max, or Min.
Show Values As
Pivot Tables can display values in different ways without changing the original data.
| Option |
Purpose |
| % of Grand Total |
Shows contribution percentage. |
| Running Total |
Shows cumulative totals. |
| Difference From |
Shows difference between values. |
| % Difference From |
Shows percentage difference. |
Slicers
Slicers are visual filter buttons used to filter Pivot Tables quickly. They make reports interactive and easy to use.
Slicers work like filter buttons but are easier to understand because users can click directly on the displayed values.
Example Slicer
| City Slicer |
| Bangalore |
| Mysore |
| Hubli |
Clicking “Bangalore” instantly filters the Pivot Table to show only Bangalore records.
Steps to Insert a Slicer
- Click anywhere inside the Pivot Table.
- Go to PivotTable Analyze tab.
- Click Insert Slicer.
- Select the field (City, Product, Salesperson, etc.).
- Click OK.
- Use the slicer buttons to filter data.
Advantages of Slicers
| Feature |
Benefit |
| Easy Filtering |
Filter with a single click. |
| Interactive Reports |
Makes dashboards user-friendly. |
| Visual Filters |
Displays selected filters clearly. |
| Multiple Selections |
Filter multiple values together. |
Shortcut Keys
| Shortcut |
Purpose |
| Alt + N + V |
Create Pivot Table |
| Alt + J + T + S |
Insert Slicer |