{"id":3940,"date":"2019-01-09T13:24:31","date_gmt":"2019-01-09T13:24:31","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=3940"},"modified":"2024-03-27T23:47:30","modified_gmt":"2024-03-27T23:47:30","slug":"group-dates-in-pivottable","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/","title":{"rendered":"Group Dates in Pivot Table"},"content":{"rendered":"\n
Group-Dates-in-Pivot-Table<\/a>Download File<\/a><\/div>\n\n\n\n

In Excel, you can group and ungroup PivotTable dates in order to make data more readable. You can group dates by seconds, minutes, hours, days, months, quarters, and years. I\u2019ll also show you how you can group data by week.<\/p>\n\n\n\n

    \n
  1. Click any cell inside a table and insert a PivotTable (Insert >> Tables >> PivotTable<\/strong>).<\/li>\n\n\n\n
  2. Select Date<\/strong> and Units<\/strong>. When you select Date<\/strong>, Excel will automatically add Quarters and Years.<\/li>\n<\/ol>\n\n\n\n
    \"\"<\/figure>\n\n\n\n
      \n
    1. Uncheck them. Now the data is automatically grouped by months<\/li>\n<\/ol>\n\n\n\n
      \"\"<\/figure>\n\n\n\n
        \n
      1. In order to ungroup it, right-click one of the months and select Ungroup.<\/li>\n<\/ol>\n\n\n\n
        \"\"<\/figure>\n\n\n\n
          \n
        1. Now, each day has its own row.<\/li>\n<\/ol>\n\n\n\n
          \"\"<\/figure>\n\n\n\n

          Now, you can group dates the way you want.<\/p>\n\n\n\n

          Group by years<\/h2>\n\n\n\n
            \n
          1. Right-click any row inside the date column.<\/li>\n\n\n\n
          2. Click Group.<\/li>\n\n\n\n
          3. From the Grouping window, click Years<\/strong>.<\/li>\n<\/ol>\n\n\n\n
            \"\"<\/figure>\n\n\n\n

            The data is grouped into the years 2018 and 2019. Two years are present inside the table.<\/p>\n\n\n\n

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

            Group by month<\/h2>\n\n\n\n
              \n
            1. Right-click any row inside the date column.<\/li>\n\n\n\n
            2. Click Group.<\/li>\n\n\n\n
            3. From the Grouping window, click Months<\/strong>. We have only January and December and these two months will be displayed inside the PivotTable.<\/li>\n<\/ol>\n\n\n\n
              \"\"<\/figure>\n\n\n\n

              Group by days<\/h2>\n\n\n\n

              Grouping by days displays our data the same way as ungrouped PivotTable because each row in our data represents a single day. Only the way the date is formatted will change<\/a>.<\/p>\n\n\n\n

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

              You can\u2019t change the data formatting easily because the date is not formatted as a date (number really<\/a>) but as text. If you want to read more about formatting dates in PivotTables, you can read Jon\u2019s article<\/a>.<\/p>\n\n\n\n

              Group by weeks<\/h2>\n\n\n\n

              Now, we are going to group dates by weeks, what\u2019s different in this grouping is that you won\u2019t find Weeks<\/strong> in the grouping Window.<\/p>\n\n\n\n

              But we know that a week has 7 days<\/a>, so choose a day and set the number of days to 7.<\/p>\n\n\n\n

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

              This is how the result looks like.<\/p>\n\n\n\n

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

              In Excel, you can group and ungroup PivotTable dates in order to make data more readable. You can group dates by seconds, minutes,…<\/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 Dates in Pivot Table<\/title>\n<meta name=\"description\" content=\"Learn how to group dates in PivotTable in Excel. Easily group by seconds, minutes, hours, days, months, quarters, years and more with our guide.\" \/>\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-dates-in-pivottable\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Group Dates in Pivot Table\" \/>\n<meta property=\"og:description\" content=\"Learn how to group dates in PivotTable in Excel. Easily group by seconds, minutes, hours, days, months, quarters, years and more with our guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-09T13:24:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T23:47:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Group Dates in Pivot Table\",\"datePublished\":\"2019-01-09T13:24:31+00:00\",\"dateModified\":\"2024-03-27T23:47:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/\"},\"wordCount\":315,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/\",\"name\":\"Group Dates in Pivot Table\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png\",\"datePublished\":\"2019-01-09T13:24:31+00:00\",\"dateModified\":\"2024-03-27T23:47:30+00:00\",\"description\":\"Learn how to group dates in PivotTable in Excel. Easily group by seconds, minutes, hours, days, months, quarters, years and more with our guide.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Group Dates in Pivot Table\"}]},{\"@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 Dates in Pivot Table","description":"Learn how to group dates in PivotTable in Excel. Easily group by seconds, minutes, hours, days, months, quarters, years and more with our guide.","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-dates-in-pivottable\/","og_locale":"en_US","og_type":"article","og_title":"Group Dates in Pivot Table","og_description":"Learn how to group dates in PivotTable in Excel. Easily group by seconds, minutes, hours, days, months, quarters, years and more with our guide.","og_url":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/","article_published_time":"2019-01-09T13:24:31+00:00","article_modified_time":"2024-03-27T23:47:30+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Group Dates in Pivot Table","datePublished":"2019-01-09T13:24:31+00:00","dateModified":"2024-03-27T23:47:30+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/"},"wordCount":315,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/","url":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/","name":"Group Dates in Pivot Table","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png","datePublished":"2019-01-09T13:24:31+00:00","dateModified":"2024-03-27T23:47:30+00:00","description":"Learn how to group dates in PivotTable in Excel. Easily group by seconds, minutes, hours, days, months, quarters, years and more with our guide.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/01\/quarters-and-years.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/group-dates-in-pivottable\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Group Dates in Pivot Table"}]},{"@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\/3940"}],"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=3940"}],"version-history":[{"count":7,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3940\/revisions"}],"predecessor-version":[{"id":17333,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3940\/revisions\/17333"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=3940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=3940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=3940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}