Those who have to evaluate large amounts of data quickly reach their limits with con­ven­tion­al Excel tables – they are often too in­flex­ible. Advanced pivot tables are the perfect solution. When it comes to eval­u­at­ing and preparing data, pivot tables in Excel show their full potential: they can be used to condense data and customise the display as required on a case-by-case basis. Work that is usually difficult with con­ven­tion­al tables is simple with pivot tables. But how do you create such a table, and when is the format suitable?

Excel with Microsoft 365 Business and IONOS!
The Office you know, only better
  • Up to 50 GB Exchange email account
  • Outlook Web App and col­lab­or­a­tion tools
  • Expert support & setup service

What is a pivot table?

Pivot tables allow users to change the display of the in­form­a­tion without changing the data. The basis for this is always a separate, very simply designed table, which contains the complete data set. Pivot offers ad­di­tion­al functions that allow the data to be sorted, filtered or displayed dif­fer­ently. An important element for un­der­stand­ing pivot Excel is the fact that the data can only be displayed dif­fer­ently. Changes to the pivot table will not create new data (e.g. duplicate data) or delete existing data (e.g. if the data is filtered) on your original spread­sheet.

What are pivot tables used for?

Let’s assume you have a large spread­sheet with lots of important data. However, not all columns are necessary for a par­tic­u­lar eval­u­ation. With tra­di­tion­al methods, you would copy all the data and create a new table. If new data is added however, you must then update several tables. Al­tern­at­ively, you can build formulas that auto­mat­ic­ally move data from one table to another – this is a very tedious task and can be prone to errors. Pivot tables do the same, but with fewer clicks and without the use of formulas.

Creating a pivot table

It’s not hard to create a pivot table in Excel as long as you un­der­stand how pivot works. A pivot table is always based on a set of data that consists of several columns. The first row of the column must contain the name of the re­spect­ive category. The pivot table auto­mat­ic­ally retrieves its in­form­a­tion from this. It also makes sense to format the table as such (using the “format as table” function) and assign a table name. This makes the work easier, es­pe­cially with several data sets.

There are two ways to create a pivot table in Excel: you can either navigate to the Pivot­Table function in the “Insert” tab, or you can use the table tools. However, this is only an option if you have formatted your data set as a table. Here, you can see the function “Summarise with Pivot­Table”. The same window is opened this way, but the cor­res­pond­ing section is already selected. In the template, users can decide where the new pivot table should appear: within an existing spread­sheet or in a new one.

Note

The data set that you want to transfer across to the pivot table does not ne­ces­sar­ily have to be in the same working folder. The data can also be extracted from other files.

Handling pivot tables in Excel

Pivot tables provide countless functions that are extremely useful in the eval­u­ation of data. The ver­sat­il­ity of pivot in Excel is best described by means of an example. We’ve already created the pivot table itself; it contains a data set with a list of sales for one year. This includes the employees involved, the turnover, and the type of product sold. Note that the data set is a simple table with only the columns labeled and not the rows.

The new spread­sheet, in which data should now appear in the form of a pivot table, is com­pletely empty at the beginning. However, the window should now have a new sidebar: the Pivot­Table Fields. The cat­egor­ies that you’ve defined for the columns of the data set should appear there. There are also four areas in the sidebar where you can drag the Pivot­Table Fields:

  • Filters
  • Columns
  • Rows
  • Values

By dis­trib­ut­ing the fields into the relevant areas, you are creating the actual pivot table. In general, it makes sense to define a field for the column names and one for the rows. Under “Filters”, you can specify the cat­egor­ies that you would like to view in the history, e.g. those you would like to view in isolation. The area of most interest is “Values”. Fields entered here become the main focus of the table.

In our example, we enter the months in the rows and the employees in the columns. The pivot table auto­mat­ic­ally analyses the in­form­a­tion it receives from the data set and de­term­ines that twelve different months and four different employees were involved. The two product types are applied to the filters, allowing us to evaluate the table according to Package A or Package B.

Finally, our sales are reported under “Values”. Excel creates the table auto­mat­ic­ally: a table with category ap­pro­pri­ate columns and rows is created from the original table with four columns related to the data set.

Tip

You don’t ne­ces­sar­ily have to specify only one category per column or row. Several fields can also be dragged into the areas. It’s not possible, though, to place one category into multiple fields.

In our case, Excel auto­mat­ic­ally de­term­ines the amount of sales per month and per employee. Instead of the original monetary values, placing them under “Values” directly results in the “Count of sales”. This gives the user the option of placing the blank figures into context and then eval­u­at­ing them this way: Laura made two sales in April. The pivot table also displays the overall results auto­mat­ic­ally: there were 3 sales in the month of June, and 24 sales for the whole year.

If you are more in­ter­ested in the monetary value of the sales, and less so in the number of sales trans­ac­tions, this can easily be altered. To do so, click on “Sales” in the “Values” field and navigate to the “Value field settings”. Here, under “Summarise values by”, change “Count” to “Sum“. As you can see, many other types of display are also available (the cal­cu­la­tion types cor­res­pond to the Excel functions).

For monetary values, it makes sense to have them displayed in the ap­pro­pri­ate cur­ren­cies. By clicking on the “Number format” button, you will be brought to a window that allows you to format cells (this is also available when working normally with Excel). From here, you can choose different formats as well as cur­ren­cies.

There are also other options available for dis­play­ing the values: in the value field settings, switch to “Show values as”. Here you can display the data as a per­cent­age of the many different values, for example, in com­par­is­on to the total result. This tells us that Laura and Tim were re­spons­ible for approx. 60 per cent of the total sales.

The filters can be adjusted directly in the pivot table using the small filter icon: display only the sales for Package A. Rows and columns also have filters. Users can hide rows that they do not require for the current analysis. You also have the pos­sib­il­ity of auto­mat­ic­ally sorting the rows and columns (e.g. al­pha­bet­ic­ally).

It is also worth taking a look at the Pivot­Table options: here, you can adjust the display of your data even further. To find this area, right click on the table. The options allow users, for example, to hide the total results or to adjust the layout. Ad­di­tion­ally, you can give the Pivot Table a title or a de­scrip­tion. This allows you to provide ad­di­tion­al in­form­a­tion to future users, es­pe­cially those that may be visually impaired.

Tip

If you change your original data set, Excel does not adjust the pivot table auto­mat­ic­ally. Instead, you need to adjust the table manually. You will find the button for this in the Pivot­Table tools under the tab “Analyse”.

There are even more eval­u­ation options: PivotChart provides an even easier way to display the results graph­ic­ally. With just two clicks of the mouse, users can, for example, create a bar chart from your pivot table. These diagrams differ from the usual diagrams in that they can be adapted dy­nam­ic­ally, just like the table itself. The pivot chart also provides filters. Making changes to the diagram will affect the table, and vice versa.

Note

Other spread­sheets such as Lib­reOf­fice or Google Spread­sheet can also support pivot tables.

Excel with Microsoft 365 Business and IONOS!
The Office you know, only better
  • Up to 50 GB Exchange email account
  • Outlook Web App and col­lab­or­a­tion tools
  • Expert support & setup service
Go to Main Menu