Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Pivot tables, stupid problem

Hi all,
I have this newbies problem trying to format a pivot table in excel
2000. Hope someone can help me,

So I have sales by moths of diferent products and i want to add a
second grand total column, with the percentual totals of each product.
Right now it looks like this:

Name month1 month2 month3 total
prod1 10 12 20 42
prod2 12 12 12 36

And I want it to look like this:

Name month1 month2 month3 total %
prod1 10 12 20 42 54
prod2 12 12 12 36 46

Every time i try to put columns with (column %) i get this percentuals
also for each moth, but when i try to delete them, excel also deletes
the normal columns, so i get nothing in the end.
Thanks a lot just for reading, if someone can help, please do, i'm
completely lost

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Pivot tables, stupid problem

Here are two solutions, neither of them neat.
Method 1:
Add external data to the Pivot Table.
Con: External data can be overwritten by PT
Con: External data becomes invalid when PT moved
Con: External data must be expanded/contracted to fit changing PT size
Pro: PCT formulas update when selecting/deselecting items.
The PT is located at A3 and might look like this:

Sum of Qty Month
Products Jan Feb Mar Grand Total ProductPCT
apple 29 11 21 61 34.46%
pear 22 30 13 65 36.72%
orange 23 10 18 51 28.81%
Grand Total 74 51 52 177

ProductPCT is the added external data.
Build the formula by dividing 61 by 177 and formatting as percent.
Click on the indicated cells, to get this formula:
=GETPIVOTDATA("Qty",$A$3,"Products","apple")/GETPIVOTDATA("Qty",$A$3)
Replace "apple" with A5, so you can drag the formula down.

Method 2:
Add a calculated field for ProdPCT and two calculated fields
to replace Grand Totals. It might look like this.

Sum of Qty Month
Products Jan Feb Mar ProdTotal ProdPCT
apple 29 11 21 61 34.46%
pear 22 30 13 65 36.72%
orange 23 10 18 51 28.81%
MonthTotal 74 51 52 177 100.00%

It solves some of the Cons of #1, but has its own Cons.
Way more difficult.




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Pivot tables, stupid problem

It's OK I guess i can write a macro that fixes the percentual totals
column to the right of the pivot table. Thanks a lot.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Pivot tables, stupid problem

Thanks a lot. I guess i can write a macro that fixes the percentual
total column to the right hand side of the pivot table. Thx.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
synchronising pivot tables Johngio Excel Discussion (Misc queries) 1 July 31st 06 02:08 PM
2 Pivot tables on 1 sheet TheRook Excel Discussion (Misc queries) 1 June 14th 06 01:01 PM
Please help: Pivot Tables problem James Yeang Excel Discussion (Misc queries) 5 April 25th 06 01:45 AM
Problem with times in pivot tables and graphs [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 06:59 AM
How does the term 'pivot' apply to Excel's Pivot tables and Pivot. stvermont Excel Discussion (Misc queries) 1 February 17th 05 01:34 AM


All times are GMT +1. The time now is 03:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"