Standard Deviation and weighted average of a subset with duplicate values

vjayf1

New Member
Joined
Jan 25, 2018
Messages
1
Hi, I have a data set which has subsets having duplicate values like this:

[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Customer[/TD]
[TD="width: 64"]Score[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]0.253[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]0.253[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]0.253[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]0.356[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]0.356[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]0.245[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]0.245[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]0.378[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]0.425[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]0.425[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]0.235[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]0.235[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]0.39[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]0.38[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]0.39[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]0.45[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]0.45[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]0.51[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]0.52[/TD]
[/TR]
</tbody>[/TABLE]

I used the formula =STDEV(IF($A$2:$A$34894=A2,$B$2:$B$34894)). But it gives me the same standard deviation value for the entire set.

Can someone please help me with an appropriate formula?
Also, if i have weights for each individual row, is there a formula that can give me a weighted average for each subset?

Thanks in advance!
 
Your formula is an array formula and must be entered with CTRL-SHIFT-ENTER.

Put the cursor in the cell with the formula.
-press F2 to edit
-then CTRL-SHIFT-ENTER.
Excel Workbook
ABCD
1CustomerScore
210.2530.093729
310.2530.056415
410.253
510.356
610.356
720.245
820.245
920.378
1030.425
1130.425
1230.235
1330.235
1430.39
1530.38
1630.39
1740.45
1840.45
1940.51
2040.52
Sheet
 
Upvote 0

Forum statistics

Threads
1,226,796
Messages
6,193,048
Members
453,772
Latest member
aastupin

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