The subtotals can't be moved to the left of the items, and to extract
the data, e.g. Avg YTD, from the pivot table with a GetPivotData
formula, the values must be visible in the pivot table.
You could make a copy of your pivot table on another worksheet, with a
setup as I described.
Then, in the cells to the left of you main pivot table, use GetPivotData
formulas to extract the required averages from the second pivot table.
For example, with the second pivot table on Sheet2, and the name Kym in
cell A6, enter this formula in cell B6:
=GETPIVOTDATA(Sheet2!$A$4,$A6 & " YTD[' ';Average]")
Put the season name, Aut, in cell C4
In cell C6, enter the formula:
=GETPIVOTDATA(Sheet2!$A$4,$A6 &" Season[" &C$4 &";Average]")
> This result changed the layout of PT and placed the subtotals on the right of
> data. Also I do not want the subtotal of both seasons, only one season and
[quoted text clipped - 50 lines]
>>>I hope I have explained this clearly and look forward to the always talented
>>>response.

Signature
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html
westy - 10 Mar 2007 00:08 GMT
Am having some trouble with this, have no problem with pivot change you have
suggested however what is the exact range or cell that I am putting the PT
into on in Sheet two. The formuals return errors, I'm not sure if pivot cells
is where pivot is meant to be pasted according to your formula ie what should
be in Sheet 2 A4
Also I tried the get pivot function on my existing layout - just entering =
and then clicking the average subtotal cell - the resulting formula was an
error.
> The subtotals can't be moved to the left of the items, and to extract
> the data, e.g. Avg YTD, from the pivot table with a GetPivotData
[quoted text clipped - 69 lines]
> >>>I hope I have explained this clearly and look forward to the always talented
> >>>response.
Debra Dalgleish - 10 Mar 2007 01:31 GMT
You're welcome.
The sample formula was based on a pivot table that started in cell A2,
and had a heading in cell A4.
There's a problem with the automatically generated GetPivotData formula
if you're using custom subtotals. It creates a formula like this:
=GETPIVOTDATA($A$4,"Kym YTD[' ';Data,Average]")
and you have to remove the Data, portion, to get this:
=GETPIVOTDATA($A$4,"Kym YTD[' ';Average]")
> Am having some trouble with this, have no problem with pivot change you have
> suggested however what is the exact range or cell that I am putting the PT
[quoted text clipped - 79 lines]
>>>>>I hope I have explained this clearly and look forward to the always talented
>>>>>response.

Signature
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html