Hi,
I am trying to sum up 3 cells. This issue is I want to have them sum when specific text is added into two other cells. Here is the formula I have tried.
=IF($AJ6="M",SUM($AG6:$AH6),IF($AJ6="B",SUM($AF6-($AF6*0.2), $AG6:$AH6), IF(AND(AI6="P",$AI6="N",$AI6="B",$AJ6="M"), SUM($AG6:$AH6,500), IF(AND($AI6="P",$AI6="N",$AI6="B"), SUM($AF5:$AH5,500),IF(AND($AI6="",$AJ6=""),SUM($AF6:$AH6),"")))))
I most of it works. it's when it gets to the IF(AND that it will not work. The last one IF(AND($AI6="",$AJ6=""),SUM($AF6:$AH6) work fine but the other two will just not go. I just can't work out what I'm doing wrong. Any help would be great.
Thanks in advance
I am trying to sum up 3 cells. This issue is I want to have them sum when specific text is added into two other cells. Here is the formula I have tried.
=IF($AJ6="M",SUM($AG6:$AH6),IF($AJ6="B",SUM($AF6-($AF6*0.2), $AG6:$AH6), IF(AND(AI6="P",$AI6="N",$AI6="B",$AJ6="M"), SUM($AG6:$AH6,500), IF(AND($AI6="P",$AI6="N",$AI6="B"), SUM($AF5:$AH5,500),IF(AND($AI6="",$AJ6=""),SUM($AF6:$AH6),"")))))
I most of it works. it's when it gets to the IF(AND that it will not work. The last one IF(AND($AI6="",$AJ6=""),SUM($AF6:$AH6) work fine but the other two will just not go. I just can't work out what I'm doing wrong. Any help would be great.
Thanks in advance