Group Dates in Pivot Table

mrchonginhk

Well-known Member
Joined
Dec 3, 2004
Messages
679
I have a simple Pivot table just Dates plus Data.

I then right click the Date heading and tried to group dates.

However, it said "Cannot Group that Selection".
I have already removed all blank cell in Date field.

What can be wrong ??

Help !!!
 
Cannot Group that selection

highlight the column of 'dates', go to data | text to columns | hit next twice | select date & DMY from the drop down | hit finished

I tried this solution. My original data was a cut and paste, so I figured that was what was causing the problem. I did not Paste Special.

This solution did show that =isnumber(ref) was false. However, after I did the quoted solution, and afterwards =isnumber(ref) was true, I still cannot not group that selection of dates.

Any guidance?

Thanks
k
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
are there any gaps in the data?

check the pivot table source range (in the wizard) - does it inadvertently include an extra, blank row at the bottom of your data?
 
Upvote 0
are there any gaps in the data?

check the pivot table source range (in the wizard) - does it inadvertently include an extra, blank row at the bottom of your data?

Sorry for the delay...
Data goes from A1:E36, No empty cells or extra rows.

When I originally made the pivot table, I selected columns A:E and they extended down to Excel limits. So, I guess I do indeed have extra rows. However, when I check the pivot table source range in the wizard, it only shows cells with data.

If I do not include the extra blank rows, refreshing does not include the newest row just input.

I can not imagine that if I want to group, I have to make a new pivot table that contains only cells with data - no blanks.

Is that correct?
 
Upvote 0
You can use a dynamic range to determine the size of the table by employing one of many potential methods...the Offset formula being one..

http://www.ozgrid.com/Excel/DynamicRanges.htm

excellent resource linked above, rather than retyping it....

That way you can have the pivot table contract and expand to suit the data present and not have blank rows.
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,383
Members
449,445
Latest member
JJFabEngineering

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