The pivot table is the single most powerful tool in all of Excel. Pivot tables came along during the 1990s, when Microsoft and Lotus were locked in a bitter battle for dominance of the spreadsheet market. The race to continually add enhanced features to their respective products during the mid-1990s led to many incredible features, but none as powerful as the pivot table.
With a pivot table, you can transform one million rows of transactional data into a summary report in seconds. If you can drag a mouse, you can create a pivot table. In addition to quickly summarizing and calculating data, pivot tables enable you to change your analysis on the fly by simply moving fields from one area of a report to another.
No other tool in Excel gives you the flexibility and analytical power of a pivot table.
It is widely agreed that close to 60 percent of Excel customers leave 80 percent of Excel untouched—that is, most people do not tap into the full potential of Excel’s built-in utilities. Of these utilities, the most prolific by far is the pivot table. Despite the fact that pivot tables have been a cornerstone of Excel for almost 20 years, they remain one of the most underutilized tools in the entire Microsoft Office suite.
Having picked up this book, you are savvy enough to have heard of pivot tables—and you have perhaps even used them on occasion. You have a sense that pivot tables provide a power that you are not using, and you want to learn how to leverage that power to increase your productivity quickly.
Within the first two chapters, you will be able to create basic pivot tables, increase your productivity, and produce reports in minutes instead of hours. Within the first seven chapters, you will be able to output complex pivot reports with drill-down capabilities and accompanying charts. By the end of the book, you will be able to build a dynamic pivot table reporting system.
Luckily, Microsoft continues to invest heavily in business intelligence (BI), and pivot tables are the front end that let you access the new features. Some of the features added to Excel 2019 pivot tables include the following:
You can specify default settings for all future pivot tables. If you want all pivot tables to start in Tabular layout instead of Compact layout, you can specify this. Do you prefer Classic layout or do you always replace empty cells with zero? Visit File, Options, Data, Pivot Table Defaults to change the settings for all future pivot tables.
The automatic date grouping introduced in Excel 2016 pivot tables can now be turned off. The setting is found in File, Options, Data. The feature became unpopular after the release of Excel 2016.
Pivot tables will be doing more summing and less counting. Previously, if you had a column with revenue and a few empty cells, the pivot table would choose to Count instead of Sum. In Excel 2019, a mix of empty cells and numeric cells will be treated like a numeric column and will default to Sum instead of Count.
Power Pivot is now included in all Windows versions of Excel 2019 and Office 365. During the tenure of Office 2013–2016, only parts of Power Pivot were available. Although some of the Power Pivot functionality was available if you chose Add This Data To The Data Model while creating a pivot table, you can now access the Power Pivot tab in the ribbon. This allows you to create and view relationships in a diagram view. You can choose to sort one column by another column.
With Power Pivot in Excel 2019, your pivot tables benefit from any new functions added to the DAX formula language. If you ever wanted to do Median in a pivot table or even report Text fields in the Values area, the new DAX functions such as MEDIAN and CONCATENATEX allow this to happen.
Power View is being de-emphasized. Microsoft is replacing Power View with Power BI Desktop. You will find it difficult to locate the Power View icons in Excel 2019.
If you are using Office 365, you will have access to the Insights command on the Insert tab. This command uses artificial intelligence to suggest 30 interesting charts or pivot tables that can be created from your data.
When the actual pivot table was invented is in dispute. The Excel team coined the term pivot table, which appeared in Excel in 1993. However, the concept was not new. Pito Salas and his team at Lotus were working on the pivot table concept in 1986 and released Lotus Improv in 1991. Before then, Javelin offered functionality similar to that of pivot tables.
The core concept behind a pivot table is that the data, formulas, and data views are stored separately. Each column has a name, and you can group and rearrange the data by dragging field names to various positions on the report.
The title of this book says Excel 2019. In reality, no one should be buying Office 2019. Instead, it is likely that you are renting Office 365. As of May 2018, Office 2019 and Office 365 were nearly equivalent.
Here’s why the authors hope that you did not purchase Office 2019: The features in Office 2019 will not change. The features in Office 365 will constantly evolve and improve. The people who have been using Office 365 have enjoyed the new features described earlier in this chapter one to two years before the people who purchased Office 2019.
Because the title of this book says Excel 2019, the screenshots show the Excel 2019 ribbon. However, anyone using Office 365 will have a new look to the ribbon.
Microsoft reduced the number of colors in the Office 365 ribbon. The selected Ribbon tab is now underlined instead of being a different color. Compare the Excel 2019 Insert tab in Figure I-7 with the Office 365 Insert tab in Figure I-8.
Microsoft is experimenting with a new ribbon that goes back to a single row like the Office 2013 menus. As of the summer of 2018, that new ribbon will debut with Outlook and Excel Online and only for Office 365 customers. It remains to be seen if that ribbon ever makes it to the desktop version of Excel.
After this book is printed, the Excel team will release new features for Excel. Anyone with an Office 365 subscription will receive the new features. People with Excel 2019 will not get the new features.
For any new features introduced to Office 365, the owners of Excel 2019 will have to purchase Office 2022 in order to access those features.
But what is even worse, some features introduced will be marked as Office 365 Exclusive features. Those features will never be available to customers who buy the perpetual versions of Office, such as Office 2016, Office 2019, or Office 2022.
One such feature introduced in early 2018 is the Insights feature. This feature will send up to 250,000 cells of your data to a Microsoft server where artificial intelligence looks for trends in your data. The first few results from Insights are very similar to the Insert Recommended PivotTable logic introduced in Excel 2013 and shown previously in Figure I-4.
However, if you click the More link, Insights often provides two to three dozen suggestions. Most suggestions will insert a pivot table and a pivot chart. In the first preview of Insights, Excel will look for: rank, evenness, trend, composite signal, attribution, outstanding top two, monotonicity (always increasing or always decreasing), and unimodality (having a single peak data point).
When I used the data set from this Introduction with Insights in Office 365, Microsoft suggested 32 different possible results. One is shown in Figure I-9.
If you regularly purchased every new version of Office, it will cost less to rent Office 365 at $10 a month than to pay $399 for the perpetual version of Office every 36 months. Office 365 offers more features than Excel 2019. Unless your buying pattern is to only buy every second or third version of Office, upgrading to Office 365 makes sense.
This book is a comprehensive-enough reference for hard-core analysts yet relevant to casual users of Excel.
We assume that you are comfortable navigating in Excel and that you have some large data sets that you need to summarize.
The bulk of the book covers how to use pivot tables in the Excel user interface. Chapter 10, “Unlocking features with the Data Model and Power Pivot,” delves into the Power Pivot window. Chapter 13, “Using VBA to create pivot tables,” describes how to create pivot tables in Excel’s powerful VBA macro language. Anyone who has a firm grasp of basics such as preparing data, copying, pasting, and entering simple formulas should not have a problem understanding the concepts in this book.
The download files for this book include all of the data sets used to produce the book, so you can practice the concepts in the book. You can download this book’s companion content from the following page:
MicrosoftPressStore.com/Excel2019PivotTable/downloads
You need the following software and hardware to build and run the code samples for this book:
Microsoft Excel running on a Windows computer. (Yes, Excel runs on an iPad, on an Android tablet, and in a browser, but none of those are going to support creation of pivot tables anytime soon.) For people using Excel on a Mac, some of the basic pivot table concepts will apply. Power Query and Power Pivot will not run on a Mac.
The following sections provide information on errata, book support, feedback, and contact information.
Let’s keep the conversation going! We’re on Twitter:
http://twitter.com/MicrosoftPress
We’ve made every effort to ensure the accuracy of this book and its companion content. You can access updates to this book—in the form of a list of submitted errata and their related corrections—at the following page:
MicrosoftPressStore.com/Excel2019PivotTable/errata
If you discover an error that is not already listed, please submit it to us at the same page.
If you need additional support, email Microsoft Press Book Support at microsoftpresscs@pearson.com.
Please note that product support for Microsoft software and hardware is not offered through the previous addresses. For help with Microsoft software or hardware, go to http://support.microsoft.com.