Create & use pivot tables - Computer (2024)


Create & use pivot tables - Computer (1)

Want advanced Google Workspace features for your business?

Try Google Workspace today!

You can use pivot tables to:

  • Narrow down a large data set.
  • See relationships between data points .

For example, you could use a pivot table to analyze which salesperson produced the most revenue for a specific month.

Add or edit pivot tables

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the cells with source data you want to use. Important: Each column needs a header.
  3. In the menu at the top, click InsertCreate & use pivot tables - Computer (2) Pivot table. Click the pivot table sheet, if it’s not already open.
  4. In the side panel, next to "Rows" or "Columns," click Add, then choose a value.
    • Sometimes, you'll see recommended pivot tables based on the data you choose. To add a pivot table, under "Suggested," choose a pivot table.
    • High confidence pivot table suggestions will be automatically inserted upon pivot table creation.
    • To turn off pivot table suggestions:
      1. At the top, click Tools Create & use pivot tables - Computer (3)Autocomplete.
      2. Turn off Enable Pivot table suggestions.
  5. In the side panel, next to "Values," click Add, then choose the value you want to see over your rows or columns.
  6. You can change how your data is listed, sorted, summarized, or filtered. Next to what you want to change, click the Down Arrow Create & use pivot tables - Computer (4).

Change or remove data

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Clickthe pop-up Edit button underneath the pivot table.
  3. In the side panel, change or remove fields:
    • To move a field , drag it to another category.
    • To remove a field, click Remove Create & use pivot tables - Computer (5).
    • To change the range of data used for your pivot table, click Select data rangeCreate & use pivot tables - Computer (6).
    • To clear all fields, click Clear all.

Note: The pivot table refreshes any time you change the source data cells it’s drawn from.

See cell details

You can look at the source data rows for a cell in a pivot table.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Clickthe pop-up Edit button underneath the pivot table.
  3. Double-click the cell you want to look at in more detail.
  4. You'll see a new sheet with the cell’s source data.

Calculated fields with SUM or a custom formula

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Click the pop-up Edit button underneath the pivot table.
  3. In the side panel, next to "Values," click Add Create & use pivot tables - Computer (7) click Calculated field.
    • Calculate a value with SUM: Next to “Summarize by,” click SUM.
    • Calculate a value with a custom formula: In the field that appears, enter a formula. Then, next to "Summarize by," click Custom.
  4. On the bottom right, click Add and the new column will appear.

Tip: To write custom formulas, you can use:

  • Other columns, for example,=sum(Price)/counta(Product) where "Price" and "Product" are fields in the pivot table or an underlying table (available with Connected Sheets.)
  • Google Sheets functions.

    Important: If you use field values with spaces, make sure to use quotations around them in your custom formula. For example: ="h sdf".

    Example

    Make a copy

    Related articles

    To learn aboutSpreadsheets, Databases, and Query Languages, click the button below:

    Tutorial: Intro to Spreadsheets, Databases, and Query Languages

    Create & use pivot tables - Computer (8)

    Visit the Learning Center

    Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

    Create & use pivot tables - Computer (2024)

    References

    Top Articles
    Latest Posts
    Article information

    Author: Laurine Ryan

    Last Updated:

    Views: 6063

    Rating: 4.7 / 5 (57 voted)

    Reviews: 80% of readers found this page helpful

    Author information

    Name: Laurine Ryan

    Birthday: 1994-12-23

    Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

    Phone: +2366831109631

    Job: Sales Producer

    Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

    Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.