STDEV if formula help, thanks!

e_sauven

New Member
Joined
Apr 3, 2014
Messages
27
Hi

I am trying to adjust my average if formula =AVERAGEIF($H$H,DO13,AB:AB)) into also showing me the STDEV for the same values but I keep getting an error.

$H$H is the list of Names in my database, DO13 is the name in the table I want it to match with and AB:AB are the values I would like to get the STDEV from.

Many thanks for any help!

Emilie
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You can use a formula like:

=STDEV(IF(H1:H100=DO13,AB1:AB100))

confirmed with Ctrl+Shift+Enter. If entered correctly Excel will surround the formula with curly braces {}. Avoid using entire columns.
 
Upvote 0
Using the same ranges you could try this:

=STDEV(IF(H1:H10=DO13,AB1:AB10))

Its an array formula so need entering CNTL-SHIFT-ENTER. Look for the curly brackets.

Adjust the ranges to suit your data. Full column references are very slow for array formulas so should be avoided.
 
Upvote 0
Using the same ranges you could try this:

=STDEV(IF(H1:H10=DO13,AB1:AB10))

Its an array formula so need entering CNTL-SHIFT-ENTER. Look for the curly brackets.

Adjust the ranges to suit your data. Full column references are very slow for array formulas so should be avoided.
Hello,

I have a similar problem, but this formula doesnt seem to work yet for me.

So I have a list with lots of values (column A) with a score (column B), and applied the =unique function to gets each unique value (column E), then to get the average of each of these values I used =AVERAGEIF(A:A;E1;B:B).
Now to get a standard deviation for each of these unique values, I thought to use then
=STDEV(IF(A1:A595=E1,AB1:AB595)), but that doesnt work...
Any idea why, and how to fix this maybe someone?

Thanks for all help in advance
 
Upvote 0
Maybe something like this.
I'm assuming you have Excel 365 since you have the UNIQUE function.
I would suggest you not use whole column ranges, but only range the holds your data or a little beyond the bottom row of your data.
Also, instead of posting "that doesn't work" it is helpful if you let us know if you are getting an error msg, wrong answer???

Book2
ABCDEF
1ValuesScoreUniqueSt. Dev.
2145114.5717
325527.6376
432632.0000
5138
6260
7330
8166
9245
10328
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=UNIQUE(A2:A10)
F2:F4F2=STDEVA(FILTER(B:B,A:A=E2,"No Data"))
Dynamic array formulas.
 
Upvote 0
Maybe something like this.
I'm assuming you have Excel 365 since you have the UNIQUE function.
I would suggest you not use whole column ranges, but only range the holds your data or a little beyond the bottom row of your data.
Also, instead of posting "that doesn't work" it is helpful if you let us know if you are getting an error msg, wrong answer???

Book2
ABCDEF
1ValuesScoreUniqueSt. Dev.
2145114.5717
325527.6376
432632.0000
5138
6260
7330
8166
9245
10328
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=UNIQUE(A2:A10)
F2:F4F2=STDEVA(FILTER(B:B,A:A=E2,"No Data"))
Dynamic array formulas.
Ok, thanks for your reply.

Your example of how my data looks like and what I want to do is spot on.

So for the first formula, mentioned earlier in this thread, to calculate the standard deviation =STDEV(IF(H1:H10=DO13,AB1:AB10)) I altered this one to =STDEV(IF(A1:A49=E2,B1:B49)), where I first did =UNIQUE(A:A) in the E column. Excel then just gives a pop up and says there is a problem with the formula.

Your suggested formula (=STDEVA(FILTER(B:B,A:A=E2,"No Data")) works perfectly, however I had to take out the comma's and replace them for a semicolon: =STDEVA(FILTER(B:B;A:A=E2;"No Data"))

Thank you very much, this saves me a lot of time! ;)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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