This formula, pasted into M15 and copied down (into the cells where you currently have commissions) yields the same results that you had in those cells previously:
=IF(AND(L15>$B$6,L14<$B$6),((($B$6-L14)*$B$7)*IF(H15<12,(H15/12),1)+((((F15-($B$6-L14))*$B$8))*IF(H15<12,(H15/12),1))),IF(AND(L15>$B$6,L14>$B$6),((F15*$B$8))*IF(H15<12,(H15/12),1),((F15*$B$7))*IF(H15<12,(H15/12),1)))
I also added the following conditional formatting rule that highlights the two cells you had previously highlighted in yellow:
=AND(ISNUMBER($L14),$L14>$B$6,$L13<$B$6,$K14<>"")
Here is the formula and rule applied to your file:
Example A-1 (Recovered).xlsx
Let me know if you have any questions.
Bookmarks