Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Percentages of Subtotals for Pivot Tables

I would like to generate percentages as percents of the subtotals within a
pivot table, but have not figured out how to do so. It seems crazy to me
that this would not be a built in feature.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Percentages of Subtotals for Pivot Tables

Unfortunately, there's no built in calculation to show percent of
subtotal. Perhaps you could change the layout, and put one field in the
column area and one in the row area. Then, in the data area, and
calculate the data field as % of Column, as shown he

http://www.contextures.com/xlPivot10.html

Craig wrote:
I would like to generate percentages as percents of the subtotals within a
pivot table, but have not figured out how to do so. It seems crazy to me
that this would not be a built in feature.



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 83
Default Percentages of Subtotals for Pivot Tables

Problem:
I need to get my pivot table to return a percent of subtotal instead of a
percent of column.
Pivot Data (columns A:C with desired result in column D):

Region State Sales Percent of Sales
North Montana 10 10 %
Idaho 90 90 %
North Total 100 100 %
West Calif 50 25 %
Oregon 100 50 %
Arizona 50 25 %
West Total 200 100 %

I can easily do this using the Show Value As % of Column option with field
settings for the Sales Field, but as the description implies this gives me
just the percent of the grand total for the column rather than for the
subtotals.

Unfortunately, PivotTables can't do the calculation I need.

Workaround:
Put the following formula in cell D5 and then just copy down in Column D to
the last row of the pivot table in columns A:C.

=C5/INDEX(A5:INDIRECT("C"&COUNTA(C:C)+3),MATCH("*
total",A5:INDIRECT("A"&COUNTA(C:C)+3),0),3)

For this to work you should have the Pivot table arranged in Tabular form
and the first row item should be in row 5 (column headings, page fields, etc.
in rows 1 - 4).
Also, don't override the default Subtotal names since the formula looks for
the literals *total* to find the subtotal rows. And be sure to put the
formula in col D before you do any filtering in the pivot table. If you make
any big changes to the pivot table, just reenter the formula and copy it down
again.


"Craig" wrote:

I would like to generate percentages as percents of the subtotals within a
pivot table, but have not figured out how to do so. It seems crazy to me
that this would not be a built in feature.

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
Percentages in Pivot Tables Kate T Excel Discussion (Misc queries) 1 December 6th 07 05:33 PM
Pivot Tables and percentages dmonder Excel Discussion (Misc queries) 0 April 24th 07 03:40 PM
Calculating percentages in pivot tables on subtotals David Ruderman - Chapman University Excel Worksheet Functions 1 November 24th 05 04:54 PM
Percentages in Pivot Tables ajames Excel Discussion (Misc queries) 1 September 19th 05 06:06 PM
Pivot Tables & Percentages Stevielew Excel Discussion (Misc queries) 1 December 23rd 04 03:13 PM


All times are GMT +1. The time now is 08:38 AM.

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"