MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 21st, 2002, 08:43 PM   #1
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

I posted a query a while back about the GETPIVOTDATA function being reluctant to read in Data such as

GETPIVOTDATA(PivotTable1,"1 VA A 5 Sum of CURR-SUM-***")

because it had 2 fields with numbers in, you might recall I said that:

GETPIVOTDATA(PivotTable1,"1 VA A Sum of CURR-SUM-***")

worked no problems.

Well, sadly becuse of this problem I have had to restructure my pivot tables to now look like this (i.e. having some column fields instead of them all being row field, which I would have preferred as then I could have used the GETPIVOTDATA if it had worked to get what I wanted)

Microsoft Excel - 1-4NetPremPTgen.xls______________Running: xl2000 : OS = Windows (32-bit) 4.10
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp
F7=

A
B
C
D
E
F
1


VAL-CLASSDTI-TYPEREC-TYPE
2


A


3


1


4
VAL-TYPEDataFPPPP

5
5Sum of NUM1479780109784

6

Sum of CURR-SUM-ASSD278297215186524

7

Sum of ADDL-BEN00

PivotSheet

To see the formula in the cells just click on the cells hyperlink

The above image was automatically generated by[HtmlMaker V1.25]
If you want this code, click here and Colo will email the file to you
This code was graciously allowed to be modified: by Ivan F Moala All credit to Colo


On the worksheet I am setting up a function that picks up the maximum of CURR-SUM-ASSD and ADDL-BEN every time. Now I have to use the cell references to do this, I would rather use a MAX(GETPIVOTDATA(),GETPIVOTDATA()) thing for obvious reasons rather than MAX(D6:D7) say.

So basically, if I could get the GETPIVOTDATA() functions to read off when 2 fields are numbers then this would solve my problems and would mean I could set up my tables in the more desirable structure like this:

Microsoft Excel - 1-4NetPremPTgen.xls______________Running: xl2000 : OS = Windows (32-bit) 4.10
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp
F7=0

A
B
C
D
E
F
1
VAL-TYPEVAL-CLASSDTI-TYPEREC-TYPEDataTotal
2
5A1FPPSum of NUM1479780
3




Sum of CURR-SUM-ASSD27829721
4




Sum of ADDL-BEN0
5



PPSum of NUM109784
6




Sum of CURR-SUM-ASSD5186524
7




Sum of ADDL-BEN0
PivotSheet

To see the formula in the cells just click on the cells hyperlink

The above image was automatically generated by[HtmlMaker V1.25]
If you want this code, click here and Colo will email the file to you
This code was graciously allowed to be modified: by Ivan F Moala All credit to Colo


Many thanks,

RET79

PS. to Ivan and Colo, your HTML maker is absolutely superb, am proud to be using it!


[ This Message was edited by: RET79 on 2002-05-21 19:46 ]
RET79 is offline   Reply With Quote
Old May 21st, 2002, 08:53 PM   #2
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

Typical, with this small sample of the pivot table I have given you, it has actually worked! Maybe the problems occur with very large pivot tables?? Anyway, this is what I am hoping to achieve with the full pivot table

Microsoft Excel - 1-4NetPremPTgen.xls______________Running: xl2000 : OS = Windows (32-bit) 4.10
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp
F14=

A
B
C
D
E
F
1
VAL-TYPEVAL-CLASSDTI-TYPEREC-TYPEDataTotal
2
5A1FPPSum of NUM1479780
3




Sum of CURR-SUM-ASSD27829721
4




Sum of ADDL-BEN0
5



PPSum of NUM109784
6




Sum of CURR-SUM-ASSD5186524
7




Sum of ADDL-BEN0
8






9






10

:alert('=GETPIVOTDATA(A1,%225%20A%201%20FPP%20Sum%20of%20NUM%22)')>1479780



11

:alert('=GETPIVOTDATA(A1,%225%20A%201%20FPP%20Sum%20of%20CURR-SUM-ASSD%22)')>27829721



12






13

:alert('=MAX(GETPIVOTDATA(A1,%225%20A%201%20FPP%20Sum%20of%20NUM%22),GETPIVOTDATA(A1,%225%20A%201%20FPP%2 0Sum%20of%20CURR-SUM-ASSD%22))')>27829721



14

:alert('=MAX(F2,F3)')>27829721



PivotSheet

To see the formula in the cells just click on the cells hyperlink

The above image was automatically generated by[HtmlMaker V1.25]
If you want this code, click here and Colo will email the file to you
This code was graciously allowed to be modified: by Ivan F Moala All credit to Colo


RET79

[ This Message was edited by: RET79 on 2002-05-21 19:56 ]
RET79 is offline   Reply With Quote
Old May 21st, 2002, 08:59 PM   #3
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

Just to avoid any confusion, although it makes no sense why I would want to pick out max of NUM and CURR-SUM-ASSD, I did that here since in the sample I had the ADDL-BEN field giving zero, so changed my mind from the first posting just to make sure it worked.

Sorry for any confusion, the main problem is reading the data consistently from the pivot tables.

RET79

[ This Message was edited by: RET79 on 2002-05-21 20:02 ]
RET79 is offline   Reply With Quote
Old May 21st, 2002, 10:01 PM   #4
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

OK, my latest guess is that maybe there is a link between this function not working consistently and the size of your pivot tables. My pivot tables are very large, got about 30 data fields summarised based on a set of data 8000 rows * 40 columns.
Typically 5 pivoting fields then the sum of 30 of the columns with 5 columns from the original data being left out of the pivot table layout. Also row and column totals not in my tables.

One of these days I will write a posting with no need for editing.....

RET79

[ This Message was edited by: RET79 on 2002-05-21 21:02 ]
RET79 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes