Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using COUNTIF to search for existence | Excel Worksheet Functions | |||
Returning a Value if 3 Conditions are True | Excel Worksheet Functions | |||
Disable CUT via toolbars or shortcut keys | Excel Discussion (Misc queries) | |||
Disable "Cut" only | Excel Discussion (Misc queries) | |||
Macros and Toolbars | Excel Discussion (Misc queries) |