Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Question on Logical IF statement

Is it possible to have a "IF, Then" formula for the scenario where you have
3 variables such as:

If A OR B is true AND C is False then 8 otherwise 0.

Either A or B can be true, but C must always be true for the formula to
return 8, otherwise it would return 0.

My specific formula is
=IF(G32=R10,0,IF(OR(C32<C7,C32C8),IF(AND(R32=FALS E),R10,0))) The result I
get is FALSE. I am looking for the value in R10 which is 8 or 0 (that is
zero). In this case I was expecting a zero. How do I write an If ORAnd
combination?

Any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Question on Logical IF statement

=IF(Or(G32=R10,R32=False),0,IF(OR(C32<C7,C32C8),R 10,0))

--
Regards,
Tom Ogilvy


"TimN" wrote:

Is it possible to have a "IF, Then" formula for the scenario where you have
3 variables such as:

If A OR B is true AND C is False then 8 otherwise 0.

Either A or B can be true, but C must always be true for the formula to
return 8, otherwise it would return 0.

My specific formula is
=IF(G32=R10,0,IF(OR(C32<C7,C32C8),IF(AND(R32=FALS E),R10,0))) The result I
get is FALSE. I am looking for the value in R10 which is 8 or 0 (that is
zero). In this case I was expecting a zero. How do I write an If ORAnd
combination?

Any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Question on Logical IF statement

You were close, but the logic of the "or/and" part is wrong. Try this:

=IF(G32=R10,0,IF(AND(R32=FALSE,OR(C32<C7,C32C8))= TRUE,R10,0))

The OR has to be a condition in the AND to do what you're talking
about...


TimN wrote:
Is it possible to have a "IF, Then" formula for the scenario where you have
3 variables such as:

If A OR B is true AND C is False then 8 otherwise 0.

Either A or B can be true, but C must always be true for the formula to
return 8, otherwise it would return 0.

My specific formula is
=IF(G32=R10,0,IF(OR(C32<C7,C32C8),IF(AND(R32=FALS E),R10,0))) The result I
get is FALSE. I am looking for the value in R10 which is 8 or 0 (that is
zero). In this case I was expecting a zero. How do I write an If ORAnd
combination?

Any ideas?


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
If Statement with Two Different Logical Test Storm Excel Worksheet Functions 16 December 15th 08 07:22 PM
Explaination of Logical If Then Statement Mitchell Excel Worksheet Functions 3 July 19th 08 06:15 PM
Logical statement for 'contains' ? Singh Excel Discussion (Misc queries) 1 May 16th 08 03:33 PM
Logical Statement Harley Excel Discussion (Misc queries) 1 January 4th 07 02:37 AM
3 logical condition if statement Mikehughes Excel Worksheet Functions 3 July 19th 06 01:59 PM


All times are GMT +1. The time now is 03:35 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"