Array with multiple criteria problem

F

Frank Kabel

Hi
not tested but try
{=STDEV(IF(($A$2:$A$23>$C2)*(A2:A23<=C20),$B$2:$B$23))}
-----Original Message-----
I have been unable to use the AND function in an array.
I am able to get the following array to work: {=STDEV(IF
($A$2:$A$23>$C2,$B$2:$B$23))} but this will not work:
{=STDEV(IF(AND($A$2:$A$23>$C2,A2:A23<=C20),$B$2:$B$23))}.
Any suggestions as to why the AND function in the array is
not working are greatly appreciated.
 
G

Guest

Thanks -- that has yielded a value. Can you tell me what the "*" evaluates to in that expression? Is it a proxy for "AND" or does it actually execute some type of multiplication

Thanks.
 
F

Frank Kabel

Hi
the '*' multiplies the boolean values. TRUE=1, FALSE=0.
result only TRUE*TRUE will result in 1 (which represents
TRUE)
-----Original Message-----
Thanks -- that has yielded a value. Can you tell me what
the "*" evaluates to in that expression? Is it a proxy
for "AND" or does it actually execute some type of
multiplication?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top