ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Grouping dates in pivot table by quarters (https://www.excelbanter.com/excel-discussion-misc-queries/176041-grouping-dates-pivot-table-quarters.html)

nadine

Grouping dates in pivot table by quarters
 
I created several pivot tables which contain information by month. In order
to reduce the number of months I would like to group them by quarters but
this does not work! I already checked the data base and chose yyyy/mm for
the data but still I get the message 'cannot group for this selection'. There
are no empty cells either. Anyone got an idea please?
I use excel 2002.

Roger Govier[_3_]

Grouping dates in pivot table by quarters
 
Hi Nadine

Grouping by Date fails if there are empty cells, or cells containing Text
values.
Although you say that you chose yyyy/mm as the format for the column, that
will not alter the underlying entries in the cells if they were entered as
text as opposed to true Excel dates.

To check, using a spare column on your sheet, enter
=ISNUMBER(A2) (assuming the data is in column A, adjust to suit)
Copy down as far as required.
If the values are Dates, the result will be TRUE. Check to ensure that all
are true.

--
Regards
Roger Govier

"Nadine" wrote in message
...
I created several pivot tables which contain information by month. In
order
to reduce the number of months I would like to group them by quarters but
this does not work! I already checked the data base and chose yyyy/mm for
the data but still I get the message 'cannot group for this selection'.
There
are no empty cells either. Anyone got an idea please?
I use excel 2002.



Steve

Grouping dates in pivot table by quarters
 
If you had a column added to your data, you could do a vlookup on a table
which had the date range for a quarter, or a table with months 1,2,3 in 1st
quarter,etc.
Steve

"Roger Govier" wrote:

Hi Nadine

Grouping by Date fails if there are empty cells, or cells containing Text
values.
Although you say that you chose yyyy/mm as the format for the column, that
will not alter the underlying entries in the cells if they were entered as
text as opposed to true Excel dates.

To check, using a spare column on your sheet, enter
=ISNUMBER(A2) (assuming the data is in column A, adjust to suit)
Copy down as far as required.
If the values are Dates, the result will be TRUE. Check to ensure that all
are true.

--
Regards
Roger Govier

"Nadine" wrote in message
...
I created several pivot tables which contain information by month. In
order
to reduce the number of months I would like to group them by quarters but
this does not work! I already checked the data base and chose yyyy/mm for
the data but still I get the message 'cannot group for this selection'.
There
are no empty cells either. Anyone got an idea please?
I use excel 2002.




nadine

Grouping dates in pivot table by quarters
 


"Roger Govier" wrote:

Hi Nadine

Grouping by Date fails if there are empty cells, or cells containing Text
values.
Although you say that you chose yyyy/mm as the format for the column, that
will not alter the underlying entries in the cells if they were entered as
text as opposed to true Excel dates.

To check, using a spare column on your sheet, enter
=ISNUMBER(A2) (assuming the data is in column A, adjust to suit)
Copy down as far as required.
If the values are Dates, the result will be TRUE. Check to ensure that all
are true.

--
Regards
Roger Govier

"Nadine" wrote in message
...
I created several pivot tables which contain information by month. In
order
to reduce the number of months I would like to group them by quarters but
this does not work! I already checked the data base and chose yyyy/mm for
the data but still I get the message 'cannot group for this selection'.
There
are no empty cells either. Anyone got an idea please?
I use excel 2002.


Hello Roger,

You were right indeed! I tried out the formula =number and all the results
were 'not true'. I'll contact our ICT-service in order to try and change the
information into dates. Thank you very much!

nadine

Grouping dates in pivot table by quarters
 


"Steve" wrote:

If you had a column added to your data, you could do a vlookup on a table
which had the date range for a quarter, or a table with months 1,2,3 in 1st
quarter,etc.
Steve


Hi Steve,
This might indeed be an option but since the data covers different years, I
believe it would take too many entries in the formula...



"Roger Govier" wrote:

Hi Nadine

Grouping by Date fails if there are empty cells, or cells containing Text
values.
Although you say that you chose yyyy/mm as the format for the column, that
will not alter the underlying entries in the cells if they were entered as
text as opposed to true Excel dates.

To check, using a spare column on your sheet, enter
=ISNUMBER(A2) (assuming the data is in column A, adjust to suit)
Copy down as far as required.
If the values are Dates, the result will be TRUE. Check to ensure that all
are true.

--
Regards
Roger Govier

"Nadine" wrote in message
...
I created several pivot tables which contain information by month. In
order
to reduce the number of months I would like to group them by quarters but
this does not work! I already checked the data base and chose yyyy/mm for
the data but still I get the message 'cannot group for this selection'.
There
are no empty cells either. Anyone got an idea please?
I use excel 2002.





All times are GMT +1. The time now is 07:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com