Can this be done / how?

T

T.R. Young

I am trying to make the following statement happen in a cell, but can't seem
to get the logic correct. I am not even sure that it can happen, but here is
basically what I want;

IF D2=1 AND D10=1 OR IF D3=2 AND D10=1 THEN 1 ELSE 0

If this can actually be done, what would the formula be?
 
B

Bob Phillips

=IF(OR(AND(D2=1,D10=1),AND(D3=2,D10=1))1,0)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
R

Roger Govier

Hi

One way
=IF(AND(D10=1,OR(D2=1,D3=2)),1,0)
or, without IF()
=MIN(1,AND(D2=1,D10=1)+AND(D3=2,D10=1))

Regards

Roger Govier
 
P

Paul Skinner

I am trying to make the following statement happen in a cell, but can't seem
to get the logic correct. I am not even sure that it can happen, but here is
basically what I want;

IF D2=1 AND D10=1 OR IF D3=2 AND D10=1 THEN 1 ELSE 0

If this can actually be done, what would the formula be?

Try =IF(AND(D10=1)*OR(D3=2,D2=1),1,0)
 
Top