ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if any of 3 conditions is true, then answer is true (https://www.excelbanter.com/excel-worksheet-functions/118832-if-any-3-conditions-true-then-answer-true.html)

inthestands

if any of 3 conditions is true, then answer is true
 
I have three seperate conditions comparing 3 different columns of data that
return a true or false answer. I would like to reduce the three formulas
into 1. If any of the 3 conditions are true, I want my answer to be true.
My feeble attempt is:
=(AND(1<G5,G5<2),OR(IF(E5=0,TRUE,FALSE)),OR(AND(K5 -0.1,K5<.1)),true,false,true))
--
inthestands

macropod

if any of 3 conditions is true, then answer is true
 
Hi inthestands,

Try:
=((1<G5)*(G5<2)+(E5=0)+(K5-0.1)*(K5<.1)0)
This will return 'TRUE' if any one or more conditions is true, and 'FALSE'
only if all three conditions are false.

Cheers
--
macropod
[MVP - Microsoft Word]


"inthestands" wrote in message
...
I have three seperate conditions comparing 3 different columns of data

that
return a true or false answer. I would like to reduce the three formulas
into 1. If any of the 3 conditions are true, I want my answer to be true.
My feeble attempt is:

=(AND(1<G5,G5<2),OR(IF(E5=0,TRUE,FALSE)),OR(AND(K5 -0.1,K5<.1)),true,false,t
rue))
--
inthestands




JMB

if any of 3 conditions is true, then answer is true
 
Try:
=OR(AND(1<G5,G5<2),E5=0,AND(K5-0.1,K5<.1))


"inthestands" wrote:

I have three seperate conditions comparing 3 different columns of data that
return a true or false answer. I would like to reduce the three formulas
into 1. If any of the 3 conditions are true, I want my answer to be true.
My feeble attempt is:
=(AND(1<G5,G5<2),OR(IF(E5=0,TRUE,FALSE)),OR(AND(K5 -0.1,K5<.1)),true,false,true))
--
inthestands


Ron Coderre

if any of 3 conditions is true, then answer is true
 
Try this:

=OR(AND(G51,G5<2),E5=0,AND(ABS(K5)<0.1))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"inthestands" wrote:

I have three seperate conditions comparing 3 different columns of data that
return a true or false answer. I would like to reduce the three formulas
into 1. If any of the 3 conditions are true, I want my answer to be true.
My feeble attempt is:
=(AND(1<G5,G5<2),OR(IF(E5=0,TRUE,FALSE)),OR(AND(K5 -0.1,K5<.1)),true,false,true))
--
inthestands


4pinoy

if any of 3 conditions is true, then answer is true
 
"3 different columns of data "
I assume that a blank cell means there is no data....E5 must have data
encoded to have a so-so true OR expected result.
Result will always be true even E5,G5 and K5 are blanks if u will not do it
like this one....
=IF(E5="",FALSE,OR(AND(1<G5,G5<2),E5=0,AND(K5-0.1,K5<0.1)))

"inthestands" wrote:

I have three seperate conditions comparing 3 different columns of data that
return a true or false answer. I would like to reduce the three formulas
into 1. If any of the 3 conditions are true, I want my answer to be true.
My feeble attempt is:
=(AND(1<G5,G5<2),OR(IF(E5=0,TRUE,FALSE)),OR(AND(K5 -0.1,K5<.1)),true,false,true))
--
inthestands


sleepy

if any of 3 conditions is true, then answer is true
 
?

"inthestands" wrote:

I have three seperate conditions comparing 3 different columns of data that
return a true or false answer. I would like to reduce the three formulas
into 1. If any of the 3 conditions are true, I want my answer to be true.
My feeble attempt is:
=(AND(1<G5,G5<2),OR(IF(E5=0,TRUE,FALSE)),OR(AND(K5 -0.1,K5<.1)),true,false,true))
--
inthestands



All times are GMT +1. The time now is 10:01 PM.

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