I need a hand with multiple IF, AND, OR statements.
I am trying to do the following:
1. If AK5 and BF5 are both >= 34%, then take MIN(AK5,BF5).
2. If AK5<34% and BF5>=34%, then take BF5
3. If AK5>=34% and BF5<34%, then take AK5
4. If AK5 and BF5 are both < 34%, then do (G5/EX*MARKUP)+(G5/EX))
I have named a cell MINMARG, value is 0.34.
This is my attempt at the formula
=IF(OR(AK5>=MINMARG,BF5>=MINMARG),MIN(AK5,BF5),IF(OR(AK5<MINMARG,BF5>=MINMARG),BF5,IF(OR(AK5>=MINMARG,BF5<MINMARG),AK5,((G5/EX*MARKUP)+(G5/EX)))))
But it is returning 0. Can't quite figure out where I am going wrong.
Any help would be appreciated.
I am trying to do the following:
1. If AK5 and BF5 are both >= 34%, then take MIN(AK5,BF5).
2. If AK5<34% and BF5>=34%, then take BF5
3. If AK5>=34% and BF5<34%, then take AK5
4. If AK5 and BF5 are both < 34%, then do (G5/EX*MARKUP)+(G5/EX))
I have named a cell MINMARG, value is 0.34.
This is my attempt at the formula
=IF(OR(AK5>=MINMARG,BF5>=MINMARG),MIN(AK5,BF5),IF(OR(AK5<MINMARG,BF5>=MINMARG),BF5,IF(OR(AK5>=MINMARG,BF5<MINMARG),AK5,((G5/EX*MARKUP)+(G5/EX)))))
But it is returning 0. Can't quite figure out where I am going wrong.
Any help would be appreciated.