ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If Question (https://www.excelbanter.com/excel-worksheet-functions/8414-if-question.html)

carl

If Question
 
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.

Peo Sjoblom

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

"carl" wrote:

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.


Frank Kabel

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

--
Regards
Frank Kabel
Frankfurt, Germany
"carl" schrieb im Newsbeitrag
...
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.





All times are GMT +1. The time now is 07:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com