Solved

Excel 2010 - Calculate from multiple Pivot columns

Posted on 2011-09-02
3
287 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
  • 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 31

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now