pivot table values help

kobiianardo

New Member
Joined
May 13, 2011
Messages
4
hello i have a table like the following that that i pivotted

original table (two columns, one a#, second its weight)

A# weight
a1 13
a1 13.5
a1 11.3
a2 7
a2 9
a3 25


is there a way for pivot table to do (two columns):

A# stdev(weight)/avg(weight)
a1 0.1
a2 0.17
a3 0


thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
thanks lor, it looks like the article in the knowledge base was doing this:

columnA: quarter
columnB:
stdev(quarter-x-revenue-thisyear)/stdev(quarter-x-revenue-lastyear)
columnC:
avg(quarter-x-revenue)


i'm looking for a way to calculate the "standard deviation as a percentage of the mean". i think this requires me to be able to directly do something like this on a PT:

columnA: groupID
columnB: average of weights grouped by ID
columnC: standard deviation of weight grouped by ID
columnD: divide column C by D

incidentally what i want is something like this simple SQL statement:
select groupID, Stdev(weight)/Avg(weight) from a_table_i_made group by groupID



it's not hard to do if i just copy the pivot table's value elsewhere and apply a formula, i'm just curious if there's a consistent way with PT to do this
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top