#1   Report Post  
carl
 
Posts: n/a
Default 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.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

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.

  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic pie chart question KayR Charts and Charting in Excel 4 January 23rd 05 08:16 PM
Link Question grits75 Excel Worksheet Functions 2 December 28th 04 01:03 PM
COUNTIF Question zbert Excel Worksheet Functions 1 November 1st 04 01:59 AM
Have a question on scrolling sum with Excel. A question on scrolling sum Excel Worksheet Functions 1 October 31st 04 06:01 PM
Have a question on scrolling sum with Excel. A question on scrolling sum Excel Worksheet Functions 0 October 31st 04 05:54 PM


All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"