Create and edit pivot tables

Pivot tables allow you to group and arrange data of large data sets to get summarized information. In the Spreadsheet Editor you can reorganize data in many different ways to display only the necessary information and focus on important aspects.

Create a new pivot table

To create a pivot table,

  1. Prepare the source data set you want to use for creating a pivot table. It should include column headers. The data set should not contain empty rows or columns.
  2. Select any cell within the source data range.
  3. Switch to the Pivot Table tab of the top toolbar and click the Insert Table Insert Table icon icon.

    If you want to create a pivot table on the base of a formatted table, you can also use the Insert pivot table Insert pivot table option on the Table settings tab of the right sidebar.

  4. The Create Pivot Table window will appear.

    Create Pivot Table window

    • The Source data range is already specified. In this case, all data from the source data range will be used. If you want to change the data range (e.g. to include only a part of source data), click the Select data icon icon. In the Select Data Range window, enter the necessary data range in the following format: Sheet1!$A$1:$E$10. You can also select the necessary cell range on the sheet using the mouse. When ready, click OK.
    • Specify where you want to place the pivot table.
      • The New worksheet option is selected by default. It allows you to place the pivot table in a new worksheet.
      • You can also select the Existing worksheet option and choose a certain cell. In this case, the selected cell will be the upper right cell of the created pivot table. To select a cell, click the Select data icon icon.

        Select Data Range window

        In the Select Data Range window, enter the cell address in the following format: Sheet1!$G$2. You can also click the necessary cell in the sheet. When ready, click OK.

    • When you select the pivot table location, click OK in the Create Table window.

An empty pivot table will be inserted in the selected location.

The Pivot table settings tab on the right sidebar will be opened. You can hide or display this tab by clicking the Pivot table settings icon icon.

Pivot table settings tab

Select fields to display

The Select Fields section contains the fields named according to the column headers in your source data set. Each field contains values from the corresponding column of the source table. The following four sections are available below: Filters, Columns, Rows, and Values.

Check the fields you want to display in the pivot table. When you check a field, it will be added to one of the available sections on the right sidebar depending on the data type and will be displayed in the pivot table. Fields containing text values will be added to the Rows section; fields containing numeric values will be added to the Values section.

You can simply drag fields to the necessary section as well as drag the fields between sections to quickly reorganize your pivot table. To remove a field from the current section, drag it out of this section.

In order to add a field to the necessary section, it's also possible to click the black arrow to the right of a field in the Select Fields section and choose the necessary option from the menu: Add to Filters, Add to Rows, Add to Columns, Add to Values.

Pivot table settings tab

Below you can see some examples of using the Filters, Columns, Rows, and Values sections.

Rearrange fields and adjust their properties

Once the fields are added to the necessary sections, you can manage them to change the layout and format of the pivot table. Click the black arrow to the right of a field within the Filters, Columns, Rows, or Values sections to access the field context menu.

Pivot table menu

It allows you to:

The Filters, Columns, and Rows field settings look similarly:

Pivot table Filters field settings

The Layout tab contains the following options:

Pivot table Filters field settings

The Subtotals tab allows you to choose Functions for Subtotals. Check the necessary functions in the list: Sum, Count, Average, Max, Min, Product, Count Numbers, StdDev, StdDevp, Var, Varp.

Values field settings

Pivot table Values field settings

Group and ungroup data

Data in pivot tables can be grouped according to custom requirements. Grouping is available for dates and basic numbers.

Grouping dates

To group dates, create a pivot table incorporating a set of needed dates. Right click any cell in a pivot table with a date, choose the Group option in the pop-up menu, and set the needed parameters in the opened window.

group dates

Grouping numbers

To group numbers, create a pivot table incorporating a set of needed numbers. Right click any cell in a pivot table with a number, choose the Group option in the pop-up menu, and set the needed parameters in the opened window.

group numbers

Ungrouping data

To ungroup previously grouped data,

  1. right-click any cell that is in the group,
  2. select the Ungroup option in the context menu.

Change the appearance of pivot tables

You can use options available on the top toolbar to adjust the way your pivot table is displayed. These options are applied to the entire pivot table.

Select at least one cell within the pivot table with the mouse to activate the editing tools on the top toolbar.

Pivot table toop toolbar

The Select Pivot Table icon Select button allows you to select the entire pivot table.

If you change the data in your source data set, select the pivot table and click the Refresh Pivot Table icon Refresh button to update the pivot table.

Change the style of pivot tables

You can change the appearance of pivot tables in a spreadsheet using the style editing tools available on the top toolbar.

Select at least one cell within the pivot table with the mouse to activate the editing tools on the top toolbar.

Pivot Table tab

The rows and columns options allow you to emphasize certain rows/columns applying specific formatting to them, or highlight different rows/columns with different background colors to clearly distinguish them. The following options are available:

The template list allows you to choose one of the predefined pivot table styles. Each template combines certain formatting parameters, such as a background color, border style, row/column banding, etc. Depending on the options checked for rows and columns, the templates set will be displayed differently. For example, if you've checked the Row Headers and Banded Columns options, the displayed templates list will include only templates with the row headers highlighted and banded columns enabled.

Filter, sort and add slicers in pivot tables

You can filter pivot tables by labels or values and use the additional sort parameters.

Filtering

Click the drop-down arrow Drop-Down Arrow in the Row Labels or Column Labels of the pivot table. The Filter option list will open:

Filter window

Adjust the filter parameters. You can proceed in one of the following ways: select the data to display or filter the data by certain criteria.

The Filter Filter button button will appear in the Row Labels or Column Labels of the pivot table. It means that the filter is applied.

Sorting

You can sort your pivot table data using the sort options. Click the drop-down arrow Drop-Down Arrow in the Row Labels or Column Labels of the pivot table and then select Sort Lowest to Highest or Sort Highest to Lowest option from the submenu.

The More Sort Options option allows you to open the Sort window where you can select the necessary sorting order - Ascending or Descending - and then select a certain field you want to sort.

Pivot table sort options

Adding slicers

You can add slicers to filter data easier by displaying only what is needed. To learn more about slicers, please read the guide on creating slicers.

Adjust pivot table advanced settings

To change the advanced settings of the pivot table, use the Show advanced settings link on the right sidebar. The 'Pivot Table - Advanced Settings' window will open:

Pivot table advanced settings

The Name and Layout tab allows you to change the pivot table common properties.

Pivot table advanced settings

The Data Source tab allows you to change the data you wish to use to create the pivot table.

Check the selected Data Range and modify it, if necessary. To do that, click the Source data range icon icon.

Select Data Range window

In the Select Data Range window, enter the necessary data range in the following format: Sheet1!$A$1:$E$10. You can also select the necessary cell range in the sheet using the mouse. When ready, click OK.

Pivot table advanced settings

The Alternative Text tab allows specifying the Title and the Description which will be read to people with vision or cognitive impairments to help them better understand what information the pivot table contains.

Delete a pivot table

To delete a pivot table,

  1. Select the entire pivot table using the Select Pivot Table icon Select button on the top toolbar.
  2. Press the Delete key.