
Originally Posted by
dsgeller
I have used CSE and simply enter:
=STDEV.P(IF(AND($AO$10:$AO$1030<BB$7,$AO$10:$AO$1030>BA$7,
$AW$10:$AW$1030<$BA8,$AW$10:$AW$1030>$BA7),$D$10:$D$1030))
As you discovered, we cannot use the AND function in an array-entered formula with the intent that you have in mind.
You could use multiplication to effect an AND operation, to wit (CSE):
But it is probably more efficient to use nested IF functions, to wit (CSE):
Caveat: If it is possible that not all conditions will be met in some circumstances, it would be prudent to wrap IFERROR around the STDEV.P expression. But if you require Excel 2003 compatibility and save to an "xls" file type, you will have to use ISERROR.
Bookmarks