Need help calculating St Deviation of Dynamic List

GetHitFooL

New Member
Joined
May 19, 2015
Messages
13
Good Afternoon Guys!

So here is my problem. I have a list of names on sheet 1, roughly 60 different people. Then on sheet two that contains all my data, I have 2000 rows which includes everyones numbers. In column D of sheet 2 I have the names and in column K I have the value.

I know that I could do =stdev() function and just go through the entire list on sheet3 to capture all the values but I want this to be a living document that is able to refresh using my macro.

I currently already have a macro that runs through all the data and then calculates the average so I have the loop.

For Example, lets say sheet 1 has the following info:

Column A
Name
Jimmy
John
Bob
Chris

Column B
St Deviation


On sheet 2
Name
Jimmy
Jimmy
Chris
Bob
John
Bob
Jimmy

Value
8
6
7
3
1
9
7


So for this macro I want it to loop through and compute the st dev of each. Jimmy for example would get the formula =stdev(8,6,7)
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Use a macro if you like to generate the unique name list, but all you need for the standard deviation is an Excel formula.

E2: {=IFERROR(STDEV.S(IF(A$2:A$8=D2,B$2:B$8)),"-")} Array-entered

You could use Excel or VBA to make the range dynamic.

ABCDE
1NameValueSTDEV
2Jimmy8Jimmy1.00
3Jimmy6Chris-
4Chris7Bob4.24
5Bob3
6John1
7Bob9
8Jimmy7

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>

 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,830
Members
449,471
Latest member
lachbee

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