ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Change quarters in Pivot table when grouping (https://www.excelbanter.com/excel-discussion-misc-queries/258539-change-quarters-pivot-table-when-grouping.html)

Jugglertwo

Change quarters in Pivot table when grouping
 
I want to change the quarters when I do pivot table grouping by dates.
Is this possible?
thanks!
Jugglertwo

Dave Peterson

Change quarters in Pivot table when grouping
 
You don't like the cutoffs that MS uses?

If that's the question, then I add an extra field to raw data that returns the
quarter (and year). Then use that in my pivottable.

I like this format:

FY2010Q01
or
2010-01
so that I can sort in nice ascending/descending order.

If the quarters start on the first of a month, then I use this formula to show
the fiscal year and quarter:

="FY"&YEAR(A1)-(MONTH(A1)<#)&"-Q"&INT(1+MOD(MONTH(A1)-#,12)/3)
Where # represents the first month of the fiscal year.

So if the fiscal year starts on July 1st, then I'd use:
="FY"&YEAR(A1)-(MONTH(A1)<7)&"-Q"&INT(1+MOD(MONTH(A1)-7,12)/3)



Jugglertwo wrote:

I want to change the quarters when I do pivot table grouping by dates.
Is this possible?
thanks!
Jugglertwo


--

Dave Peterson


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

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