401kspreadsheets
New Member
- Joined
- Mar 28, 2019
- Messages
- 4
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Calibri; color: #000000}</style>I'm trying to calculate the cumulative total up to a certain maximum. In the example below, I need column D to calculate the contribution amount (by multiplying Column B and Column C), but column D should only total up to 19000. Once the cumulative total of 19000 is reached, the subsequent rows should be reduced.
[TABLE="class: grid, width: 395"]
<colgroup><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Pay Date[/TD]
[TD]Wages[/TD]
[TD]% Elected[/TD]
[TD]Contribution Calculation[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]1/1/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]1/15/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]1/29/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]2/12/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]2/26/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]3/12/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD="align: right"]3/26/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD="align: right"]4/9/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$1,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD="align: right"]4/23/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$0.00[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[TD="align: right"]5/7/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$0.00[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 395"]
<colgroup><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Pay Date[/TD]
[TD]Wages[/TD]
[TD]% Elected[/TD]
[TD]Contribution Calculation[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]1/1/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]1/15/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]1/29/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]2/12/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]2/26/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]3/12/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD="align: right"]3/26/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$2,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD="align: right"]4/9/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$1,500.00[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD="align: right"]4/23/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$0.00[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[TD="align: right"]5/7/19[/TD]
[TD="align: right"]$10,000.00[/TD]
[TD="align: right"]25%[/TD]
[TD="align: right"]$0.00[/TD]
[/TR]
</tbody>[/TABLE]