I have been working on this statement all day today and have finally hit a wall. I think I need to change around where my ( and ) are when I go to add the final statement. It occurs to me I might have hit the maximum nests but its hard to tell at this point.
Excel allows this statement
=IF(C12>0,IF(C8>C7,0,(IF(((C9+C8+C12)-C6)>0,(IF(C12>C6,C9,(IF(C13>C7,((C9+C8+C12+C13)-C6),IF((C8+C9+C12+C13)>C6,((C8+C9+C12+C13)-C6),((C9+C8+C12+C9)-C6)))))),IF((C8+C12+C13)-C6>0,((C8+C9+C13+C12)-C6),0)))),IF((C9+C8)-C6>0,IF(C8>C7,0,(IF(((C9+C8+C12)-C6)>0,(IF(C12>C6,C9,(IF(C13>C7,((C9+C8+C12+C13)-C6),(IF((C8+C9+C12+C13)>C6,IF(C13>0,((C9+C8+C13)-C6),(C6-C9)),(C9+C13)))))))))),IF(C13>0,IF((C9+C8+C12+C13)-C6>0,(C8+C9+C12+C13)-C6,0),0)))
But I am getting the wrong results at the portion in red so I went to substitute (C9+C13) with (IF((C9-C6)>0,C9,(C6-C9)))
I keep getting an error that I am typing the equation incorrectly
Any help would be appreciated
Excel allows this statement
=IF(C12>0,IF(C8>C7,0,(IF(((C9+C8+C12)-C6)>0,(IF(C12>C6,C9,(IF(C13>C7,((C9+C8+C12+C13)-C6),IF((C8+C9+C12+C13)>C6,((C8+C9+C12+C13)-C6),((C9+C8+C12+C9)-C6)))))),IF((C8+C12+C13)-C6>0,((C8+C9+C13+C12)-C6),0)))),IF((C9+C8)-C6>0,IF(C8>C7,0,(IF(((C9+C8+C12)-C6)>0,(IF(C12>C6,C9,(IF(C13>C7,((C9+C8+C12+C13)-C6),(IF((C8+C9+C12+C13)>C6,IF(C13>0,((C9+C8+C13)-C6),(C6-C9)),(C9+C13)))))))))),IF(C13>0,IF((C9+C8+C12+C13)-C6>0,(C8+C9+C12+C13)-C6,0),0)))
But I am getting the wrong results at the portion in red so I went to substitute (C9+C13) with (IF((C9-C6)>0,C9,(C6-C9)))
I keep getting an error that I am typing the equation incorrectly
Any help would be appreciated