Solved

Excel 2010 - Calculate from multiple Pivot columns

Posted on 2011-09-02
3
288 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 32

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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,…
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
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…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

895 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

16 Experts available now in Live!

Get 1:1 Help Now