{"id":3938,"date":"2019-01-09T13:29:19","date_gmt":"2019-01-09T13:29:19","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=3938"},"modified":"2024-03-26T16:03:53","modified_gmt":"2024-03-26T16:03:53","slug":"group-data-in-pivottable","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/","title":{"rendered":"Group Data in PivotTable"},"content":{"rendered":"\n
Group-Data-in-PivotTable<\/a>Download File<\/a><\/div>\n\n\n\n

In a PivotTable, you can group different types of values. I\u2019ve written an article about grouping dates in PivotTables<\/a>, so this one will be about grouping numbers and text.<\/p>\n\n\n\n

In this lesson, we are going to use the following data<\/a>.<\/p>\n\n\n\n

Group Numbers<\/h2>\n\n\n\n
    \n
  1. First, you need to insert a PivotTable. Click any cell inside the table.<\/li>\n\n\n\n
  2. Navigate to Insert >> Tables >> PivotTable<\/strong>.<\/li>\n\n\n\n
  3. Inside PivotTable Fields<\/strong> select Date and Units. Price<\/strong> should be in ROWS and Units<\/strong> in VALUES.<\/li>\n<\/ol>\n\n\n\n
    \"\"<\/figure>\n\n\n\n
      \n
    1. Right-click any cell in Row Labels<\/a> and click Group<\/strong>.<\/li>\n\n\n\n
    2. Inside the Group<\/strong> window, uncheck Starting at<\/strong> and Ending at<\/strong>, and set By<\/strong> to 3. This will group values by 3, starting from 0.<\/li>\n<\/ol>\n\n\n\n
      \"\"<\/figure>\n\n\n\n

      Now, we can see how many units we sold in these price ranges.<\/p>\n\n\n\n

      Group Text<\/h2>\n\n\n\n

      In addition to grouping numbers, we can also create custom groups.<\/p>\n\n\n\n

      Create a PivotTable and check Items<\/strong> and Price<\/strong>. Items should be in ROWS and Price in VALUES.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      It\u2019s going to create the following PivotTable.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      We are going to create a custom group for Pens<\/strong> and Pencils<\/strong>. Select these positions, right-click and choose Group<\/strong>.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Now, Pencils and Pens are inside one group called Group1, and Clipboards and Notebooks have their own individual groups that were created automatically.<\/p>\n\n\n\n

      Group1 is not the best name for the group. You can change it by clicking the group and changing the name inside Formula Bar<\/a>.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Now you can select the other elements and group them the same way.<\/p>\n\n\n\n

      \"\"<\/figure>\n","protected":false},"excerpt":{"rendered":"

      In a PivotTable, you can group different types of values. I\u2019ve written an article about grouping dates in PivotTables, so this one will…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nGroup Data in PivotTable<\/title>\n<meta name=\"description\" content=\"Learn how to group numbers and text in a PivotTable in Excel. Free download of a sample file with step-by-step instructions. Improve your data analysis!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Group Data in PivotTable\" \/>\n<meta property=\"og:description\" content=\"Learn how to group numbers and text in a PivotTable in Excel. Free download of a sample file with step-by-step instructions. Improve your data analysis!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-09T13:29:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T16:03:53+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Group Data in PivotTable\",\"datePublished\":\"2019-01-09T13:29:19+00:00\",\"dateModified\":\"2024-03-26T16:03:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/\"},\"wordCount\":248,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/\",\"name\":\"Group Data in PivotTable\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png\",\"datePublished\":\"2019-01-09T13:29:19+00:00\",\"dateModified\":\"2024-03-26T16:03:53+00:00\",\"description\":\"Learn how to group numbers and text in a PivotTable in Excel. Free download of a sample file with step-by-step instructions. Improve your data analysis!\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Group Data in PivotTable\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Group Data in PivotTable","description":"Learn how to group numbers and text in a PivotTable in Excel. Free download of a sample file with step-by-step instructions. Improve your data analysis!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/","og_locale":"en_US","og_type":"article","og_title":"Group Data in PivotTable","og_description":"Learn how to group numbers and text in a PivotTable in Excel. Free download of a sample file with step-by-step instructions. Improve your data analysis!","og_url":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/","article_published_time":"2019-01-09T13:29:19+00:00","article_modified_time":"2024-03-26T16:03:53+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Group Data in PivotTable","datePublished":"2019-01-09T13:29:19+00:00","dateModified":"2024-03-26T16:03:53+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/"},"wordCount":248,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/","url":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/","name":"Group Data in PivotTable","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png","datePublished":"2019-01-09T13:29:19+00:00","dateModified":"2024-03-26T16:03:53+00:00","description":"Learn how to group numbers and text in a PivotTable in Excel. Free download of a sample file with step-by-step instructions. Improve your data analysis!","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/pivottable-fields.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/group-data-in-pivottable\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Group Data in PivotTable"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3938"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=3938"}],"version-history":[{"count":4,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3938\/revisions"}],"predecessor-version":[{"id":14049,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3938\/revisions\/14049"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=3938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=3938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=3938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}