I have a table of bond maturity dates which I want to group by year.
When I create the pivot table, then try to Group the maturity date column, I get
the message quot;Cannot group that selectionquot;
This normally happens if I have a non-date in the column of data, but I have
checked the data very carefully and am sure every cell is a valid date.
Is there anything else I can look for? If it means anything, the dates extend
out to 2053.
--
Regards,
Fred
Any chance you included too many rows (and have an empty cell in that field)?
If you delete the existing pivottable and recreate it, does it work ok?
Fred Smith wrote:
gt;
gt; I have a table of bond maturity dates which I want to group by year.
gt;
gt; When I create the pivot table, then try to Group the maturity date column, I get
gt; the message quot;Cannot group that selectionquot;
gt;
gt; This normally happens if I have a non-date in the column of data, but I have
gt; checked the data very carefully and am sure every cell is a valid date.
gt;
gt; Is there anything else I can look for? If it means anything, the dates extend
gt; out to 2053.
gt;
gt; --
gt; Regards,
gt; Fred
--
Dave Peterson
Your reply pointed me in the right direction.
My data table actually contains entries for bonds, stocks, etc. I was using a
Page variable to select only the bonds. When I sorted the data by class, then
specified a pivot table range of only the bond entries, then it let me group the
maturity dates.
Now I just have to program this in VBA.
Thanks for your help.
--
Regards,
Fredquot;Dave Petersonquot; gt; wrote in message
...
gt; Any chance you included too many rows (and have an empty cell in that field)?
gt;
gt; If you delete the existing pivottable and recreate it, does it work ok?
gt;
gt; Fred Smith wrote:
gt;gt;
gt;gt; I have a table of bond maturity dates which I want to group by year.
gt;gt;
gt;gt; When I create the pivot table, then try to Group the maturity date column, I
gt;gt; get
gt;gt; the message quot;Cannot group that selectionquot;
gt;gt;
gt;gt; This normally happens if I have a non-date in the column of data, but I have
gt;gt; checked the data very carefully and am sure every cell is a valid date.
gt;gt;
gt;gt; Is there anything else I can look for? If it means anything, the dates extend
gt;gt; out to 2053.
gt;gt;
gt;gt; --
gt;gt; Regards,
gt;gt; Fred
gt;
gt; --
gt;
gt; Dave Peterson
- Oct 05 Fri 2007 20:39
Grouping dates in a pivot table
close
全站熱搜
留言列表
發表留言