MrsAlice

New Member
Joined
May 8, 2012
Messages
26
Hello,

How do I group dates in a pivottable where the source table looks like this (dates are dd-mm-yyyy)?

ProductPackaging1-1-20151-2-20151-3-20151-4-2015
Product ABox1234
Product BBox2345
Product BIndividual5678

<tbody>
</tbody>

Grouping just doesn't seem to be an option, unless I reformat the table to look like this:

ProductPackagingDateNumber
Product ABox1-1-20151
Product ABox1-2-20152
Product ABox1-3-20163
Product ABox1-4-20154
Product BBox1-1-20152
Product BBox1-2-20153
Product BBox1-3-20154
Product BBox1-4-20155
Product BIndividual1-1-20165
Product BIndividual1-2-20156
Product BIndividual1-3-20157
Product BIndividual1-4-20158

<tbody>
</tbody>

The actual source table contains many more attributes and dates, so if possible I'd like to avoid doing this (not even sure how). Are there any alternatives?

Just to be sure we're on the same page I've included an image with how I'd like the date filter option to look below:
date-grouping.png


Many thanks in advance for any advice :eek:.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You can't with your source table layout because they are separate fields. If you have access to power query / get and transform, then you could perhaps use that to unpivot the data to get it into your second layout.
 
Upvote 0
Glad to help. :)
 
Upvote 0

Forum statistics

Threads
1,216,124
Messages
6,128,995
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top