#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default 3 ANDS + 1 OR

in cell M13

=IF(AND($D130,$L13<($E13-$F13),AU13=AV13),AV13,"NO")
returns a date in if all 3 statements are true, otherwise no.
I want an OR condition IF N13"", AV13 to come in before the "NO",
so that if all 3 of the first statements are true OR the last statement is
true, the date from AV13 results.

I've fooled around with this for 2 hours now, and I GIVE UP.

Once again, I am turning to the experts to save me.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default 3 ANDS + 1 OR

=IF(OR(AND($D130,$L13<($E13-$F13),AU13=AV13),N13<""),AV13,"NO")

"Gator Girl" wrote:

in cell M13

=IF(AND($D130,$L13<($E13-$F13),AU13=AV13),AV13,"NO")
returns a date in if all 3 statements are true, otherwise no.
I want an OR condition IF N13"", AV13 to come in before the "NO",
so that if all 3 of the first statements are true OR the last statement is
true, the date from AV13 results.

I've fooled around with this for 2 hours now, and I GIVE UP.

Once again, I am turning to the experts to save me.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default 3 ANDS + 1 OR

A THOUSAND THANK YOU'S

"bapeltzer" wrote:

=IF(OR(AND($D130,$L13<($E13-$F13),AU13=AV13),N13<""),AV13,"NO")

"Gator Girl" wrote:

in cell M13

=IF(AND($D130,$L13<($E13-$F13),AU13=AV13),AV13,"NO")
returns a date in if all 3 statements are true, otherwise no.
I want an OR condition IF N13"", AV13 to come in before the "NO",
so that if all 3 of the first statements are true OR the last statement is
true, the date from AV13 results.

I've fooled around with this for 2 hours now, and I GIVE UP.

Once again, I am turning to the experts to save me.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default 3 ANDS + 1 OR

Two ways are
=IF(OR(AND($D130,$L13<($E13-$F13),AU13=AV13),N13""),AV13,"NO")
=IF($D130)*($L13<($E13-$F13))*(AU13=AV13))+(N13""),AV13,"NO")

The latter form generalizes more easily. Multiplicaion of logicals behaves
like AND, addition of logicals behaves like OR, and you can use parentheses
as needed to control the order of evaluation.

Jerry

"Gator Girl" wrote:

in cell M13

=IF(AND($D130,$L13<($E13-$F13),AU13=AV13),AV13,"NO")
returns a date in if all 3 statements are true, otherwise no.
I want an OR condition IF N13"", AV13 to come in before the "NO",
so that if all 3 of the first statements are true OR the last statement is
true, the date from AV13 results.

I've fooled around with this for 2 hours now, and I GIVE UP.

Once again, I am turning to the experts to save me.

Thanks

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
Sumproduct assistance - need multiple ANDs and ORs Heidi Excel Worksheet Functions 3 January 31st 07 05:09 PM
Multiple Nested IFs, ORs, Ands Shelly Excel Worksheet Functions 5 January 9th 07 01:07 AM
Multiple ifs, and ands, and are not working A.R.J Allan Jefferys Excel Discussion (Misc queries) 3 September 2nd 06 12:58 AM
Ifs and Ands - I'm confused! C Tate Excel Worksheet Functions 3 February 22nd 06 09:40 PM
Conditional Statement with ANDs Stephen Excel Discussion (Misc queries) 2 April 11th 05 04:41 PM


All times are GMT +1. The time now is 07:05 AM.

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"