can someone help me with a formula....

S

simon

What I want to achieve is:

IF text in cell D says either '2 yearly' or '5 yearly'
AND
Cell A contains any number other than 0
then
insert Text: 'IN' into cell E.
otherwise
insert Text 'OUT' into Cell E.


thanks in anticipation...
SS
 
D

Don Guillett

try using AND and OR. Not tested.
if(and(or(d1="2 yearly",d1="5 yearly")<>0),"in","out")
 
T

tjtjjtjt

How about:
=IF(AND(A1<>0,OR(D1="2 yearly",D1="5 yearly")),"IN","OUT")
Copy down as needed.

If your cells in D actually contain '2 yearly' instead of 2 yearly, you will
need to add the single quotes to this formula.

tj
 
D

Don Guillett

if(and(or(d1="2 yearly",d1="5 yearly")<>0),"in","out")
if(and(or(d1="2 yearly",d1="5 yearly")a1<>0),"in","out")
 

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