Skip to main content

How to use pivot tables in Google Sheets

Person using Google on a laptop.
Firmbee.com/Unsplash

Implementing a pivot table in Google Sheets will compress the data within your spreadsheet into a custom table. As such, the tool is practical and convenient for those who want their data outlined via an easy-to-understand format.

Say you’re a student, or someone who uses Google Sheets regularly, and want to refer to an abbreviated version of all your data — look no further than the pivot table. Even if you don’t have a detailed spreadsheet, you can still utilize the feature to enhance that sheet by making it more accessible.

Recommended Videos

Difficulty

Moderate

Duration

10 minutes

What You Need

  • A computer, laptop, tablet, or phone with access to Google Sheets

Before proceeding, be aware that Sheets does not support pivot charts. If you require this functionality, you may need to consider Microsoft Excel. Not sure? Our look at Microsoft Excel vs. Google Sheets should help you decide.

Using the pivot tables tool

Step 1: Select the data that will be added to the pivot table.

Selecting data/cells in Google Sheets in order to create a pivot table.
Image used with permission by copyright holder

Step 2: Now click the Insert tab > Pivot table.

The Pivot table option in Google Sheets.
Image used with permission by copyright holder

Step 3: Choose where you want to insert the pivot table via the New sheet and Existing sheet options. I’ve selected New sheet for this demonstration. Click the Create button once you’ve selected a location.

Choosing where to insert a pivot table in Google Sheets.
Image used with permission by copyright holder

Step 4: Google will now create a new sheet where your pivot table will be based. Conveniently, Google Sheets provides a Suggested section where they’ll do most of the work.

However, in some cases the algorithm won’t be able to suggest anything, as is the case with mine.

The suggested section for the pivot table editor in Google Sheets.
Image used with permission by copyright holder

Step 5: Don’t worry, though: You can fill in the pivot table yourself and customize it per your requirements.

There are four components that will determine what your pivot table will showcase. In this demonstration, I’ve used a variation of them.

I’ve used the Add button for Rows to insert the Month, Revenue, and Profit sections of my spreadsheet. You’ll need to use the Add button to add a column to Sheets, or a row. In my case, I clicked the Add button three times for Rows to include the Month, Revenue, and Profit.

Adding Rows in Google Sheets for a pivot table.
Image used with permission by copyright holder

Step 6: Within the Values section, I chose Revenue again, in addition to adding Profit. I chose the SUM option in the Summarize by section, as well as selecting % of column in the adjacent Show as area.

On my pivot table, I can now see which month accounted for what percentage of the overall revenue and profit. With this, I can determine, for example, which months the company should pay attention to and others they can improve.

Adding the Values as section to add data into a pivot table in Google Sheets.
Image used with permission by copyright holder

Step 7: As such, if you want to insert the pivot table on the main spreadsheet, then there’s no need for the Revenue and Profits rows anymore. Remove them by clicking the X button on its section and then repeat the steps above for adding a pivot table into the main spreadsheet where the data is located.

If you have many years of revenue and profits and implement the pivot table as explained above, then you can quickly scan the table itself to see which month made the most revenue and profit instead of scouring through all the data manually to find out the answers.

As you can see via the image below, without even looking at my original data, I can determine that July had the highest revenue and profit compared to all other months.

Using a variation of different fields will allow you to see what is relevant and what isn’t, so don't worry if you don't get it right on the first go. For example, you can use the Average option in Values to calculate the average value of certain data.

With this in mind, pivot tables can prove to be an extremely useful feature of Google Sheets.

A pivot table added onto an exiting spreadsheet in Google Sheets.
Image used with permission by copyright holder

How do I update a pivot table in Google Sheets?

Step 1: You don’t need to update anything in regard to the pivot table once it’s been created and you’ve filled it in. Simply make any edits within the cells you selected to form the pivot table. Google Sheets will do the rest by updating the pivot table to implement the changes.

Step 2: For example, I will be changing the value of two of my cells to a higher revenue and profit amount. As you can see within the pivot table, it has updated the entire table alongside those two fields.

Updating a pivot table in Google Sheets.
Image used with permission by copyright holder

For more on Google Sheets, check out our guides on how to merge cells and make a graph or chart.

Zak Islam
Former Digital Trends Contributor
Zak Islam was a freelance writer at Digital Trends covering the latest news in the technology world, particularly the…
Google Sheets vs. Microsoft Excel: Which is better?
Microsoft's PowerPoint on the Vision Pro.

Workplace visualization tools make the world go round, and will definitely liven up your before-lunch presentation. If you’ve got hard numbers to display to the masses, or graph-scribed projections you’re eager to get onscreen, you’ll need a powerful spreadsheet. You can use Google Sheets, or you can use Microsoft Excel -- they're both great ways to get the job done. But which of these two platforms is truly the best option? That depends on a number of things, and we’re not here to dissuade or encourage, but merely to inform.

We actually love Google Sheets and Excel, but for different reasons. One software may not be ideal for A, B, and C, although it may be really good at D, E, and F. Whatever the case may be, we put together this comparison of Google Sheets and Excel, with focus paid to essential categories like application access, data analysis, and charts and graphs. 
The basics
It’s worth stating from the start that both Sheets and Excel are excellent spreadsheet applications. So if you have the opportunity to try them both out, you may have a clear preference from the start. But if you’re doing your research first, just know that you can’t go wrong with either.

Read more
How to create a pivot table in Excel to slice and dice your data

Microsoft Excel is arguably the greatest spreadsheet application from Redmond, and there's a good reason so many number crunchers use it for all of their number crunching needs. While using Microsoft Excel is fine for simple spreadsheets to track expenses or build calendars, it comes into its own when you need to slice and dice and then present complex data. Here, we show you how to create a pivot table in Excel to take advantage of one of the application's most powerful tools.

Before we start, just what exactly are pivot tables good for? Simply put, pivot tables let you look at the same data in different ways and from different angles, to make it easier to perform in-depth analysis and to spot important trends. When you're evaluating sales results, for example, you may want to look at an individual person, a specific product, or a specific timeframe. With a pivot table, you can create one pool of information and then easily change your focus from one thing to another -- an analysis that would be tedious to perform manually.

Read more
How to find duplicates in Excel

When you're working with a spreadsheet, duplicate data can sometimes make its way in and cause all sorts of problems. In this how-to, we demonstrate two methods of using Microsoft Excel for identifying and removing duplicate data.

Read more