Conditional STDEV

hmdjzy

New Member
Joined
Aug 1, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone,

I have a table (2 columns and dynamic raws), column 1 is numbers and column 2 contains some names, like :
Column 1 ------ Column 2
1.2---------------John
2.3---------------Alex John
5.3---------------Mike
2-----------------Mike
1.4----------------John Jim
0------------------ <empty cell>
4------------------Jim
3.5-----------------Alex Mike Jim

I know how to calculate how many of "John" I have and what is the average for each of them: John 3 times with an average of (1.2+2.3+1.4)/3,

BUT how can I calculate Standard Deviation and/or variance for John based on these data in Excel?

I have tried DVAR, DSTDEV and ... no success :(

Any solution?

Thank you :)
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
This works for me, must be array confirmed with Ctrl Shift Enter.

=STDEV(IF(ISNUMBER(SEARCH("john",B2:B9)),A2:A9))
 
Upvote 0

Forum statistics

Threads
1,215,708
Messages
6,126,363
Members
449,311
Latest member
accessbob

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