I need to create a formula that sums multiple columns based on criteria but stops at 100% or at 40 (which is 100%). What I have now doesn't sum all of the way up to 40 because it will not split the totals that it's summing.
=IF($E$125<=40,(SUMIF($C$126:$D$136,Q126,$D$126:$D$136)+SUMIF($E$126:$F$136,Q126,$F$126:$F$136)),0)
=IF($E$125<=40,(SUMIF($C$126:$D$136,Q126,$D$126:$D$136)+SUMIF($E$126:$F$136,Q126,$F$126:$F$136)),0)