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.xlsx24.1 KB Preparing Source Data - Completed.xlsx
31.4 KB
Quick reference
Preparing Source Data
Preparing your PivotTable source data for further processing.
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 PivotTable
- Saves trying to make complicated Calculated Fields later
- Makes it easy to drag and drop required fields on a PivotTable
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.