Forum Discussion

Francisco_Morassutti's avatar
Francisco_Morassutti
Copper Contributor
May 21, 2021
Solved

IF, AND and OR

=IF(AND(OR(D21:G21>=6);OR(D20:G20>=6);"OPEN";"CLOSED"), the program claims there's an error in applying D21:G21, either to AND and OR. Am i able not to apply just "D21>=6;E21>=6;F21>=6;G21>=6" and make it like a D21:G21 sequence?

3 Replies

  • Francisco_Morassutti 

    You're missing the closing parenthesis of the AND function:

     

    =IF(AND(OR(D21:G21>=6);OR(D20:G20>=6));"OPEN";"CLOSED")

     

    P.S. I assume that you use comma as decimal separator; if not, you should probably replace the semicolons ; with commas , in the formula.

Resources