Disclaimer: MashTips is supported by its audience. When you purchase through links on our site, we may earn an affiliate commission at no extra cost to you.

Home Google Pivot Table on Google Sheets: A Complete Guide

Pivot Table on Google Sheets: A Complete Guide

Are you struggling with a large set of data on a huge table that is too much to handle? You can narrow down the table and lets you group data in a meaningful way. Pivot tables help you to quickly and efficiently analyze huge amounts of data.

Here, let’s take a detailed look at creating and using a Pivot table in Google Sheets.

What is Google Sheets Pivot Table

While normal tables are ideal for handling large amounts of data, it is quite difficult to analyze or get meaningful information from them. Pivot tables come in handy as they can summarize massive amounts of data on any rows/columns in a spreadsheet.

For example, a pivot table can be used by a business owner to analyze which store has made maximum sales revenue for a specific month. In general, a pivot table can be used to calculate averages, sums, or any other statistics from a large data set.

Related: How to Swap Values Between Rows/Columns in Google Sheets

How to Create a Pivot Table in Google Sheets

Let’s see how to create a Pivot table from your existing table or large data set. For example, let’s take a simple data set that has the sales information from various divisions of the company for a specific month. Before starting to create a pivot table, you need to make sure that every column is associated with a header/title.

Google Sheets Pivot table Sample Data

  1. Open the Google Sheets spreadsheet file on your browser.
  2. Select the data for which you need to create a pivot table.
  3. To use all the data in the sheet, then just click any of the cells.
  4. Next, click Data > Pivot Table located on the top menu.
  5. Select New Sheet and click Create.
  6. Now, you will get a new sheet Pivot table editor with options to add rows, columns, and values.

Create New Pivot Table

Now, let’s see how to get meaningful information out of this data set using the Pivot table we just created.

How to Edit a Pivot Table in Google Sheets

After creating a new pivot table, you can sort and find out the information you want from the data. Let’s take the sample data set mentioned above. Here, we will find out the total number of units sold by every division and the average price per unit using the pivot table in Google Sheets.

Pivot Table Editor

  1. Create a new pivot table for the spreadsheet.
  2. Under Rows, click Add and enter “division”.
  3. Click Add again and enter “subdivision”.
  4. Make sure the value for the drop-down box titled Order is set to Ascending.
  5. Next, let’s calculate the total number of units sold by every division. Under Values, click Add and enter the “number of units”.
    Google sheet pivot table values
  6. Then, select the value SUM in the drop-down box titled Summarize by.
  7. Now, a new column titled SUM of number of units will get added to your sheet.
  8. Next, let’s calculate the average price per unit. Under Values, click Add and enter “price per unit”.
  9. Then, select the value AVERAGE in the drop-down box titled Summarize by.
  10. Here, you will see a new column titled AVERAGE of price per unit which shows the average price per unit and the pivot table will be created like given below:Google sheet final pivot table

Likewise, you can use other formulas like MAX, MIN, AVERAGE, MEDIAN and more.

Related: How to Automate Tasks in Google Sheets with Macros

How to Customize a Pivot Table in Google Sheets

Google sheets provide a lot of options to customize the pivot table. Let’s take a brief look at some of the most commonly used options:

Sort Rows or Columns

You can sort the pivot table data by values, row, or column names. In the Pivot table editor window, you will find the “Sort by” drop-down box which lists the names of all rows and columns of your pivot table. Based on your need, you can sort the column or row based on your requirement.

Google sheets pivot table sort

Show Value as Percentage

By default, values (eg. SUM of the number of units) will be displayed as numbers. However, if you would like to display them as a percentage by comparison with whole data, then you can do that as well. Just click the Pivot table. Under Values, click the drop-down box titled Show as and select any of the options given below:

Google sheet pivot table values percentage

  • % of row
  • % of column
  • % of grand total

By default, the drop-down box is set to “Default”.

Grouping Data

You can select a set of values from the pivot table in Google Sheets and group them together based on a rule or manually. To manually create a Pivot group, select all the cells you want to group and right-click the cells. Then, select the Create Pivot group.

In order to group rows by rule, right-click a cell and select Create Pivot group rule. Then, you will see a small window titled Grouping rule. Enter minimum value, maximum value, interval size, and click OK. Now, the values are grouped based on the rule you had created.

Google sheet pivot group rule

If you want to ungroup the data, right-click any grouped cell, and select Ungroup pivot items.

How to Filter Data in a Pivot Table in Google Sheets

Are you working on a spreadsheet with large amounts of data and you would like to hide some rows/columns? You can make use of the Filter option to hide unwanted data on your sheet.  Let’s see how to do that.

  1. Click the Pivot table to launch the Pivot table editor.
  2. Under Filters, click Add.
  3. Select the rows or columns you want to filter from the data.
  4. Click the down arrow in the drop-down box titled Status.
  5. Choose Filter by values or Filter by condition, depends on what you need.

Use Filter by values when you just want data that have values between a specific range or from a domain. If not, you can choose Filter by condition and create a custom formula to filter data.

When you have large amounts of data on a spreadsheet, no need to look at it as a whole. Using the Pivot table on Google Sheets, you can easily cluster them and find out the necessary information quickly. Hope you found this helpful to summarize your data.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Free Newsletter

Read More...

How to Print Selected Area in Google Sheets

Usually, it is very convenient to view a Google Spreadsheet on the go either on your smartphone or a laptop. However, a hard copy...

How to Swap Values Between Cells, Rows or Columns in Google Sheets

Google Sheets is considered as an excellent alternative to Microsoft Excel for a number of reasons. First, you don't need to pay any fee...

8 Best Google Sheets Add-ons to Improve Productivity.

Like browser extensions helps to extend the capabilities of your web browser, Google Sheets does a similar job of providing additional features. You will...

How to Automate Tasks in Google Sheets with Macros

You can get your works done in minimal time with the unmatched features Google Sheets offers. The Macro is such a thing that lets...

Conditional Formatting on Google Sheets: Everything You Need to Know

These days, a lot of people prefer Google Sheets to Microsoft Excel for many reasons like zero cost, multi-user access, cloud storage, and most...

How to Create Your Own Stock Tracker using Google Sheets

These days, people are using apps for everything from tracking their weight loss goals to stock trading. Even though using such apps makes your...