Skip to content

Pivot Tables, Grouping, Multi-level Pivot Tables, Multiple Report Filter Fields, Frequency Distribution, Pivot Charts, Slicers, Calculated Field/Item, GETPIVOTDATA function

Notifications You must be signed in to change notification settings

Kuba27x/Excel-17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

📊 Excel-17

Status Excel

✨ Project Description

Excel-17 is your guide to mastering Pivot Tables in Microsoft Excel.
Learn practical tips, step-by-step instructions, and see illustrated examples for:

  • Pivot Tables
  • Grouping
  • Multi-level Pivot Tables
  • Multiple Report Filter Fields
  • Frequency Distribution
  • Pivot Charts
  • Slicers
  • Calculated Field/Item
  • GETPIVOTDATA function

📚 Goal: Help you analyze data efficiently and create insightful Excel reports—ideal for learners and power users!


📒 Table of Contents


📊 Pivot Tables

Pivot tables are a powerful Excel feature for summarizing large data sets.

To create a pivot table:

  1. Click any cell in your data set.
  2. Go to the Insert tab → Tables group → PivotTable. Excel auto-selects your data. Default is a new worksheet.

Pivot Table Wizard

  1. Click OK.

The PivotTable Fields pane opens.
To summarize exported amounts by product:

  • Drag Product to Rows
  • Drag Amount to Values
  • Drag Country to Filters

Pivot Fields

Result:

Pivot Table Result


🔍 Sort & Filter Pivot Table

Sort:

  1. Click a cell in the Sum of Amount column.
  2. Right-click → Sort → Sort Largest to Smallest.

Sort Dialog

Filter: Click the filter drop-down and select France.

Result:

Filtered Pivot


🧮 Change Summary Calculation

  1. Click any cell in Sum of Amount.
  2. Right-click → Value Field Settings.
  3. Choose calculation type (e.g., Count).

Value Field Settings

  1. Click OK.

Count Result

16 out of the 28 orders to France were 'Apple' orders.


🔀 Two-dimensional & Multi-level Pivot Tables

Two-dimensional:

  • Drag Country to Rows
  • Drag Product to Columns
  • Drag Amount to Values
  • Drag Category to Filters

2D Fields

Result:

2D Result

Multi-level: Drag more than one field to Rows (e.g., Category and Country).

Multi-level Fields

Result:

Multi-level Result


🔗 Grouping Items & Dates

Group Products:

  • Select items, right-click → Group.

Group Dialog Group Result Click minus signs to collapse.

Collapse Groups

Group Dates: Add Date to Rows.
Right-click a date, Group → Quarters.

Date Group Dialog Date Group Result

Quarter 2 is the best!


➕ Multiple Value & Report Filter Fields

Multiple Values:

  • Country to Rows
  • Amount to Values (twice)

Multi-Value Fields Multi-Value Result

To show % of Grand Total:

  • Value Field Settings → Custom Name: Percentage
  • Show Values As: % of Grand Total

Show Values As Percentage Result

Multiple Filters:

  • Order ID to Rows
  • Amount to Values
  • Country & Product to Filters

Multiple Filters

Select United Kingdom and Broccoli in filters.

Result:

Multiple Filters Result


📈 Frequency Distribution

Pivot tables can create frequency distributions (histograms).

  • Amount to Rows
  • Amount to Values

Freq Fields

Change Values to Count.

Count Values

Group amounts (e.g., by 1000):

Group Amounts

Result:

Freq Result

Create a pivot chart for visualization:

Freq Chart


📊 Pivot Charts

Pivot charts visualize pivot tables.

Use your 2D pivot table:

  1. Click a cell in the pivot table
  2. PivotTable Analyze → Tools → PivotChart → OK

Pivot Chart

Changes sync between chart and table!

Filter Pivot Chart: Use Country filter to show only US exports.

Country Filter

Use Category filter to show vegetables.

Category Filter

Change Chart Type: Select chart → Design → Change Chart Type → Pie → OK

Pie Chart Pie Result

Pie charts show one data series.


🥒 Slicers

Slicers make filtering pivot tables intuitive.

Insert a slicer:

  1. Click a cell in your pivot table
  2. PivotTable Analyze → Filters → Insert Slicer
  3. Check Country → OK

Country Slicer

Click United States for product details.

Slicer Filtered

Insert a Product slicer, select style, use CTRL to select multiple.

Product Slicer

Connect slicers to multiple tables:

  • Insert a second pivot table
  • Select slicer → Slicer tab → Report Connections → select table

Report Connections Connected Slicers

Click the icon in a slicer to clear its filter:

Clear Slicer

No beans or carrots were exported to Canada!


🔄 Update Pivot Table

Pivot tables do not auto-refresh.
To update after changing data:

  1. Click any cell in the pivot table
  2. Right-click → Refresh

Or set "Refresh data when opening file" in PivotTable Options.


🧮 Calculated Field/Item

Calculated Field:
Uses values from other fields.

  1. Click a cell in the pivot table
  2. PivotTable Analyze → Calculations → Fields, Items & Sets → Calculated Field

Calc Field

Insert formula, e.g.,

=IF(Amount>100000, 3%*Amount, 0)

Excel adds the field to Values.

Calc Field Result

Calculated Item:
Uses values from other items.

  1. Click a Country in the pivot table
  2. PivotTable Analyze → Calculations → Fields, Items & Sets → Calculated Item

Insert formula, e.g.,

=3%*(Australia+'New Zealand')

Calc Item Dialog Calc Item Result

Created groups: Sales and Taxes.


📑 GETPIVOTDATA Function

GETPIVOTDATA returns visible data from a PivotTable.

📚 Official Documentation


📷 Screenshots

All screenshots are in the /Screenshots folder.


ℹ️ Requirements

  • Microsoft Excel (recommended: 2021/365)
  • Windows OS

👨‍💻 Author

Project and documentation by Kuba27x
Repository: Kuba27x/Excel-17


About

Pivot Tables, Grouping, Multi-level Pivot Tables, Multiple Report Filter Fields, Frequency Distribution, Pivot Charts, Slicers, Calculated Field/Item, GETPIVOTDATA function

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published