Google Sheets Course: Pivot Table

The pivot table allows you to summarize the data from a database so as to obtain the desired data combination (for example, the turnover generated by employee).

This introduction to pivot tables aims to show you a simple example of a pivot table to better understand its utility and see the potential of this feature.


The (very small) database of this example is as follows: lesson-10c.xlsx

google sheets table pivot

To add a pivot table, select the database (with headers) and click on "Pivot table" in the Insert menu:

google sheets pivot table insert png

Insert the pivot table into a new sheet:

google sheets pivot table

The pivot table has been created.

Now you need to enter in the pivot table editor (on the right) what data to display and how:

google sheets pivot table editor png

The goal here is to obtain a table that groups each fruit by origin and displays the total number of units purchased and the average price per unit.

Start by adding the "Product" row:

google sheets pivot table add row png

Then add a second row "Origin":

google sheets pivot table add rows png

Adding these first 2 rows already gives a first result (the fruits and the existing origins for each fruit):

google sheets simple pivot table

Then add a first value "Number of units purchased":

google sheets pivot table configure png

Then the value "Price per unit":

google sheets pivot table settings png

The price per unit should be here an average and not a sum, so you need to change the function:

google sheets pivot table average

After renaming cells C1 and B1, the pivot table is now finished and displays the expected data:

google sheets pivot table example

Explore

The Explore panel also allows you to create simple pivot tables:

google sheets pivot table explore png

If one of the suggested pivot tables suits you (knowing that you can then modify it like any other pivot table), you can add your pivot table from this panel to save time.