So you want to return TRUE if adjacent cells are TRUE regardless of how many?
=SUMPRODUCT(--(Used=TRUE),--(Allowed=TRUE))0
will do it
Otherwise if you are copying down in I checking each row and don't want to use
the cell references
=IF(ISERR(AND(INDEX(Used,ROW()),INDEX(Allowed,ROW( )))),"",AND(INDEX(Used,ROW()),INDEX(Allowed,ROW()) ))
will retrun TRUE for 2 adjacent cells holding TRUE
Regards,
Peo Sjoblom
"John Pinback" wrote:
If I name an array G2:G90 Used and a second array H2:H90 Allowed and put
logical values in these columns then I should be able to use the AND
function but it gives me the wrong answer.
For example, say G3 = TRUE and H3 = TRUE and I put the following formula in
I3:
= AND(Used, Allowed)
I expect to see TRUE in I3 but I get FALSE.
Thanks,
Karl
kwb AT dcm-va.com
|