I'm trying to calculate standard deviation based on multiple criteria. I've used suggestions show on this site and on Google, but it keeps returning the SD of the entire list, not just those that match.
Here's the formula I'm using:
=STDEV.S(IF($C$2:$C$10=$L2,IF($E$2:$E$10=$M2,$H$2:$H$10))) followed by Shift-CTRL-Enter.
SD of first three rows of data should be ~ 0.0224<style>table { }tr { }col { }br { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }</style>, Formula is showing ~7.223, and strangely enough, anything below that row is showing #DIV/0! (which I haven't been able to figure it out) even though the formula is appropriate.
[TABLE="width: 65"]
<colgroup><col style="width:65pt" width="87"> </colgroup><tbody>[TR]
[TD="width: 87, align: right"][/TD]
[/TR]
</tbody>[/TABLE]
Here's the data in CSV format (Sorry, couldn't figure out how to attach the document itself).
Location,Sample,Date,Volume cubic meter,Nbr,Nbr/L,StDev,,,Location,Date,# Samples,StDev
A,1,6/1/04,0.118,378,3.20,0.022421621,,,A,6/1/04,3,7.222321331
A,2,6/1/04,0.118,379,3.21,,,,A,6/21/04,3,#DIV/0!
A,3,6/1/04,0.118,383,3.25,,,,A,7/21/04,3,#DIV/0!
A,1,6/21/04,0.14,1522,10.87,,,,A,8/17/04,0,#DIV/0!
A,2,6/21/04,0.14,2863,20.45,,,,A,9/21/04,0,#DIV/0!
A,3,6/21/04,0.14,2495,17.82,,,,A,10/20/04,0,#DIV/0!
A,1,7/21/04,0.145,421,2.90,,,,A,11/16/04,0,#DIV/0!
A,2,7/21/04,0.145,312,2.15,,,,A,12/15/04,0,#DIV/0!
A,3,7/21/04,0.145,331,2.28,,,,A,5/4/05,0,#DIV/0!
Thanks,
GWFAMI
Here's the formula I'm using:
=STDEV.S(IF($C$2:$C$10=$L2,IF($E$2:$E$10=$M2,$H$2:$H$10))) followed by Shift-CTRL-Enter.
SD of first three rows of data should be ~ 0.0224<style>table { }tr { }col { }br { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }</style>, Formula is showing ~7.223, and strangely enough, anything below that row is showing #DIV/0! (which I haven't been able to figure it out) even though the formula is appropriate.
[TABLE="width: 65"]
<colgroup><col style="width:65pt" width="87"> </colgroup><tbody>[TR]
[TD="width: 87, align: right"][/TD]
[/TR]
</tbody>[/TABLE]
Here's the data in CSV format (Sorry, couldn't figure out how to attach the document itself).
Location,Sample,Date,Volume cubic meter,Nbr,Nbr/L,StDev,,,Location,Date,# Samples,StDev
A,1,6/1/04,0.118,378,3.20,0.022421621,,,A,6/1/04,3,7.222321331
A,2,6/1/04,0.118,379,3.21,,,,A,6/21/04,3,#DIV/0!
A,3,6/1/04,0.118,383,3.25,,,,A,7/21/04,3,#DIV/0!
A,1,6/21/04,0.14,1522,10.87,,,,A,8/17/04,0,#DIV/0!
A,2,6/21/04,0.14,2863,20.45,,,,A,9/21/04,0,#DIV/0!
A,3,6/21/04,0.14,2495,17.82,,,,A,10/20/04,0,#DIV/0!
A,1,7/21/04,0.145,421,2.90,,,,A,11/16/04,0,#DIV/0!
A,2,7/21/04,0.145,312,2.15,,,,A,12/15/04,0,#DIV/0!
A,3,7/21/04,0.145,331,2.28,,,,A,5/4/05,0,#DIV/0!
Thanks,
GWFAMI