vikki123us
New Member
- Joined
- Jan 22, 2013
- Messages
- 5
I have inherited the below formula. I believe it is wrong but I don't really know what's it's doing. It is supposed to take sales amounts and depending on where the sales person is in regards to their quota payout on a percentage tiered approach.
Can someone rewrite this formula so it works correctly?
FORMULA:
=ROUND(MIN(L79,(SUM(G72,J72)))*L83+MAX(0,(MIN(J79,(SUM(G72,J72)))-L79)*L84)+MAX(0,((SUM(G72,J72))-J79)*L85),2)+ROUND(MIN(L79,(SUM(H72,J72)))*L83+MAX(0,(MIN(J79,(SUM(H72,J72)))-L79)*L84)+MAX(0,((SUM(H72,J72))-J79)*L85),2)-(ROUND(MIN(L79,(SUM(G41,J41)))*L83+MAX(0,(MIN(J79,(SUM(G41,J41)))-L79)*L84)+MAX(0,((SUM(G41,J41))-J79)*L85),2)+ROUND(MIN(L79,(SUM(H41,J41)))*L83+MAX(0,(MIN(J79,(SUM(H41,J41)))-L79)*L84)+MAX(0,((SUM(H41,J41))-J79)*L85),2))
Can someone rewrite this formula so it works correctly?
FORMULA:
=ROUND(MIN(L79,(SUM(G72,J72)))*L83+MAX(0,(MIN(J79,(SUM(G72,J72)))-L79)*L84)+MAX(0,((SUM(G72,J72))-J79)*L85),2)+ROUND(MIN(L79,(SUM(H72,J72)))*L83+MAX(0,(MIN(J79,(SUM(H72,J72)))-L79)*L84)+MAX(0,((SUM(H72,J72))-J79)*L85),2)-(ROUND(MIN(L79,(SUM(G41,J41)))*L83+MAX(0,(MIN(J79,(SUM(G41,J41)))-L79)*L84)+MAX(0,((SUM(G41,J41))-J79)*L85),2)+ROUND(MIN(L79,(SUM(H41,J41)))*L83+MAX(0,(MIN(J79,(SUM(H41,J41)))-L79)*L84)+MAX(0,((SUM(H41,J41))-J79)*L85),2))