St Dev If doesn't seem to calculating correctly

Simon1662016

New Member
Joined
Jun 15, 2016
Messages
2
I'm using a Standard Deviation + If formula:
=STDEV.P(IF('Numerical Results'!$A$2:$A$415='St Dev'!A2,'Numerical Results'!$B$2:$B$415)) and have entered using CTRL+SHIFT+ENTER

This appeared to be working correctly. I decided to spot check a couple of the results to be sure, so I filtering the relevant values in Column A on the "Numerical Results" tab, and did a simple "STDEV.P" formula on the corresponding results in Column B. However, the results I got from the STDEV.P check were different to the results pulled from the STDEV.P(IF( formula.

Results from STDEV.P(IF:
0.50
0.48
0.29
0.64
0.77

Same results from manually filtering the data, and using STDEV.P:
0.00
0.00
0.00
0.29
0.00

Can anyone suggest some reasons what I could be doing wrong, or why the results are different?

Thanks
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Without the data it's hard to do a diagnosis.

Does the following help? Control+shift+enter:

=STDEV.P(IF('Numerical Results'!$A$2:$A$415='St Dev'!A2,IF(ISNUMBER('Numerical Results'!$B$2:$B$415),'Numerical Results'!$B$2:$B$415<strike></strike>)))
 
Upvote 0
Not sure what you mean by manually filtering. When using filter, you need to use =SubTotat()
 
Upvote 0
Thanks everyone for your responses.

I have played around a bit more, and think I've figured this out - there were some blank cells in the Numerical Results Column B which appear to have caused this issue. When I removed the rows with blanks, this formula appears to work correctly.
 
Upvote 0
Thanks everyone for your responses.

I have played around a bit more, and think I've figured this out - there were some blank cells in the Numerical Results Column B which appear to have caused this issue. When I removed the rows with blanks, this formula appears to work correctly.

Why don't you invoke the formula of post #2 instead of removing records?
 
Upvote 0

Forum statistics

Threads
1,215,482
Messages
6,125,058
Members
449,206
Latest member
Healthydogs

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