Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Pivot table: Custom "Summarize by" functions

Hi

Add your Value field to the Data area 3 times,
1 with the setting of Average,
2 with the setting of Max and
3 with the setting of Min
Drag the Data button on the PT and drop it on Total, and you will see
the 3 values side by side
Average Max Min
Group1
Group2

To get your difference between Max and Min I think you will need to do
the calculation outside of the PT in a column to the right, using the
GETPIVOTDATA function. In my case, the formula looked like this

=GETPIVOTDATA("Max of Value2",$F$2,"Category",F4)-
GETPIVOTDATA("Min of Value2",$F$2,"Category",F4)

Pointing to the various cells on the PT and letting Excel create the
formula, it puts the actual Category name or Number where I show F4 in
the formula. I changed it to the cell location of the Category number,
which then allowed it to be copied down.

If you need more help on GETPIVOTDATA (and indeed on PT's) then go to
Debar Dalgleish's site
http://www.contextures.com/xlPivot06.html
--
Regards

Roger Govier


"kestasjk" wrote in message
...
Is there any way to have custom ways of summarizing data in a pivot
table?

I have some grouped values etc, and I want the average for each group
and
the MAX of the group minus the MIN of the group.

It seems that you can run a formula on each individual row that gets
entered
(though I haven't figured out how), and you can run a formula on the
SUM of a
certain group of data, but you don't seem to be able to, say, subtract
the
MIN from the MAX of a group of data. The summary functions listed
include
SUM, COUNT, VAR, MAX, MIN, etc, but I can't see any way of combining
these.

When I enter a formula and do Column1 * 5, it gives me the sum of each
Column1 group * 5, when I do COUNT(Column1) it gives me 1, etc. I want
MAX(Column1) - MIN(Column1) to give me the max of the group minus the
min of
the group.

Does anyone know the most elegant way to do this?

Thanks a lot,
Kestas



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
Pivot table "summarize" default Neil Webber Excel Worksheet Functions 2 March 9th 07 03:32 PM
Deleted the pivot table - continue to get the "overlap" error message [email protected] Excel Discussion (Misc queries) 0 September 27th 06 04:07 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
can we convert "2 days 16 hrs" to " 64hrs" using excel functions chris Excel Worksheet Functions 5 April 24th 06 12:53 AM
"Show Field List" in Pivot Table Toolbar doesn't work Flyer27 Excel Discussion (Misc queries) 0 April 12th 06 12:05 AM


All times are GMT +1. The time now is 04:50 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"