Forum Discussion

Greg Bonaparte's avatar
Greg Bonaparte
Iron Contributor
Apr 26, 2019
Solved

add criteria to the following formula

I would like to add criteria to the following formula that says if cell BB30 has any data then true, if not cell remains blank

 

=IF(AND( IF($D$20>0,$AB30<$AC30,1), IF($F$20>0,$AD30<$AE30,1), IF($H$20>0,$AF30<$AG30,1), $AH30<$AI30, $AJ30<$AK30, $AL30<$AM30, $AN30<$AO30, $AP30<$AQ30, (($D$20>0)+($F$20>0)+($H$20>0)) ), ($Q30/$P30),"")

  • Greg Bonaparte ,

     

    Hi Greg,

     

    You formula

    =IF( AND(...), ($Q30/$P30), "")

    you could modify as

    =IF( AND(...)*(LEN(BB30)>0), ($Q30/$P30), "")

    If any data it changes nothing, if not entire expression is FALSE and formula returns empty string

     

     

1 Reply

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Greg Bonaparte ,

     

    Hi Greg,

     

    You formula

    =IF( AND(...), ($Q30/$P30), "")

    you could modify as

    =IF( AND(...)*(LEN(BB30)>0), ($Q30/$P30), "")

    If any data it changes nothing, if not entire expression is FALSE and formula returns empty string

     

     

Resources