Excel Pivottables and Dashboard Guide-1
Excel Pivottables and Dashboard Guide-1
Under no circumstances will any blame or legal responsibility be held against the publisher, or author, for
any damages, reparation, or monetary loss due to the information contained within this book, either
directly or indirectly.
Legal Notice:
This book is copyright protected. It is only for personal use. You cannot amend, distribute, sell, use, quote
or paraphrase any part, or the content within this book, without the consent of the author or publisher.
Disclaimer Notice:
Please note the information contained within this document is for educational and entertainment
purposes only. All effort has been executed to present accurate, up to date, reliable, complete
information. No warranties of any kind are declared or implied. Readers acknowledge that the author is
not engaging in the rendering of legal, financial, medical or professional advice. The content within this
book has been derived from various sources. Please consult a licensed professional before attempting any
techniques outlined in this book.
By reading this document, the reader agrees that under no circumstances is the author responsible for
any losses, direct or indirect, that are incurred as a result of the use of information contained within this
document, including, but not limited to, errors, omissions, or inaccuracies.
Table of Contents
Introduction
Overview: Best Use of and Practice
Demonstrations with a Large Dataset
Project Flowthrough: Best approach to a project
Chapter 1: Version Compatibility
Backward Compatibility
How to Check Your Version of Excel
Licensing: Subscription versus Perpetual
Chapter 2: Basic PivotTable Functions
Office 365 Excel 2019 Build Features and Functionality
IFS (Office Excel 2019, Excel for Web)
SWITCH (Office Excel 2019, Excel for Web)
Other Office 365 Excel 2019 Functions
Forecasting Functions (Office 365 Excel 2019, 2016)
Enabling Power Pivot Add-in: New Pivot Table Controls on the Desktop Version
Implementing Your First PivotTable
Control PivotTables Using New PivotTable Defaults
Building a Pivot Table using Drag and Drop Features
Revamp Analyses by Dragging and Dropping Fields
Excel for the Web: Share your PivotTables with Colleagues
Read Only Mode
Editing Mode
Chapter 3: Automation and Efficiency
Shortcuts and Tips
Basic Pivot Table Shortcut Keys
Accessing Multiple Consolidation Ranges
Power Pivot Navigational Shortcuts
Automate PivotTables with Macros in VBA
Accessing the Developer Ribbon in Windows and Mac
Starting with Macros: Learning VBA Syntax
Common VBA Automated Pivot Table Actions: Create a Pivot Table
Common VBA Automated Pivot Table Actions: Modifying Fields
Chapter 4: Analysis
Overview: Process of Analysis
Providing Context: Creating and Managing Multiple Pivot Tables
Creating: Discovering and Validating New Perspectives on the Data
Chapter 5: Investigative Modeling using Pivot Charts
Principals in Data Modeling
Creating Visualizations
Interpreting Data using Visualizations
Chapter 6: Troubleshooting
Power Pivot Ribbon Disappears
Scenario 1: Power Pivot Ribbon Disappears
Scenario 2: Ribbon is not restored or disappears from Excel after Enabling Power Pivot
Problems with Adding Slicers
Scenario 1: Slicer button is Inactive
Scenario 2: Existing Connections Dialogue Box
Conclusion
Reference
Introduction
Welcome to the Excel PivotTables and Dashboard mastery guide! This e-book is intended for freelancers who have been asked
to implement analyses and consultants who help inform decision-makers. This book will empower you, as the data person, to
separate yourself from others in your field by incorporating additional value to your services through making adaptive reports.
This book is also both for the Excel aficionado and the intermediate Excel user who wants to get more functionality out of their
Microsoft Excel product. Regardless, the goal is to allow you to stay ahead of the other Excel power users with a sleek resource
and reference for your skills.
That being said, foremost, this book is a resource for mastering easy, powerful techniques to create, customize, change, and
control PivotTables in Excel. As you encounter analysis problems, you may return to this book to help strategize your approach.
This book also features some common troubleshooting issues to get you started on solving technical issues.
To begin, let’s discuss a quick definition of PivotTables. PivotTables are a collection of built-in tools that Excel uses to compile
more comprehensible reports from spreadsheet data, including data from various Excel files. PivotTable tools filter, sort,
rearrange, and calculate data to summarize databases .
These PivotTable features allow you to extract specific information into reports, which can facilitate better explorations of
trends in data and predictive features. How you extract and extrapolate this data, of course, depends on the purposes of the
report. As with any tool PivotTables ultimately only allows you to visualize data in different ways. How these visualizations are
interpreted and the conclusions reached depend on the analytical know-how of the analyst.
Expanding the functionality of Excel depends solely on the version of Excel of your client or employer. This includes PivotTables
and the functions used within them. Excel 2019 has added more PivotTable features that may not be backwards compatible to
an older perpetual license. This is important for freelancers and consultants because these features may not be viewable on the
client’s native desktop versions of Excel. This lack of backwards compatibility also makes it difficult to recreate and execute
newer features on older versions of Excel. Ergo, it is important when conducting your data dissections and compilations on
Excel 2019 or Office 365. Reports are always viewable on Microsoft’s office live online Excel client.
To begin, let us start with an overview of the purpose and the best uses of this text. The next section will give an exhaustive
overview of text features and how to take the best advantage of them.
This book is a collection of supplementary information to review before and after the illustrated demonstrations. In addition to
being useful for individuals who favor additional instruction and illustration before application, this book is a superior
substitute for most online tutorials. Most Excel aficionados became this way through searching for features online. This is a
novel and resourceful way to learn; even this book includes the best sources for this purpose as well. However, these online
tutorials are scattered and not unified. This book unifies examples and demonstrations.
Note:
Important and noteworthy information will be separated from other texts accordingly. They will be separated from the main
text and can occur at any point in the book.
One useful site used to source our demonstration and references is the Microsoft Office Support site. Each demonstration will
point to its associated Microsoft Excel exercises for demonstration and practice (“Create a PivotTable to analyze worksheet
data,” n.d.) . This site is useful because it features samples and screenshots from several platforms. These platform versions
include Windows (PC), Mac (iOS), and the Microsoft Live web-based platform.
One of the limitations of the Microsoft Office Support site, however, is that the demonstrations do not feature more realistic
datasets. The majority of these datasets are simple examples, featuring incredibly small dimensions, i.e. 3x4 datasets with
nonsense data within. While these examples serve as a way to clearly demonstrate the functions, they do not demonstrate how
the function is actually used to solve problems.
This book will also feature demonstrations using this large, 6370x17 dataset for practice:
http://www3.wabash.edu/econometrics/EconometricsBook/Chapters/Ch03PivotTables/ExcelFiles/EastNorthCentralFTWorkers.xls
This public workbook file was originally crafted for an introductory econometrics course. Specifically, the dataset was created
for their chapter covering pivottables (“Introductory Econometrics Chapter 3: Pivot Tables,” n.d.) . Econometrics itself involves
large demographical datasets. PivotTables require continuous data, i.e. data with no empty rows or columns interspersed in
between (“Create a PivotTable to analyze worksheet data,” n.d.) . Therefore, to create this dataset, the census data had to be
cleaned and formatted properly for demonstrations. This serves our purpose because it makes a comprehensible yet large
enough dataset to demonstrate the power of pivot tables.
For the purpose of our demonstrations, we will be focusing on these specific workbook dataset features:
● Raw “Data” sheet for performing exercises
● Named Ranges for large dataset management
● Summary of stats generated by Excel’s Data Analysis add-in
● 6366 individuals with 17 different measured variables
● “Q&A” sheet with simple contextual exercises
This large dataset will be used to demonstrate features on a more complex table, which is closer to what you might be using
these features for in the wild. As an effect, you will also be guided through real world troubleshooting and limitations for these
functions.
Note :
Demonstration portions are linked to their associated troubleshooting items in chapter 7
With an understanding of the main features of the book, we can move on to discussing an overview of topics. This book follows
the logical steps from getting started, such as a review of basic functions, to analysis, and the finalization process for a report.
The basic flowthrough of the book can be summarized as follows:
(1)Version Considerations and Compatibility
(2) Basic functions
(3) Automation
(4) Analysis
(5) Modeling
(6)Reporting and Sharing
Note :
Instructions on how to navigate the platform will be given in path form. Using the flowthrough process of the book listed above,
in path form it would be:
With “Reporting and Sharing” being the final step in the instructional path.
Version considerations and compatibility will cover Excel 2019 and Office 365 extensively. It will also overview limitations of
previous, “perpetual” licenses. Understanding version considerations and compatibility is important for getting started and for
troubleshooting software issues. This book will also discuss meeting and anticipating often “unspoken project requirements”
for freelancers. Most of these issues occur in this section, but will be detailed throughout the book in verison considerations.
While this book is intended for both power users and users looking to expand their knowledge of Excel, this book will still
review basic functions. Expertise begins with a grasp of fundamentals, and even the savviest expert can learn new basic
functions. This section will help you familiarize yourself with the platform. All functions will be labeled for version compatibility.
Basic functions will continue over to the automation and efficiency section. This section will include ways of automating some
basic functions in order to establish more efficient workflows. Similar to the previous section, power users may benefit the
most from this section, including implementing macros using the Visual Basic (VBA) editor console.
Distinguishing itself from the wealth of tutorials available online, this book will briefly provide an overview of general
principals in analysis used to qualify and quantify your data. This book was crafted for the purpose of discussing analysis,
which is why the large dataset was selected for the demonstrations. The large dataset uses data pulled from a public source
with dynamic values. Demonstrations using this dataset will show you how to identify trends and how to visualize them. Using
these raw datasets will make it easier to discuss general principles of analysis. This book will showcase 4 basic analysis
techniques to get started.
This book will also discuss modeling features and point to specific Microsoft Support Excel features used to model data. As in
previous chapters, some of these features will be Excel 2019 and Office 365 specific. Some features will be backwards
compatible and will only be mentioned as a method of modeling in PivotCharts.
Note :
This book will only label Excel 2016 and forward. For Excel 2013 and backwards, please refer to the Microsoft Support Excel
Features.
Finally, the last chapter will focus on reporting and sharing This chapter will go into detail about Excel functions and PivotTable
features that allow you to transform huge data sets into clear summary reports. As the final step in the process it will
encapsulate the previous steps such as modeling and contextual aspects of analysis. This chapter will also go into detail
vehicles of sharing your analysis and best practices.
Chapter 1: Version Compatibility
Backward Compatibility
Note:
If you are developing a solution for a client, inquire about your client’s version of Excel. Make sure that
your sheet will work on their version of Excel; especially so if they are using an older version of Excel.
Google Sheets is a popular product for spreadsheets among entrepreneurs. However, Google Sheets is
not fully transferable to Excel.
Backwards compatibility is critical for troubleshooting sheet problems. Backwards compatibility is the
ability of a piece of software to interact with previous versions. Microsoft files are backwards compatible,
meaning that an Excel 2013 file will work on a newer, 2019, Office 365 version of Excel. However, an
unmodified 2019 Office 365 file will not be able to work well on a 2013 version of Excel. The Office 365
file will have to be modified to work on the 2013 build of Excel. This can be done through saving the
Office 365 file as an 2013 Excel file. This solution can be less than ideal because 2013 Excel files are
restricted to only Excel 2013 formulas and features. The majority of the PivotTable features and functions
covered in this text are from the latest Excel 2019 build. Therefore, a 2019, Office 365 file with
PivotTables and extensive reporting will not be able to work on an Excel 2013 build.
Note: In Excel, “files” are also known as “workbooks.” They are called workbooks because each file can
have numerous sheets stored within them. This is a reference to accountants who kept their physical
spreadsheets in workbook binders. This distinction becomes important in the automation chapter when
you start consolidating different workbooks and sheets. You will need to know the difference in order to
instruct Excel properly .
Knowing how backwards compatibility works will inadvertently save you many hours of back and forth.
For example, let’s say you are a freelancer who developed an Excel sheet that calculates and reports
summaries of your client’s data. You used your subscription licensed, Office 365 version of Excel.
Your client downloads the sheet to install it into their outfit, but then reports that the product you
provided for them is totally inoperable . How might you begin troubleshooting? The very first step is to
determine what version of Excel your client is using. If you know that your client is trying to use a 2013
copy of Excel, the Office 365 sheet is unable to run on Excel 2013. While you can convert the file to Excel
2013, you may lose the very functionality that the client needed the Excel file to do.
Newer functions are not supported in older software builds of Excel. This forwards incompatibility is
embedded into Microsoft’s software model as a means to encourage businesses to update to the latest
build to take advantage of the newer, and usually more powerful, builds. Returning to our example, you
still may have some options depending on the sorts of features of the sheet. If your client only needs to
view the results of reports, you may be able to share the sheet using the Microsoft Live, web platform
version of Excel. We’ll discuss how to share sheets using the web platform with more specific examples
and functionality in later chapters.
For now, Microsoft has a backward compatibility scheme: newer versions of Excel will always be able to
load and render old Excel files, while older versions of Excel cannot handle new Excel file sheets. To
begin troubleshooting this issue, you need to check the license of your Excel.
To access the build and version of your Excel, perform the following steps:
“Account” Location
Be sure to scroll down the Excel: File screen to access the File>Account
screen. The Excel: File main screen was designed to be an aggregate of
information. There is a lot of information here about the file and other
files on your computer in some cases. You will have to scroll down and
navigate through to find the items you need.
Note:
You can use “ ...” on Excel 2016 and later.
Please remember that only 2016 and forward build functions and features will be labeled. While this book
may discuss features from 2013, they will not be labeled accordingly since they will work on all modern
builds of Excel.
The “Product Information” page allows you to see the license, who the license belongs to, and the current
version.
Microsoft has two licensing schemes: subscription and perpetual licenses. Due to the nature of perpetual
licenses, if you have one, you will constantly have to check your copy of Excel and compare it to the
latest Excel. Perpetual licenses, as the name suggests, is software that you own the license to forever.
These licenses are sufficient for home and student versions of Microsoft software. These licenses are
sometimes included with the purchase of a Microsoft Windows laptop computer. This can be a feasible
way to purchase Microsoft Office software as the average lifespan of a PC is around 3 to 5 years (Koble,
n.d.) .
However, one drawback of a perpetual license is that they do not get updated with new features. This may
be fine with software like Microsoft Word or Powerpoint. In contrast to other items in the suite, Microsoft
Excel is constantly getting upgraded through suggestions of beta test users (“Microsoft wants you to beta
test upcoming Office products and services | Windows Central,” n.d.) . Power users and beta testers will
then purchase a subscription-based license. A subscription-based license means that your product will be
upgraded with every new release. Microsoft offers its subscription software in a software suite marketed
as “Office 365”. In the year that this text is composed, both Office 365 and Excel 2019 have the same
features. The only difference between them in the current year is that the Excel 2019 refers to a 2019
build under a perpetual license. This current build will be referred to as the Excel 2019, Office 365 build .
Independently, Office 365 requires that you must pay a yearly fee. Subscriptions can become more
expensive than the perpetual licenses since new features are only released every 3 years or so. However,
Microsoft manages the software updates for you so that you don’t have to update your software every
three years. There are also other features offered in the Office 365 subscription license that benefits
power users, but this text will only focus on PivotTables and other features that make them a powerful
analysis tool.
As mentioned before, old features used in the analysis and demonstrations are backward compatible to
the Excel 2019, Office 365 build. These older features are also more friendly to old perpetual licenses. As
such, in this text, only newer features will be labeled accordingly.
Note : The Microsoft Office Support site labels older versions from 2013 and forward to help mitigate
“forwards incompatibility”. However, this is not a concern with an Office 365 subscription.
Chapter 2: Basic PivotTable Functions
When discussing software and how it can help us achieve a result, it is important to know the difference
between software features and software functionality. Software features are a list of tasks that the
software can do. Excel essentially is an extensive calculator that calculates items in real time cell by cell.
It uses various functions to achieve certain things, but these functions are just another feature of the
program.
Functionality, however, is how a feature can be utilized to achieve a certain result. We want Excel to
produce certain deliverables for us, such as reports on a given data set. Features like pivot tables,
functions, and slicers allow us to achieve the goal, but using these features is not the end goal.
Stepping back for a moment, the end goal of this text is to use these features in order to learn them. From
this perspective, this makes the concept of “functionality” ubiquitous. In other words, while learning
aspects of Excel, it may be difficult to grasp the concept of functionality right away because the end goal
is to explore features .
It is important to set this distinction between features versus functionality because it will help you deploy
Excel in more savvy ways. An Excel power user is not valuable for their knowledge of Excel features. The
power user is valuable because they know how to utilize those features to solve any problem presented to
them.
To overcome this instructional obscurity between features and functionality, this book deploys examples
with a “theoretical goal”. Specifically, each demonstration will detail the situational functionality of the
feature through providing an example. In this chapter, we will begin by covering new Excel 2019 formulas
can be used in calculating items within the pivot table.
As previously discussed, specific Office 365 Excel 2019 functions and features are not compatible with
older builds due to forwards incompatibility. Ergo, Excel files that use specific Office 365 Excel 2019
features will not be able to run on older builds. These Excel 2019 files can still be viewed on Microsoft
Office live online web client. We’ll discuss sharing and viewing files in detail in later chapters.
These formula functions are important for calculations within pivot tables. Formulas are functions that
are called using the “ ” sign that allow you to do calculations and other data manipulations. Each
function has a specific syntax, or a programmed configuration where you enter operands for the function
to operate on. They can also be used as expressions. Expressions are formulas that test if a given
condition is true.
Note: The Microsoft Office Support site has a living catalogue of functions with their build labeled. As of
this writing, they only have Office 365 until 2010 labeled, with no 2019. It can be assumed that Office 365
labeled formulas will eventually be categorized as Excel 2019 once the Office Support website updates.
You can view the catalogue at their website.
Here are some examples of new Office 365 Excel 2019 functions:
In the past, to test conditions for several scenarios, you had to write a complicated nested IF formula.
This new formula allows you to run several logical tests as well as specify the value of each test if the test
is true (“IFS function,” n.d.) .
While this function can take up to 127 arguments, the purpose of the function was to reduce large logical
nested formulas. Creating a large IFS train of logical tests defeats this purpose. For responsive sheets
where data is constantly changing, a function may be more appropriate.
: When given several ranges, returns the maximum value among them specified by multiple
expressions.
: Function within the math and trig functions that, when given several ranges, returns the sum
of values among them specified by multiple expressions.
: When given several ranges, returns the arithmetic mean among them that meet multiple
specified criteria.
: When given several ranges, counts each cell that meets multiple specified criteria. This
function also uses arguments such as the question mark ( ) and the asterisk ( ).
In programming, switch functions are used to control the operations of program using a single
expression. In Excel, the formula would be used to display a specific result based on the data
provided. This is helpful for creating dynamic and adaptable pivottables and reports. Therefore, the
function is very useful for automating reports, which we will talk about at length in the next
chapter.
Here is the syntax for the formula:
This function evaluates an expression against a list of values and returns an indicated result (“SWITCH
function,” n.d.) .
The various functions and add more functionality to Excel for analysis and modeling in
particular, allowing you to seamlessly add more automated decision making to your sheets. These
functions are the most powerful in pivottables because they allow you to call on and calculate data more
seamlessly then in previous Excel builds.
Some other functions introduced in Excel 2019 were designed to make text handling easier. is
an updated version of the old function. This function has the following syntax:
It allows you to combine strings of text from various ranges, however, it does not include the delimiter.
For example the formula:
Would produce:
In previous builds of Excel, in order to handle text, delimiters had to be added manually. Microsoft
developed for Excel 2019 to add delimiters more quickly. The syntax for is as
follows:
The argument is required and indicates whether or not you want the function to ignore
empty cells. This is particularly important when using to join a range of cells. Returning to
our previous example, we can make the phrase more readable by indicating a delimiter.
Would produce:
Returning to our conversation about functionality, these text handling functions are useful for automating
labeling in PivotTables. Charts and tables must be labeled accurately. Using , or for
longer complicated ranges of text, allows you to also automate labeling. We will also discuss best
modeling and data reporting practices in later chapters.
One powerful feature of excel is using historical data to predict future values. Forecasting functions are
used to predict future values (“Forecasting functions ( reference),” n.d.) . There are several functions that
use different algorithms for different applications:
: Function that predicts a single future value given historical data using the AAA version
of the Exponential Smoothing (ETS) algorithm.
: Function that predicts a single future value given an independent value and
historical data using linear (X,Y) regression. Independent values usually occur in units of time.
: Function that returns a confidence interval for a forecast value at a specified
target date given historical data.
: Function that returns one of eight statistical parameters, metrics, or step sizes
given historical data. You can learn more about the statistical parameters available for this function at the
Microsoft Office Support website (“FORECAST.ETS.STAT function,” n.d.) .
This has applications in the financial sector for predicting the sales price of products or consumer trends.
These functions can also be used to mathematically investigate confidence level and statistical aspects
such as data aggregation step size, how the data collasacques into steps. As of now, these functions seem
to only be available to Office 365 subscribers. However, the forecast functions are available in Excel web
version .
Generally, all the new Excel 2019 formulas simplify certain computations including tasks that would have
required nested functions and text handling. The forecast functions are powerful functions that give you
access to data prediction and statistics. However, as we discussed, relying on these new formulas for
computations will make it difficult to view in older versions of Excel.
Note : New formulas can still be viewed in the web version. This can be a work around solution for clients
with older, perpetual licenses. However, these formulas can only be edited or manipulated with desktop
build of Office 365 Excel 2019.
These functions can be deployed inside of PivotTables to control the content of the widgets. Most
PivotTable controls can only be viewed in the web version. To implement the pivottables you need a
desktop build of Excel.
Enabling Power Pivot Add-in: New Pivot Table Controls on the Desktop
Version
Power pivot is the PivotTable wizard for analysis. It is only available for Office 365 subscription licenses,
the 2019 perpetual licenses, and the professional plus perpetual licenses (“Where is Power Pivot?,” n.d.) .
It is only available on Windows. You also need to have these desktop versions to use the wizard, however,
it is not enabled by default .
To enable Power Pivot for the first time you must initialize the Power Pivot add-in. To do this you must
(“Start the Power Pivot add-in for Excel,” n.d.) :
Note : Power Pivot is only available on Windows builds of Excel, including Office 365 subscription
products. As of this writing, Mac users do not have access to the Power Pivot add-in.
Excel Main Menu
This menu is only accessible when you open up an Excel file.
1. Go to
“Options” Location
Be sure to scroll down the Excel: File screen to access the File>Options
screen. The Excel: File main screen was designed to be an aggregate of
information, therefore, there is a lot of information here about the file and
other files on your computer in some cases. This can make it difficult to
find the information you need.
You will have to scroll down and navigate to the Options button to access
the options window.
3. Check the Microsoft Office Power Pivot box and click OK.
Now you will be able to access the Power Pivot add-in from the main menu ribbon:
Excel Main Menu with the Power Pivot Ribbon
Clicking “OK” will close the “COM Add-ins” box and instantly ad the
Power Pivot Ribbon. These items are disabled until you generate and
select pivottables to manage .
To maintain performance, Excel is programmed to refresh itself if there is a problem with the program. As
a result, all Add-ins may disappear. Specifically, this may cause your Power Pivot ribbon to disappear if
Excel closes unexpectedly while the Power Pivot window is opened. Restoring Power Pivot to the menu is
covered in the troubleshooting section.
Looking at the Power Pivot ribbon, you will notice that the features are disabled. You must have at least
one PivotTable for it to be activated. For many of the features, you must have several PivotTables to make
the most out of Power Pivot features. Let’s start with creating and building a PivotTable of average usual
hours worked by sex.
This selects the whole table. To isolate the selection to the Recorded
Variables, hold:
Note: Creating a named range here is helpful for reducing table scrolling time. A “named
range” is a variable you can set in Excel that stands for a range. This sheet already has a
“Recorded_Variables” range, but it does not include our target rows and columns. To create a
correct range, once you’ve selected our target range go to:
A dialogue box will pop up. Name it “Pivot_Table_Values” and it should refer to:
2. Go to
4. Build the Pivot Table with the following: Average of Usual Hours Worked and Sex
Note: Using is the safest way to save your work. This is because navigating
through the graphical user interface (GUI) features such as the Excel:File window can cause
hiccups. This is especially true in resource intensive programs like most Microsoft products,
given our experience with the Excel:File interface. Using keyboard shortcuts to save your files
reduces computations in the program, thus decreasing the risk of program crashes.
To access “Save As” use or on some newer laptops. This opens a less
intensive save-as prompt window.
We will be using this pivottable to demonstrate the Excel 2019 controls in the next chapter.
The EastNorthCentralFTWorkers workbook has a Q&A at the end of the book that includes some
exercises and demonstrations for the course. These exercises and demonstrations are, of course, specific
to the econometrics course. One example is the stark difference between the total average of usual hours
worked and the simple average. These are statistic questions that we will not focus on here, but we will
create a bar graph showing the demographical data in later chapters .
This chapter will focus on how to manipulate the data on the fly using the pivot table fields. Our first
PivotTable entitled “Average of Usual Hours Worked” only has two variables. Let’s begin by creating
another, more dynamic pivot table called “Average Yearly Earnings broken down by Sex and Education.”
The steps will be similar to the previous section.
2. Go to
3. Create the new PivotTable in Summary Stats
4. Build the Pivot Table with the following: Average Yearly Earnings broken down by Education
in the rows and Sex in the columns
Building a PivotTable using drag-and-drop features
Office 365 Excel 2019 PivotTable defaults allow you to drag and drop
fields as well. Click on the field in the list and drag them to the section
you want. It is better to start with (1) rows, (2) columns and then (3)
values.
In the EastNorthCentralFTWorkers workbook, the econometric students were asked to create a pivot
table comparing the Count, Count Num, Average and Sum of the variable “Usual Weekly Earnings.”
These are default calculation functions built into PivotTable Field manager’s “Value Field Settings.” This
table will help them compare the counts of data on the original dataset. This is the perfect opportunity to
learn how to manipulate tables while learning how pivot tables work with real datasets.
The analysis calls for a pivottable with “Sex” in the rows with various calculations of “Usually Weekly
Earnings” as the values. Since our first table already has Sex in its rows, we will modify this table for this
analysis. To change the values, take the following steps:
5. Drag and drop another instance of “Usual Weekly Earnings” into the section
6. Click the drop-down arrow, go to
and select Count Numbers
Note: On the Value Field Settings dialogue box, scrolling through, you should notice that
there are various default calculations here. These are various statistical items that can be
used to model data. Excel included these stats in the wizard as a guide for analysis. Going to
the “Show Values As” tab you have the option to change the items to calculate various
percentages of. This is good for showing rate of increase on bar graphs or for building pie
charts. We will talk about analysis and modeling in later chapters.
7. Change the Custom Name field to “Count Num of Usual Weekly Earnings”
Target for Count Num of Usual Weekly Earnings and Naming Conventions
Looking at the pivottable at this point, the field names may seem verbose.
It is best practice to have descriptive labels. This makes it easier for
observers to comprehend the data. Further, it makes it easier to pass
these labels on to your charts and graphs, automating the process. We’ll
discuss automation in later chapters. While you are at this dialogue box,
be sure to change the number format to currency for the appropriate
value sets. “Usual Weekly Earnings” are expected to be in dollars.
Target for Pivot Table showing Count, Count Num, Average and Sum for
Usual Weekly Earnings broken down by Sex.
The image above depicts the final pivot table for the comparison exercise.
You should notice that all of the values have been formatted appropriately.
Proper number formatting helps with automation and creating models
later on. In the meantime, how might you have the pivottable report on
the percentage of individuals reporting weekly earnings in the dataset?
Hint: You will need to drag-and drop another instance of “Usual Weekly
Reportings” and use the
to calculate.
The majority of the value of pivottables is being able to interact with large datasets in various ways. To
interact with data you must be on an appropriate platform for data handling, particularly in our case due
to the forwards incompatibility of Excel files. Recall our conversation about compatibility. Office 365
Excel 2019 files cannot run on older, perpetual licenses of Excel. This may cause conflict for colleagues or
clients using older builds of Excel who want to explore the data. This can be circumvented by using
Microsoft’s Excel for the web client .
In order to use Excel for the web, you must have a Microsoft live account. If you have a subscription
license, OneDrive and all of its sharing capabilities are included in the subscription suite. If you happen to
have an Excel 2019 perpetual license, you must have a Microsoft live online account. Once you have an
account, follow these steps to host your file onto your Onedrive account:
2. If you haven’t saved your file to OneDrive, Microsoft will prompt you to save here
3. To access your file on Excel for the web click “Get a sharing link”
There are two modes of Excel for the web: viewing, also listed as “Read Only” mode, and editing. Both
come with their pros and cons, which we will discuss in the following sections.
Read only mode is the default mode for individuals who are not signed-in. You can also send your client
Read Only Mode Excel for the Web environments by selecting:
Share Sidebar: Get a Sharing Link, Read Only Mode
It is advised to use Read/View only mode links when possible. Microsoft
uses Sharepoint as its backend powering OneDrive. As a result, it’s not as
flexible with various people making edits to a file from different locations.
It can cause file conflicts that result in various instances of a file in the
OneDrive. Thus, the workaround is to only share Read-Only files. You have
the capability to manipulate pivot tables in Read-Only files .
Using Read-Only mode helps protect the original data of the sheet. Viewers can still manipulate pivot
tables by clicking on the pivottable and using PivotTable Fields, including dragging and dropping fields.
Read-Only Mode Demonstration: Drag and Drop
Excel for web in Read-Only mode lets you drag and drop and manipulate
PivotTable fields without disrupting the tables. This screenshot depicts a
change in our first PivotTable, introducing “Months in Sample” as a filter
variable for the pivottable. This view is ideal because clients can
manipulative the data without destroying the pivottable structure. At any
time, they can reset the pivottable view by refreshing the page.
The PivotTable Fields sidebar is available by toggling the “Field List”
button to the left .
Another major benefit of Read-Only mode is that it’s automatic for people who do not have a OneDrive
account. No sign in is necessary to see this mode, even for people who accidently obtained an editing link.
This is for perfect for live presentations where you may have to do simple demonstrations labs of data
analysis. This is excellent for consultants who have to explain their work.
Editing Mode
You also have the option of sharing an editing file. This is good for teams who have an aggregate amount
of data, especially for adding additional datasets to pivottable analysis. As aforementioned, having files in
Editing Mode carries some risk. The sharepoint system can potentially add various files from various
sources due to version mismanagement in the system. However, this does help with tracking file versions.
Note:
When sharing editing links, it is always advised to save a seperate file in case of editing
mishaps, such as corruption due to a crash. While previous files can be restored from the
cloud, it is better to err on the side of caution.
Office 356 Excel 2019 has some features that are not yet supported on Excel for Web. Therefore, after
signing in, it will inform you that you must edit a copy of the workbook without the Office 365 Excel 2019
features.
Accessing Editing Mode
Excel for web in Editing mode requires that you sign in to your Microsoft
Account. After signing in, clicking the “Edit in Browser” drop-down menu
brings you to this prompt, requesting that you edit a copy in Excel for
web.
Going to
gives you the option to open the file locally on your computer in your
desktop build of Excel. However, this isn’t a viable way to share your file
to your clients or colleagues. Your clients and colleagues would need to
have an Office 365 Excel 2019 build in order to open the file. This is also
counter intuitive to sharing the file over a uniform platform .
Ultimately, in editing mode, you will have to deal with several versions of the same file. To keep down file
management, it is better to only share Read-Only files. If you must use a file management scheme, we
suggest labeling your files with the date that they were edited. For example, if today’s date was 10-14-18
and you just saved an instance of our example file with your work, then the name of the file would be
.
Chapter 3: Automation and Efficiency
While automating repetitive tasks can take a lot of time, in the long run it saves time. Time is saved
particularly because it reduces the chance of human error, simple mistakes that take a lot of time to find
and resolve. Therefore, it is usually worth the time to set up a process that will be used over and over
again. Ultimately, time saved is important for increasing productivity.
This chapter will cover Excel specific keyboard shortcuts for reducing computational time. These
keyboard shortcuts help streamline your working sessions by reducing the time you spend looking for
specific functions. These keyboard shortcuts can also be deployed in macro. This chapter will also cover
some light coding scenarios.
Modern programming uses a concept called “modularization.” To apply modular coding means that every
function within the program is focused on addressing one concern. If you consider Excel, all functions in
Excel use this concept. For example, executes conditional statements given several qualifiers.
combines and , however, it simplifies conditional summing into one function for
users .
Users can write programs and create custom functions that combine aspects of functions to do repetitive
tasks. Deploying this concept for creating macros, you should create custom functions that achieve a
specific goal and can be reused. The ability to create modular macros is a very valuable skill for Excel
power users.
Note: Same with compatibility, creating macros that deploy certain features will make it difficult to carry
over your set up to older builds of Excel. In order to make macros that can be used across a system, be
sure to use backwards compatible functions, i.e. functions that do not use Office 365 Excel 2019 specific
functions.
Learning and deploying keyboard shortcuts in your interactions with Excel will help with productivity and
reduce work time. We have sorted the shortcuts into two categories: navigation, consolidation, and
general shortcuts. We will display the shortcuts for PC and Mac when available.
Using pivot tables, you can extract information and create perspectives from massive datasets. Using
these shortcut keys makes it easier to navigate between multiple tables and control data points. Following
are the shortcut keys for Windows and Mac (“Keyboard shortcuts in Excel,” n.d.) .
The Pivot Table wizard allows you to consolidate data from different sheets and different workbook files
in one place. Specifically for Microsoft Excel for Mac, the consolidation ranges feature was removed. It
can still be accessed using the keyboard shortcut (“Consolidate multiple data sources in a PivotTable,”
n.d.) .
To explore this feature, we will have to create another data file. To do this, we will save a copy of
as . This will ensure that the data are
in similar shapes and formats for the pivottable to analyze. Recall the data differentiator, “Usual Weekly
Earnings”. Some of the individuals do not report weekly data. This was determined from the “Original
Variables” on the right side of the data sheet. These points were cleaned and organized according to the
supplied code book. The “Recorded Variables” data on the right side is the interpreted census data, which
was cleaned and modified to be used in pivottables.
We will be be modifying “Usual Weekly Earnings” by modifying the function into an function.
This is a simple way of adding an additional condition that should produce moderately more reported
weekly earnings. It will also give you more practice with . This will make a mildly altered dataset
that we can compare with the original.
To create a modified data file, take the following steps:
1. Go to
2. Name this new file
3. In the new file, navigate to the “Data” sheet
4. Go to the “Usual Weekly Earnings” column, cell
5. Change the formula to:
6. After computing , copy-paste to the rest of the column to randomize the data.
7. Go to the Summary Stats sheet and click on one of the pivot tables
8. Update the tables to reflect this change by going to:
9. Save your progress and note the location of the modified file.
Now we can use Multiple Consolidation Ranges to compare these two files.
1. Go back to the original file and go to the Summary Stats sheet
2. Open the PivotTable Wizard press:
For Windows:
For Mac:
Note:
Pivottables cannot overlap. Be sure to have ample space for your pivottable. Otherwise, the
Wizard will tell you there is no room for your table, close, and you will be forced to repeat the
process all over again.
You may have to move around pivot tables by selecting them and going to:
8. Click Finish
Note:
If you want to edit the source of a consolidated pivot table, you must use the shortcut keys to
open the pivottable wizard again.
For Windows:
For Mac:
Navigation shortcuts reduce the time spent on searching for different buttons and tasks. You must learn
these shortcuts to incorporate these shortcuts into your computations. Typically, if they save you time,
you will naturally use them, like the traditional for copy-paste in
Windows.
Here is a table of keyboard shortcuts and their function in Power Pivot (“Power Pivot keyboard shortcuts
and accessibility—Office Support,” n.d.) .
Note : Power Pivot is only available in Windows desktop builds. Therefore, this table is only for Windows
keyboard shortcuts.
Power users of Excel know how to use macros to handle repetitive tasks. Macros are small, custom
programs that you can execute in Excel. The programs are written in VBA (Visual Basic for Applications).
Note: In many online resources macros and VBA are used interchangeably. Macros are the
executable script of instructions. VBA is the platform used to write a macro.
In order to use a macro, you must:
The ribbon must be enabled on the main tabs menu. In order to achieve this in Windows do the following
steps:
1. Go to
Note: Most actions start here. Remember that you can only access
this menu when you have an active file opened.
The Developer ribbon should appear. This ribbon gives you a variety of tools for managing your Excel
sheet, including Active X controls. However, your file must be macro-enabled to use these tools due to the
security concerns discussed prior.
Developer Ribbon
This screenshot depicts the resulting Developer ribbon. There are several
advanced tools used to automate your Microsoft outfit across several of
their platforms. We will be focusing only on building and managing
macros.
The steps are similar in Mac OS Excel 2019 builds. You can access the VBA compiler on a Mac through:
or
The macro manager can be accessed on Mac using:
This text focuses on pivottables; therefore, we will be discussing common pivottable oriented macros. To
begin using VBA you must first learn this language syntax. Consider the following Pivot Table code pulled
from a macro demonstration resource (“The VBA Guide To Excel Pivot Tables,” n.d.) .
Code Snippet: Create a Pivot Table
Screenshot of the code in VBA. In many cases you will be modifying code
pulled from Excel help sites. To use these effectively, you should learn how
to read them.
This is the calling function for the macro. This is important when deploying macro in other macro. All
functions take the form of “name”(arguments), if the function takes any arguments. This should be
familiar because this is how we call formula functions in Excel.
These are comments. Comments are indicated with a backtick and are not compiled with the rest of the
code. They are used to include notes in the code to make reading the code comprehensible. The
programmer of the macro was thorough enough to explain each action using comments.
This is where the variables of the program are declared. These variables are used to carry out the
operations of the program. This section is useful in identifying what parts of the program to edit because
it also tells you the type of variable. Thus, if you wanted to change some aspect of the program, you would
begin here.
After the declaration of variables is the main body of the program, this is where all of the instructions are
listed. This programmer explained each section of code and what it does. Some instructions you would
want to change are line 12 and line 18 , as they determine the range used to create a pivot table and
where the resulting pivot table will populate. In this case, this macro operates only on the active
worksheet in the window.
Let’s modify our example code for our purposes. Deploying this macro will create a new pivottable in one
click from a named range.
1. Save a copy of the workbook as macro enabled workbook with the name:
Note: Actions executed by macros are not saved in the undo-redo cache. This means that any
action a macro executes cannot be undone. Further, macro-enabled files cannot be autosaved.
This makes it difficult to obtain recent past versions of the file. If you are testing and
developing macros, it is best practice to always save a separate macro-enabled file.
3. Type in into the macro box and click Create . This will start an instance
of VBA in a new window
4. Copy the following into VBA:
Sub CreatePivotTable()
Dim sht As Worksheet
Dim pvtCache As PivotCache
Dim pvt As PivotTable
Dim StartPvt As String
Dim SrcData As String
5. Click save and to execute your macro, click the small green triangle to run
6. After the Macro executes, it will create a new sheet and a new pivot table that you can
populate manually.
Target: Macro Generated PivotTable
This is a screenshot of the new sheet generated by
. This macro allows us to automatically create
pivottable with a keyboard shortcut instead of manually selecting items
each time. This is particularly useful for repetitive reports that use the
same, named ranges every time .
Following are some similar pivottable automation codes that automate with pivottable management.
Create these macros on this file and explore them yourself (“The VBA Guide To Excel Pivot Tables,” n.d.) :
Sub DeletePivotTable()
'PURPOSE: How to delete a specific Pivot Table
'SOURCE: www.TheSpreadsheetGuru.com
End Sub
Note: The macro requires that you have your pivottables named. You can
name your pivot tables by selecting them and going to:
Delete All Pivot Tables
Sub DeleteAllPivotTables()
'PURPOSE: Delete all Pivot Tables in your Workbook
'SOURCE: www.TheSpreadsheetGuru.com
End Sub
This code is useful for cleaning up workbooks after your analysis. However, it is ill advised to assign
and similar macros like it to keyboard shortcut. Actions by macro cannot
be undone and this macro can potentially destroy your work.
Before creating macros that automate fields you must have an understanding of what fields are.
Pivottable fields are populated when you create a pivottable from a range. Excel recognizes fields to
manipulate them, usually the top row of a column that describes the data below as in our example. Recall
from the multiple ranges consolidation that the old pivot table wizard only recognizes up to 4 fields.
Conversely, you can program macros to manage fields if the data is going to have the same structure.
Recall from earlier in the chapter our conversation about modularization. Having a modular macro means
that each task is handled by only one macro. Calling these macro in a full script, a list macro executed
together, you can potentially create a pivottable with a few keyboard shortcuts in a few seconds.
Logically in your script, after executing , you can manage the fields with macros and
generate a report in seconds. Let’s look at . Similar to the macro,
this macro must be edited for the context of your dataset. Let’s look at a numbered version of the code to
analyze it.
Sub Adding_PivotFields()
'PURPOSE: Show how to add various Pivot Fields to Pivot Table
'SOURCE: www.TheSpreadsheetGuru.com
End Sub
Note:
In this modified code we kept the old lines and commented them out. This is good for keeping
track of changes in your macros. However, this can lead to a lot of junk code in your macros.
Once you are done developing your macros, clean up your comments. Make sure the
comments are clear and describe each part of the code.
To execute this code, return to the newly generated sheet with the pivottable entitled .
Go to: and click the Run button. This will
populate the empty table.
This code combines some of the other operators and arguments at the SpreadsheetGuru’s list of common
macro codes. Following are some similar pivottable field management macros. Study them on your own
and use them to modify your pivottables:
Add Calculated Pivot Fields
Sub AddCalculatedField()
'PURPOSE: Add a calculated field to a pivot table
'SOURCE: www.TheSpreadsheetGuru.com
End Sub
Sub AddValuesField()
'PURPOSE: Add A Values Field to a Pivot Table
'SOURCE: www.TheSpreadsheetGuru.com
pf = " Salaries"
pf_Name = "Sum of Salaries"
End Sub
Pivottables allow you to view data in different ways, which enables you to analyze and report on large
amounts of data in a meaningful way. Analysis, therefore, is broken down into 3 steps:
Note:
Slicers are only available on the desktop version. Therefore, they can only be viewed in Excel
for the web.
Slicers allow you to filter table and pivot table data. Most importantly, slicers clearly label filtered states,
making the tables more presentable in reports. To use slicers for pivottables the following conditions
must be met (“Use slicers to filter data—Office Support,” n.d.) :
Note:
In order to save our example file, Excel put the file into compatibility mode. This is done for
files that may be viewed on different machines. To get your file out of compatibility mode you
must go to
After all these conditions are met, the best way to see the value of slicers is to have multiple PivotTables.
Let’s return to our large dataset example. The Q&A asks for 3 different pivot tables. Let’s rearrange our
Summary Stats page into a report by state.
Note:
This is also a good time to name each table. The suggested names are:
Keep track of these names. This is how the slicer will control the pivottables
4. Click on State
5. Select the slicer to make the Slicer Ribbon appear and navigate to
Note:
All pivot tables have a filter section. However, this filter section is
limited to the individual pivottable. Using slicers allow you to
deploy multiple pivot tables in interactive reports.
7. Save your progress
Similar to filters with regular Excel spreadsheets, slicers allow you to slice data into various views
instantly. Manipulating the data helps with finding new perspectives.
Comparison of Wisconsin and Ohio Reports
Looking at the State data side by side, you can see that there is a gap for
Females with 9 years of education in Wisconsin. Recall our misleading
scatter plot example. How might you represent this gap in the data?
Further, consider the quality of the data. Is this gap due to less rigorous
sample size? What portion of the report would support this assertion?
Analysis can be used to model results in a way that is both visually attractive and effective. Recall our
conversation about analysis and creating new perspectives. These perspectives are more easily
discovered when visualized.
Chapter 5: Investigative Modeling using Pivot Charts
If you were paying attention, you would notice that we only discussed two aspects of analysis in chapter
4, providing context and creation. However, in the overview of analysis , we stated that there were 3 steps
in the process:
When using modeling to investigate data, a chart or a graph is more adept at answering “how” and “why”
questions. For example, consider our large data set. This dataset can technically answer all the other non-
analysis questions on its own with the help of a few filters and a formula. For example:
“Who”
Do men who have greater than 12 years of education make more than [Y] dollars?
“Where”
Where are women least likely to make less than [Y] dollars?
“When ”
Given the month in sample, when do the highest ranges occur?
“What”
What is the lowest earning in each state?
However, if we were to generate a few linear regressions over an (X,Y) plane, then we could answer
questions such as:
“How do years of education [X] determine yearly salary [Y] for females”?
If in our theoretical graph the line goes [up], it would indicate that [Y] had an increase over the years of
[X]. This is the value that modeling brings to analysis: it provides trends that tell us “how” things happen
and may even glean “why” things happen with a little more context. Ergo, charts tracking several items
are more prepared to answer “why” since we can compare the axises to each other and comment on
causality. However, you must be careful with this line of questioning in statistics. More context is usually
needed to confirm acertations of “why,” usually confirming with contextual research such as interviews.
Acertainations gleaned from statistical analysis are still useful because they can inform a beginning
hypothesis for you to test. Even more importantly, there are rules in modeling to ensure that presented
data can give you the most accurate acertaintions to test.
Charts that are incorrectly modeled can skew data and, therefore, can skew insights. This can be
disastrous for analysts, since they can easily come to the wrong conclusions. When we move on to
presenting our data, being a data analyst requires a level of integrity: charts can visually skew data for
audiences as well. Analysts who use this knowledge to purposefully skew charts to confirm their
worldview lack scientific integrity. Knowing these modeling rules can help you recognize human error as
well as purposeful meddling. Following these rules ensures accurate modeling:
1. Use an expected range on the independent axis. The independent axis is the “X” axis on
charts. This axis usually represents units of time or some other independent variable. Always
start the graph at 0 or at “time-zero” as the marked beginning of your dataset. The x-axis
should always be increasing. Do not “break” the independent axis, i.e. you must have a
continuous number line starting from zero. If you have a large gap in the [Y] axis from your
starting point, instead, use a rate that accurately reflects the data. Excel’s charts and graphs
do this automatically for you.
2. Use an expected range on the dependent axis. Dependent axis is usually the item you’re
measuring or topic of the graph. Don’t ‘break’ the dependent axis. Use a rate that accurately
reflects the data.
Creating Visualizations
In the Q&A, the course asks students to create a bar graph and a demographics table. However, these
require variables outside of our focus. For now, we will create a two visualizations comparing the state of
Wisconsin and the state of Ohio.
Note: The slicer has the added benefit of reducing the amount of work needed to generate two
separate graphs. This is because the slicer also controls charts and graphs generated using
the tables. You can switch between views by toggling the slicer.
3. Select OK
A large part of modeling is reporting on data. In the last chapter we covered modeling as an investigative
tool in analysis. Rendering these models accurately can give you visual insight into how and why data
behaves. This creates a model so you can analyze the data properly.
However, simply copying and pasting your models for presentation is not enough. To report your findings
to others requires additional steps, including arranging models and data in a meaningful way to convey
your findings. Many of these steps are dependent on your client, but the majority of these steps involve
providing context for your visualizations. This context and composition is important for pointing people to
the correct conclusions. Take, for example, our previous example studying the different perspectives of
the data broken down by state. By including the State slicer and connecting it to all of the created
pivottables, we have created a dynamic dashboard that can be toggled between all 5 states.
In the previous section about analysis we discussed at length the need for “how” and “why” questions to
complete analysis. With these detailed charts and graphs, we can easily postulate about why the aspect of
the data occurs. For example, one possible question inspired by the Wisconsin pivottable was “Why is
there a gap in the data for females with only 9 years of education?” Looking at the total count of data for
Wisconsin, one can hypothesize that it is due to the small sample size in comparison with another state
like Ohio. Just looking at the total values, Ohio had roughly three times as many females reporting than
Wisconsin. Comparing 200 indivuals to 600, that is a difference of about 400 indivuals.
However, looking at the pivottables, it is difficult to make a conclusion about trends. It is only when the
data is properly visualized that we can come to some conclusions. Datasets with a small population size
tend to have chaotic trends. This is because there are fewer individual data points that could lend
themselves to a smooth trend. Therefore, it is difficult to identify a curve or a pattern with smaller
population sizes. Going by this reasoning, we would expect that Wisconsin would have no identifiable
shapes or trends.
With this hypothesis and comparing it to the actual data, the opposite seems to be true. Wisconsin,
despite the lack of females in one of its data points, has a more identifiable shape. The bars form a rolling
hill shape indicating a healthy dataset. There may be no data at this datapoint because of how narrowly
the chart is broken down. There simply may have been no females with only 9 years of education who
reported a salary.
Ohio, in contrast, has one large outlier, particularly at 9 years of education. There could be several
reasons for this, including industry trends within Ohio. For example, there could be a large push for high
paying positions that don’t require a college degree, such as union jobs where people progress to higher
pay grades on seniority. Someone who started working earlier and did not attend college would,
therefore, make more money in this scenario. The only way to confirm this is through investigative
research such as interviews, or looking at additional variables such as age.
One possible approach to research is to get more data. This dataset was originally collected in March
1999. There have been several censuses conducted since then. Further, getting and cleaning the data
would be easy with the skills we have practiced. After converting the worksheet to a template, we can
generate recorded variables using the formulas already in the sheet. Further, you can build macros to
generate pivot tables since the data will be structured in the same way. Finally, you could build dynamic
self-service reporting systems through macro, even comparing the different census datasets with one
another.
Chapter 6: Troubleshooting
This final chapter will cover troubleshooting scenarios. Thesce solutions are indexed by the scenarios that
they address. This chapter will also refer to the associated activity or demonstration, which is good for
practicing work arounds.
Sometimes your Add-ins may disappear if Excel restarts itself. To restore the Power Pivot Ribbon in your
main menu, follow this step by step solution from Microsoft (“Start the Power Pivot add-in for Excel,”
n.d.) .
1. Go to
“Options” Location
Be sure to scroll down the Excel: File screen to access the File>Options
screen. The Excel: File main screen was designed to be an aggregate of
information, therefore, there is a lot of information here about the file and
other files on your computer in some cases. This can make it difficult to
find the information you need.
You will have to scroll down and navigate to the Options button to access
the options window.
Scenario 2: Ribbon is not restored or disappears from Excel after Enabling Power
Pivot
Note: This solution requires edits to the system Registry. Many outfits require administrative
privileges to edit the Registry, since it can affect your computer’s entire operating system.
You may have to get your office admin to use this solution.
If you have the privileges to make the edits yourself, take caution! Do not make any changes
to the Registry without creating a restoration point first! This can be done through (“How to
Create a System Restore Point in Windows 7,” n.d.) :
1.
2. Click on the link
3. In the “System Protection” Dialogue box, click the tab
4. Click on button and follow the prompts
If the Power Pivot ribbon still doesn’t appear, you will have to access the Registry Editor and make
changes there. Follow these steps (“Start the Power Pivot add- in for Excel,” n.d.) :
Note: Remember that the Power Pivot Add-in is only available for Windows desktop builds of
Excel.
2. Copy:
into the address bar at the top of the Registry Editor.
Be sure that there are no ellipses. “[...]”
3. On the folder navigation menu on the left hand side, PowerPivotExcelAddin folder should
be highlighted. the folder.
4. Copy:
into the address bar at the top
of the Registry Editor. Be sure that there are no spaces.
or you
can copy in the root address depicted in the address bar. If you choose to
copy in the root, the Register Key is case sensitive. The root must be
copied verbatim.
The Slicers is an Office 365 Excel 2019 feature that allows you to dynamically change the data. We
covered how to deploy them in chapter about analysis in the “Creating: Discovering and validating new
perspectives on the data” section. This troubleshooting section will cover problems with adding slicers.
Recall from chapter 1 that all modern Excel products are controlled by their licenses. For those who have
a subscription service, their subscription controls what features their build of Excel will allow them to
have. This same subscription based service also monitors the types of files opened on Excel. While you
can open and operate an older Excel file in Office 365 Excel 2019, that file will be placed in compatibility
mode to ensure the best experience. As an effect, files in compatibility mode won’t have access to some
features. One of those features is the advanced slicer and filter features.
To gain access to the slicer feature your file must not be in compatibility mode. Here are the steps for
getting your file out of compatibility mode:
If you still don’t have slicers enabled, revisit the conditions for using slicers. For your convenience, the 4
conditions were:
This dialogue box may pop up after going to or while you are trying to
segment your pivottables.
Existing Connections Dialogue Box
Screenshot of the dialogue box that propagates when no table or pivot
table is selected. This is a verbose error that is trying to communicate a
lack of a target.
This error occurs when no table or pivottable is targeted. The solution is to close the window and select a
pivot table or table.
Conclusion
This text follows the logical steps from getting started to finalizing a report. First and foremost, you must
consider Excel versions and compatibility. This often makes the difference between a freelance data entry
and consulting analyst position. Excel files are backwards compatible, meaning that newer builds of Excel
will always be able to execute older Excel files. However, Microsoft uses a forwards incompatibility
model, and older perpetual licenses are not able to execute newer Excel files. This is important because
your client will not be able to review the delivered pivot tables embedded in an Office 365 Excel 2019 file
on their old perpetual licensed build. One immediate work around is to present your build on Excel for the
web, which is capable of displaying all Excel 2019 features.
This text also overviewed the new Office 365 Excel 2019 functions, which were engineered to reduce
expression complexity. These conditional statements and decision based switching functions add a
powerful tool for automation outside of VBA. Deploying these functions in pivottables also make the Excel
for the web work around more feasible, since Excel for web does not have access to macro (“Work with
VBA macros in Excel for the web,” n.d.) . It is also good since many corporate outfits either limit or ban
the use of macro-enabled files for security. Learning how to create macros in VBA is still an excellent
“Excel power-user” skill, since it saves time in research and development outfits where macro enabled
files are more tolerated. Using modular macros that handle repetitive analytical and report generating
tasks is the best practice for using macros. Having one dedicated macro enabled machine for creating
reports is also best practice for security in your own outfit.
We also overviewed the analysis process for large datasets, which includes investigative modeling. Of
course, the approach of modeling will depend on the nature of the data, but the analysis process is
universal for all projects using pivot tables:
1. Making more intelligible views of large data sets through aggregation into pivottables
2. Using modeling to investigate how the data trends and postulate why it trends with several
views of the data
3. Creating new perspectives of viewing the data informed by trends and educated ascertations
Finally, we discussed best practices for reporting data and Excel features that assist with implementing
these best practices. Many wizards and prompts in Excel have best practices built in, such as labeling and
improved text handling using in Office 365 Excel 2019. Throughout the text, we have shared
notes about Excel feature compatibility and workarounds for presenting Excel files in dated perpetual
outfits. In general, data and reports can be viewed in Excel for the web. A desktop build of Excel is
required to edit pivottables and reports.
Beyond specific “Power User skills,” the most important aspect to take away from this text is the Power
User mindset: how to use a feature to achieve some specific goal. Remember that there is a difference
between features and how to use them, and the functionality of a feature. Excel and its pivottables are
merely a tool for extracting potentially decision informing insights from large datasets.
People tend to overlook the creative aspects of data analysis, since “creativity” is usually associated with
some abstract, boundless activity reserved for people in the artistic field. Even artists have to practice
techniques to properly render and represent ideas that inform culture. It takes a similar methodical
approach to be truly successful and insightful in research settings as well. Your presentations must
answer why this dataset matters and how it will impact your client’s bottom line.
Most importantly, data analysts must have integrity. We discussed scientific integrity, and models that
follow the basic principles in data modeling are considered to be scientifically sound. Those that do not
follow the principles can be due to human error, which is why Microsoft has wizards that mitigate this
risk. However, individuals who make a deliberate choice to modify their models to support their beliefs
lack professional integrity. There may be times when peers or even your superiors will ask for models that
affirm their efforts in sales, outreach, or other items. It is always best to be truthful and provide an
accurate reflection of the data to maintain not only your integrity, but the integrity of the data analysis
field.
Reference
Bar graph missing zero1—Misleading graph—Wikipedia. (n.d.). Retrieved August 26, 2019, from
https://en.wikipedia.org/wiki/Misleading_graph#/media/File:Bar_graph_missing_zero1.svg
Consolidate multiple data sources in a PivotTable. (n.d.). Retrieved August 27, 2019, from
https://support.office.com/en-us/article/consolidate-multiple-data-sources-in-a-pivottable-8f476919-40b3-
4133-9870-26f4d9f21ad6
Create a PivotTable to analyze worksheet data. (n.d.). Retrieved August 20, 2019, from
https://support.office.com/en-us/article/create-a-pivottable-to-analyze-worksheet-data-a9a84538-bfe9-
40a9-a8e9-f99134456576
File:Example truncated bar graph.svg—Wikimedia Commons. (n.d.). Retrieved August 26, 2019, from
https://commons.wikimedia.org/wiki/File:Example_truncated_bar_graph.svg
File:Scatter Plot with missing categories.svg—Wikimedia Commons. (n.d.). Retrieved August 26, 2019,
from https://commons.wikimedia.org/wiki/File:Scatter_Plot_with_missing_categories.svg
FORECAST.ETS.STAT function. (n.d.). Retrieved August 24, 2019, from https://support.office.com/en-
us/article/forecast-ets-stat-function-60f2ae14-d0cf-465e-9736-625ccaaa60b 4
Forecasting functions (reference). (n.d.). Retrieved August 24, 2019, from https://support.office.com/en-
us/article/forecasting-functions-reference-897a2fe9-6595-4680-a0b0-93e0308d5f6e
How to Create a System Restore Point in Windows 7. (n.d.). Retrieved August 23, 2019, from Dummies
website: https://www.dummies.com/computers/operating-systems/windows-7/how-to-create-a-system-
restore-point-in-windows-7/
IFS function. (n.d.). Retrieved August 27, 2019, from https://support.office.com/en-us/article/ifs-function-
36329a26-37b2-467c-972b-4a39bd951d45
Introductory Econometrics Chapter 3: Pivot Tables. (n.d.). Retrieved August 23, 2019, from
http://www3.wabash.edu/econometrics/EconometricsBook/chap3.htm
Keyboard shortcuts in Excel. (n.d.). Retrieved August 27, 2019, from https://support.office.com/en-
us/article/keyboard-shortcuts-in-excel-1798d9d5-842a-42b8-9c99-9b7213f0040f
Koble, M. (n.d.). What Is the Life Span of the Average PC? | Chron.com. Retrieved August 20, 2019, from
https://smallbusiness.chron.com/life-span-average-pc-69823.htm l
Microsoft wants you to beta test upcoming Office products and services | Windows Central. (n.d.).
Retrieved August 27, 2019, from https://www.windowscentral.com/microsoft-wants-you-beta-test-
upcoming-office-products-and-services
Power Pivot keyboard shortcuts and accessibility—Office Support. (n.d.). Retrieved August 26, 2019, from
https://support.office.com/en-us/article/Power-Pivot-keyboard-shortcuts-and-accessibility-C87D45F9-
FFB3-4BA9-AEB0-687627A2B9FF
Start the Power Pivot add-in for Excel. (n.d.). Retrieved August 23, 2019, from
https://support.office.com/en-us/article/start-the-power-pivot-add-in-for-excel-a891a66d-36e3-43fc-81e8-
fc4798f39ea8
SWITCH function. (n.d.). Retrieved August 27, 2019, from https://support.office.com/en-us/article/switch-
function-47ab33c0-28ce-4530-8a45-d532ec4aa25e
The VBA Guide To Excel Pivot Tables. (n.d.). Retrieved August 20, 2019, from The Spreadsheet Guru
website: https://www.thespreadsheetguru.com/blog/2014/9/27/vba-guide-excel-pivot-tables
Use slicers to filter data—Office Support. (n.d.). Retrieved August 26, 2019, from
https://support.office.com/en-us/article/use-slicers-to-filter-data-249f966b-a9d5-4b0f-b31a-12651785d29 d
Where is Power Pivot? (n.d.). Retrieved August 23, 2019, from https://support.office.com/en-
us/article/where-is-power-pivot-aa64e217-4b6e-410b-8337-20b87e1c2a4b
Work with VBA macros in Excel for the web. (n.d.). Retrieved August 23, 2019, from
https://support.office.com/en-gb/article/work-with-vba-macros-in-excel-for-the-web-98784ad0-898c-43aa-
a1da-4f0fb5014343
XlConsolidationFunction enumeration (Excel) | Microsoft Docs. (n.d.). Retrieved August 26, 2019, from
https://docs.microsoft.com/en-us/office/vba/api/excel.xlconsolidationfunctio n