ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Adding Month Year (https://www.excelbanter.com/excel-discussion-misc-queries/163191-adding-month-year.html)

Richard

Adding Month Year
 
I have a data set that has a column with date of service in the format of
mm/dd/yy. I would like to be able to pivot my data set based on mm/yy. Is
there a way I can convert from one format to other without manually inputting
the new column. I know I can reformat my column to appear as I wish, however
the pivot fuction still reads each day as its own data set.

Ex:

I have...12/06/06
I want...Dec-06
and pivot to show Dec-06, Jan-07, Feb-07, etc. for the rest of the rows as
appropriate.

Gary''s Student

Adding Month Year
 
In an adjacent column use:

=TEXT(A1,"mmm-yy") and Pivot on that column (days are avoided)
--
Gary''s Student - gsnu200750


"Richard" wrote:

I have a data set that has a column with date of service in the format of
mm/dd/yy. I would like to be able to pivot my data set based on mm/yy. Is
there a way I can convert from one format to other without manually inputting
the new column. I know I can reformat my column to appear as I wish, however
the pivot fuction still reads each day as its own data set.

Ex:

I have...12/06/06
I want...Dec-06
and pivot to show Dec-06, Jan-07, Feb-07, etc. for the rest of the rows as
appropriate.


Dave Peterson

Adding Month Year
 
You can group your dates by Month and year in the pivottable--but that field has
to have dates in each row--no empty cells, no text.

Rightclick on the field in the PT. Select Group and Show Detail, then Group.

Richard wrote:

I have a data set that has a column with date of service in the format of
mm/dd/yy. I would like to be able to pivot my data set based on mm/yy. Is
there a way I can convert from one format to other without manually inputting
the new column. I know I can reformat my column to appear as I wish, however
the pivot fuction still reads each day as its own data set.

Ex:

I have...12/06/06
I want...Dec-06
and pivot to show Dec-06, Jan-07, Feb-07, etc. for the rest of the rows as
appropriate.


--

Dave Peterson


All times are GMT +1. The time now is 08:44 PM.

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