Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I display both a sum total and an average in pivot table?

Hi there,
I'm trying to construct a pivot table where I'd like to display both the sum
total for a column, AND THEN the average directly below it.

I can do it by dragging the field into the data area a second time, but then
I'm listing duplicate amounts for all but the total (which is a sum total in
one column and an average in the next). I'd like to avoid that replication if
possible.

Someone told me I could do it using Subtotals ... but that option is grayed
out.

Thanks for any advice you can provide!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 104
Default How do I display both a sum total and an average in pivot table?

Catarina,
Yes, you can use Subtotals, but you don't add them to the pivot table, you
need to go back to the list. If the Subtotals option is still greyed out, and
you're using Excel 2003, you need to convert your list back to a range.

In the list, Sort on the column that you want to subtotal the list by, then
Data|Subtotals. Choose the column that you just sorted by in the 'At each
change in', then choose the sum function and put ticks in the required 'Add
subtotals to' columns. Click OK. Then do the same again for the average, but
before you click OK, remove the tick from the 'Replace current subtotals' box.
--
Hope this helps,
MarkN


"catarina_miguel" wrote:

Hi there,
I'm trying to construct a pivot table where I'd like to display both the sum
total for a column, AND THEN the average directly below it.

I can do it by dragging the field into the data area a second time, but then
I'm listing duplicate amounts for all but the total (which is a sum total in
one column and an average in the next). I'd like to avoid that replication if
possible.

Someone told me I could do it using Subtotals ... but that option is grayed
out.

Thanks for any advice you can provide!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I display both a sum total and an average in pivot tabl

Hi MarkN,

Thank you for this reponse. I could indeed add the two functions to the
original worksheet. When I tried to bring this calculated information into
the pivot table, however, I got an error: "Because your source data has
automatic subtotals, Microsoft Office Excel cannot create a Pivot Table
report from it. For information about how to remove the subtotals, click
Help."

So maybe I misunderstood ... when you wrote, "you don't add them to the
pivot table, you need to go back to the list" were you in fact saying there's
no way to display this information in a pivot table?

Thanks again!


"MarkN" wrote:

Catarina,
Yes, you can use Subtotals, but you don't add them to the pivot table, you
need to go back to the list. If the Subtotals option is still greyed out, and
you're using Excel 2003, you need to convert your list back to a range.

In the list, Sort on the column that you want to subtotal the list by, then
Data|Subtotals. Choose the column that you just sorted by in the 'At each
change in', then choose the sum function and put ticks in the required 'Add
subtotals to' columns. Click OK. Then do the same again for the average, but
before you click OK, remove the tick from the 'Replace current subtotals' box.
--
Hope this helps,
MarkN


"catarina_miguel" wrote:

Hi there,
I'm trying to construct a pivot table where I'd like to display both the sum
total for a column, AND THEN the average directly below it.

I can do it by dragging the field into the data area a second time, but then
I'm listing duplicate amounts for all but the total (which is a sum total in
one column and an average in the next). I'd like to avoid that replication if
possible.

Someone told me I could do it using Subtotals ... but that option is grayed
out.

Thanks for any advice you can provide!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 104
Default How do I display both a sum total and an average in pivot tabl

Hi Catarina,
Firstly, a pivot table summarises a list, inserting automatic subtotals
destroys the structure of the list so if you've applied subtotals, you can't
create a pivot table.

Secondly, you can display the sum and average in a pivot table with no
duplicated data being displayed:
-Drag the same field into (the data items area of) the pivot table twice.
You will have two 'sum' fields.
-The field button will be labelled 'Data' and you'll have 'Sum of xxx' and
'Sum of xxx2'. Righ-click over one of these (not the Data label) and choose
Field Settings...
-Click on Average and press OK.

I think this is what you want but post back if you need anything else.
--
Cheers,
MarkN


"catarina_miguel" wrote:

Hi MarkN,

Thank you for this reponse. I could indeed add the two functions to the
original worksheet. When I tried to bring this calculated information into
the pivot table, however, I got an error: "Because your source data has
automatic subtotals, Microsoft Office Excel cannot create a Pivot Table
report from it. For information about how to remove the subtotals, click
Help."

So maybe I misunderstood ... when you wrote, "you don't add them to the
pivot table, you need to go back to the list" were you in fact saying there's
no way to display this information in a pivot table?

Thanks again!


"MarkN" wrote:

Catarina,
Yes, you can use Subtotals, but you don't add them to the pivot table, you
need to go back to the list. If the Subtotals option is still greyed out, and
you're using Excel 2003, you need to convert your list back to a range.

In the list, Sort on the column that you want to subtotal the list by, then
Data|Subtotals. Choose the column that you just sorted by in the 'At each
change in', then choose the sum function and put ticks in the required 'Add
subtotals to' columns. Click OK. Then do the same again for the average, but
before you click OK, remove the tick from the 'Replace current subtotals' box.
--
Hope this helps,
MarkN


"catarina_miguel" wrote:

Hi there,
I'm trying to construct a pivot table where I'd like to display both the sum
total for a column, AND THEN the average directly below it.

I can do it by dragging the field into the data area a second time, but then
I'm listing duplicate amounts for all but the total (which is a sum total in
one column and an average in the next). I'd like to avoid that replication if
possible.

Someone told me I could do it using Subtotals ... but that option is grayed
out.

Thanks for any advice you can provide!

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
Custom field in Pivot Table? [email protected] Excel Discussion (Misc queries) 1 August 8th 06 07:20 PM
in a pivot table, can the average include blank entries? Aaron Excel Discussion (Misc queries) 0 March 3rd 06 07:14 PM
Erroneous Grand Total of calculated fields in pivot table JP Excel Discussion (Misc queries) 2 January 26th 06 05:50 PM
Sub Total In Pivot Table Adam Excel Discussion (Misc queries) 1 November 22nd 05 05:36 PM
% of running total in pivot table eggman Excel Discussion (Misc queries) 0 October 13th 05 04:31 PM


All times are GMT +1. The time now is 06:40 PM.

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

About Us

"It's about Microsoft Excel"