Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

pivot tables

ResolvedVersion 2007

Paul has attended:
Excel Advanced course
Access Intermediate course
Access Advanced course

Pivot tables

Can I add a new column to a pivot table which will refresh when the pivot table is refreshed? For example I have a pivot table with columns showing two different fileds. I have added a column which divides the first by the second, but oit would be really helpful for this column to recalcualte which the fllter is applied, or when data in the pivot table itslf is sorted in a different way.

RE: Pivot tables

Hi Paul

I also created a pivot table example which caculates one colunm divided by another. Mine calculates the % of the row grand total.

As you say the formula doesn't update if the row labels are sorted. For example if the formula =B5/F5 is typed in it won't change if the value in B5 is moved due to sorting.

But if you create the formula stating with = then click on B5 a Getpivotdata formula is created. For example:
=GETPIVOTDATA("Salary",$A$3,"Region","East","Department","Accounts")/GETPIVOTDATA("Salary",$A$3,"Department","Accounts")

The formula is longer but allows the Accounts total to be repositioned in the pivot table. The drawback of the Getpivotdata formula needs to be entered for every line. Ok for a small number of row label values.

Something else to consider -
In the Values part of the Pivot Table field list try clicking on
Value Field Settings...
Click the tab Show value as
Select one such as % of Row

I hope this helps with your question. If not you may need to turn on the Excel Option
Formulas, Use GetPivotdata functions with pivottable references.

Regards
Doug Dunn
Best STL

Mon 5 Mar 2012: Automatically marked as resolved.

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Quickly insert a function

In Excel 97 and 2000 it was known as the Paste Function dialog box, these days it's known as the Insert Function dialog box. Regardless, one has to choose Insert|Function. or the fx button to open it up. There is, however, a non-mousey way to get hold of the Insert Function dialog box: press Shift+F3 in a blank cell to open the Insert Function dialog.

Press Shift+F3 after a function name and open bracket to open the Function Arguments dialog. For example, type =VLOOKUP( into a cell and press Shift+F3 to obtain a detailed description of VLOOKUP's arguments.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.