Cheat Sheet Pivot Tables
Cheat Sheet Pivot Tables
Review in an instant
Cheatsheet for ”Pivot Tables”
Table of contents
Introduction 1
Starting to Pivot 2
- What is a Pivot Table and when should I use it?
- Making your data ready for a Pivot Table
- Building up the Pivot Table
- Rearranging the Pivot Table in seconds
- Change/refresh the data source
Pivot Charts 11
- What is a Pivot Chart?
- Create a Pivot Chart
- Using a Pivot Chart
- Sorting and filtering
Cheat sheet for ”Pivot Tables”
Introduction
This cheat sheet gives you a quick summary of all the content in “Pivot Tables”.
If you find yourself working with large amounts of data, you need to master pivot tables. “Pivot Tables”
covers everything you need to get started working with pivot tables. Mastering pivot tables is a huge step
towards mastering Excel.
Use it when faced with a specific challenge. Chances are, this cheat sheet will show you the steps on how to
solve your situation. For example, if you forgot what the “Raw” versus “Processed” data is, you can just look
it up. Or do you want to move your pivot table? We got you covered too.
Protip: Search in the PDF for the word you're looking for. Let's say you want to know, if this cheat sheet
covers "Sorting a pivot table". Then search for the word "Sort" and BAM, there it is on page 8.
Use this cheat sheet too when you want to review the content of this course. As time goes, you will forget a
few things here and there. We all do! This cheat sheet gets you back up to speed in no time.
Don't rush the lessons, take it at a nice, slow and steady pace. You'll soon surpass friends and colleagues.
One day, you'll also surpass your own wildest dreams of what you thought possible.
If you at any point have any questions, feel free to reach out to me: [email protected]
Kasper Langmann
Co-founder
Certified Microsoft Office Specialist
1
Cheat sheet for ”Pivot Tables”
Starting to Pivot
What is a Pivot Table and when should I use it?
A Pivot Table is the ultimate tool for making sense of big datasets and turns data into insightful
reports.
The key benefits of a Pivot Table are its extreme flexibility and unparalleled speed when making
reports.
Reports turn large datasets into smaller ones that tell the users exactly what they need to know
instead of something else. That means that Pivot Tables help you take action from datasets and
transform the data into business decisions.
This data is perfect because the data is separated vertically in the different order numbers but
each cell in a row belongs together horizontally. Each new row with data is considered an ‘entry’
about a specific order.
This is called a Table and when in this state data is perfect for a Pivot Table. If the data is not like
this in any way, you should strive to change it.
2
Cheat sheet for ”Pivot Tables”
3
Cheat sheet for ”Pivot Tables”
4
Cheat sheet for ”Pivot Tables”
Hide/Show elements
When you have records that belong to a certain category, you can
choose to hide these items and only see the subtotal for that
category. This happens when you have two or more items in the
‘Rows area’ or ‘Columns area’.
Click the ‘minus’ to collapse the category. This will change it to a
‘plus’. Click the ‘plus’ to expand the category.
To expand/collapse all categories at once:
1. Right-click an item
2. Hover over ’Expand/Collapse’
3. Click either ’Expand Entire Field’ or ’Collapse Entire Field’.
Change the name and the column headers of your Pivot Table
To change the headers anywhere in your Pivot Table just select it and write whatever you want.
It will stay with the Pivot Table, even when you rearrange it.
The name of a Pivot Table is used for advanced purposes. Change it on the left side of the
‘Analyze’ tab on The Ribbon. Always choose a name that reflects what’s in the Pivot Table.
5
Cheat sheet for ”Pivot Tables”
6
Cheat sheet for ”Pivot Tables”
Calculated Fields
Calculating something in a Pivot Table can be done with a Calculated Field. This is basically just
a field you create to carry out a calculation and drag around in your Pivot Table, but without
adding anything to the source data.
1. Go to the ’Analyze’ tab.
2. Click ‘Fields, Items & Sets’ and choose ‘Calculated Fields’.
3. Create the formula for your calculation by inserting the fields you need and manually
typing the rest. You can use functions in this calculation.
4. Click ‘Add’ when the formula is done. Then click ‘OK’.
Disadvantages:
The calculation you construct is also carried out within the subtotals and grand totals. This
makes them show the wrong results depending on your calculation.
You can’t use text within a function in the calculated field. You can use functions, but if you try
making an IF function and use text in your criteria like this, the field will not work.
Advantage:
You can include most calculations without filling up your source data with new columns for
calculations.
7
Cheat sheet for ”Pivot Tables”
8
Cheat sheet for ”Pivot Tables”
Report Filters
A Report Filter is another way of filtering and I suggest you use it for
important filters that other users of your Pivot Table has to use frequently.
The advantage of using a Report Filter is that you don’t have to include the
actual field in the Pivot Table itself. This makes the filter simpler to use and
keeps your Pivot Table neat and clean-looking.
Simply drag the fields you want to filter this way into the ‘Filters’ area in the
‘Field List’. The filter now appears right above the Pivot Table.
Grouping
Grouping is for ‘creating’ your own categories in the Pivot Table if a category doesn’t exist in the
‘Field List’ or source data.
If you need a group (category) simply select the items you want to group together, right-click
and click ‘Group’.
Now, all the data in column looks very confusing. Excel has tried to create similar groups for all
other items, but it rarely does a good job.
Think of some categories for your data and type the first one into the cell that says ‘Group 1’.
Now, select some more items, right-click and click ‘Group’. Type in the next category name into
the cell that says ‘Group 2’.
Repeat until every item has a category.
You can use this new field like a normal field, which means that when you remove it from the
active fields, the groups are saved and can be used again later on.
9
Cheat sheet for ”Pivot Tables”
General formatting
Formatting is a lot different in a Pivot Table than in a standard sheet.
For example, if you change the fill color of a cell and rearrange something in the ‘Field List’. If
these changes have any effect on the cell you’ve formatted the formatting will disappear. So don’t
try to format your Pivot Table with color, bolding, borders or similar.
Luckily, you can still do number formatting.
1. Click the little arrow in the ’Value Field’.
2. Go to ‘Value Field Settings’.
3. Click the ‘Number Format’ button.
4. Choose your format and click ‘OK’.
Conditional Formatting
To apply Conditional Formatting to a Pivot Table, simply select one cell with values. Then, create
the Conditional Formatting rule as you normally would. After you’ve created the rule a small
button appears. See module 6 of our course ‘Formatting’ if you don’t know how to use
Conditional Formatting.
Click it and choose the last option, which makes sure that the rule only applied to the relevant
cells. For example, you don’t want to highlight totals with a Conditional Formatting rule.
This way, when the Pivot Table is
rearranged, the Conditional
Formatting Rule will not get
messed up.
This method does not work when
applied rules to anything else than
values.
10
Cheat sheet for ”Pivot Tables”
Pivot Charts
What is a Pivot Chart?
A Pivot Chart is a way to visualize your Pivot Table data and is an improvement over normal
charts.
It is a chart that you attach to your Pivot Table to get the same benefits that a Pivot Table has:
extreme flexibility and speed.
Below, I’ll teach you how to use a Pivot Chart.
11
Cheat sheet for ”Pivot Tables”
To rearrange the Pivot Chart, just drag the fields around the Field List like you’re used to.
Changes made to the Pivot Chart is automatically applied to the Pivot Table as well.
12