If Question

G

Guest

I am trying to build a formula to place in A2 that will:

If L2 is blank I would like this formula to apply:

=IF(AND(D2<>"lottery",M2<>"delist"),"OK")

but if L2 is not blank, I would like this formula to apply:

=IF(AND(D2<>"lottery",L2<=N1,M2<>"delist");"OK")

Is there a easy way to do this ?

Thank you in advance.
 
G

Guest

Not really tested but since you want the same answer this might work

=IF(OR(AND(D2<>"lottery",L2<=N1,M2<>"delist"),AND(L2="",D2<>"lottery",M2<>"delist")),"OK","Not OK")


Regards,

Peo Sjoblom
 
F

Frank Kabel

Hi
one way:
=IF(AND(D2<>"lottery",M2<>"delist"),IF(OR(L2="",AND(L2<>"",L2<=N1)),"OK","not
defined"),"not defined")
 

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

Similar Threads

IF-Then formula problem 6
If/Then 1
combining multiple columns using ", " seperations.. 4
SUMPRODUCT ISSUES 2
Apply names to relative references 14
Formula Question 3
IF/AND/OR Help 2
Formula Help 3

Top