Introduction

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.

What you will learn from this book

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.

What is new in Excel 2019’s pivot tables

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:

Invention of the pivot table

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.

Excel 2019 versus Office 365

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.

In Excel 2019, when the Insert tab of the ribbon is selected, the tab color is white compared to all of the other tabs in green.
FIGURE I-7 The Excel 2019 ribbon is very similar to the Excel 2016 ribbon.
In the new Office 365 ribbon, the selected ribbon tab has an underline instead of a contrasting color.
FIGURE I-8 The Office 365 ribbon introduced in the summer of 2018 uses a new font and fewer colors.

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.

New features in Office 365

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.

The Insights panel offered 32 suggestions of interesting analyses. In this preview, a chart shows revenue by daily date. Four points are identified as unusually high outliers.
FIGURE I-9 Excel used artificial intelligence to spot these outliers.

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.

Who this book is for

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.

How this book is organized

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.

About the companion content

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

System requirements

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.

Support and feedback

The following sections provide information on errata, book support, feedback, and contact information.

Stay in touch

Let’s keep the conversation going! We’re on Twitter:

http://twitter.com/MicrosoftPress

http://twitter.com/MrExcel

Errata, updates, and book support

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.