Solved

Excel 2010 - Calculate from multiple Pivot columns

Posted on 2011-09-02
3
294 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:csehz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Author Comment

by:csehz
ID: 36472755
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
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 36472764
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
0
 
LVL 1

Author Comment

by:csehz
ID: 36472783
Well Rob that is really Voila :-)))

Thanks very much it works
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question