Excel 2010 - Calculate from multiple Pivot columns

csehz
csehz used Ask the Experts™
on
Dear Experts,

Sorry for the similiar question than some minutes ago, but I realized that my live example is more complex.

Could you please advise in the attached file how the formula should be in F5 column, to be able to copy down to cells F6:F12?

Hard for me to follow that how it should be if there are three Row labels as category

thanks,
CalcFromPivotColumnsComplex.xlsx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
csehzIT consultant

Author

Commented:
Changing the formula for example to

=GETPIVOTDATA("Sum of Stock";$A$3;"Category";A5;"Session";B5;"Month";C5)-GETPIVOTDATA("Sum of Standard";$A$3;"Category";"A";"Session";"Q2";"Month";"Apr")


it is doing errors in cells F7, F9, F10 because there is no A column value in Category
Finance Analyst
Commented:
This can be achieved with a calculated field within the pivot table.

Put the cursor in the header row of the pivot table. In the pivot table toolbar, click the PivotTable drop down menu and select Formulas, Calculated field.

In name give the formula a Name
In Formula, replace the = 0 with =Stock-Standard
Click Add.

There will be a warning message advising that you are overwriting existing data, your current GETPIVOTDATA formula, click OK.

Voila!

Thanks
Rob H
csehzIT consultant

Author

Commented:
Well Rob that is really Voila :-)))

Thanks very much it works

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial