SOLVED

add criteria to the following formula

Iron Contributor

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),"")

1 Reply
best response confirmed by Greg Bonaparte (Iron Contributor)
Solution

@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 best response

Accepted Solutions
best response confirmed by Greg Bonaparte (Iron Contributor)
Solution

@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

 

 

View solution in original post