Locked lesson.
About this lesson
When you need to aggregate multiple tables or create new fields in order to display properly in a PivotTable.
Lesson versions
Multiple versions of this lesson are available, choose the appropriate version for you:
2016, 2019/365.
Exercise files
Download the ‘before’ and ‘after’ Excel workbooks from the video tutorial and try the lesson yourself.
Preparing Source Data.xlsx16.2 KB Preparing Source Data - Completed.xlsx
23.7 KB
Quick reference
Topic
Preparing your PivotTable source data.
Where/when to use the technique
When you need to aggregate multiple tables or create new fields in order to display properly in a PivotTable.
Instructions
The end goal is to get all the required columns into a single table in order to feed the PivotTable. This includes aggregating data from other tables, creating new columns to hold the values you’d like to see, and splitting up fields into smaller pieces for PivotTable use if necessary.
Aggregating Tables
- Use VLOOKUP() to pull data from the other table into the main table
- Use Text functions (LEFT, RIGHT, MID, LEN, FIND) to break apart text if needed
- Perform mathematics in new columns (unit count * sales currency to get total sales)
Benefits
- Saves tying to write complicated formulas beside a pivot which can be overwritten or not cover the entire boundary of the Pivot
- Saves trying to make complicated Calculated Fields later
- Makes it easy to drag and drop required fields on a pivot
Drawbacks
- Extra columns in your data source table that may not always be required
- Can be tedious to set up the needed variants of the data
Lesson notes are only available for subscribers.