Forum Discussion

Robert1290's avatar
Robert1290
Brass Contributor
Mar 14, 2021
Solved

If Function help

Hi,

 

I am trying to create a formula which will return blank if cells a6:a8 are all NO, and to display cell b6 if this isn't correct. See attached spreadasheet. I have a formula below but it doesnt work:

 

=IF(AND(A6:A8="NO","",B6)))

7 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Robert1290 

    On which Excel you are?

    If correct the syntax

     

    =IF(AND(A6:A8="NO"),"",B6)

     

    formula works

    • Robert1290's avatar
      Robert1290
      Brass Contributor
      Thanks Sergei, almost works. I am trying to conditionally format the formula cell to go red when the result is blank. However the result is not blank. This may be becaue a6:a8 is NO as a result of a dropdown rather than inputting "NO"
      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        Robert1290 

        For the conditional formatting most probably it shall be another formula, but I didn't catch the logic - you would like to highlight something if ALL in range A6:A8 are "NO"; or you'd like to highlight for each record where the value in column A is "NO".

         

        Perhaps you may provide small sample colored manually to illustrate the idea.

Resources