Excel Pivot Tables Post Course Reference
Excel Pivot Tables Post Course Reference
Use Column
Structure with a
text field in
every header
No blank rows
Preparing
No merged cells or columns to
data for
in source data ensure all
Pivot
headers source data is
conversion included
METHOD 1
1. Create a Pivot based on a breakdown of Quantity by Salesperson
2. Drag the Quantity field into the ‘Values’ box (again)
3. Right click on the 2nd Quantity field and go to SHOW VALUES AS > % OF
GRAND TOTAL
4. Create 2 more Quantity field columns and apply % DIFFERENCE FROM and
RUNNING TOTAL to each of the columns (see above
METHOD 2
1. In Pivot go to PIVOT TABLE ANALYSE > FIELDS, ITEMS & SETS > CALCULATED
FIELD
2. Enter 'Extended Price' in the Name field
3. Enter Quantity*Unit Price in the Formula field and click OK
Excel Pivot Tables
CONDITIONAL FORMATTING
Set Conditional Formatting rules on Pivot Tables to change colour dynamically
1. Select all ‘value’ cells (e.g. Extended Price) with the down arrow (see
above)
2. Go to CONDITIONAL FORMATTING > NEW RULE > ALL CELLS
SHOWING “Sum of Extended Price” values for “” > FORMAT ONLY
CELLS THAT CONTAIN
3. Set 1st rule: ‘Greater than 35,000 then Format colour to Green
4. Repeat step 2 then set 2nd rule: ‘Between 20,000 and 35,000’ then
Format colour to Yellow
5. Repeat step 2 then set 3rd rule: ‘Between 0 and 19,999’ then Format
colour to Red
6. Now change data source, refresh Pivot and see the colours change
dynamically (see below)
Excel Pivot Tables
Creating Bins and Grouping Dates
Bins are used to group numeric data into intervals, making it easier to analyze
and visualize the distribution of data. This is particularly useful for creating
histograms or summarizing data in a more meaningful way.
Creating Bins
1. Drag the numeric field you want to group into the Rows or Columns area.
2. Right-click on any value in the numeric field within the Pivot Table.
3. Select Group from the context menu.
4. In the Grouping dialog box, specify the Starting at, Ending at, and By values to
define the bin intervals.
5. Click OK.
Grouping Dates
1. Drag Order Date to Columns and with any date selected go to UNGROUP
2. Select GROUP FIELD and choose YEARS and MONTHS
3. Drag ‘ Months’ from Columns to Rows
4. Drag ‘Sales’ to VALUES
Excel Pivot Tables
Consolidating separate datasets
to create summary reports: