andersen_yunan
New Member
- Joined
- Feb 7, 2018
- Messages
- 36
Hi All, currently I have problem to solve this issue regarding setting up formula for case below.
As you can see, I have a payment threshold of $1500, while the original data that I have is only the column #number & #payment made. I want to have a formula that can generate the value in column #payment limit & #payment excess, which the total of payment limit should not exceed given payment threshold for each number.
Is there any excel formula that can solve this?
Thanks in advance!
[TABLE="width: 377"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD="colspan: 2"]Payment Threshold: 1500[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Number[/TD]
[TD]Payment Made[/TD]
[TD]Payment Limit[/TD]
[TD]Payment Excess[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]1500[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]500[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]3000[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]1500[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]2200[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]700[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]400[/TD]
[TD="align: right"]400[/TD]
[TD="align: right"]400[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]1200[/TD]
[TD="align: right"]1100[/TD]
[TD="align: right"]100[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, I have a payment threshold of $1500, while the original data that I have is only the column #number & #payment made. I want to have a formula that can generate the value in column #payment limit & #payment excess, which the total of payment limit should not exceed given payment threshold for each number.
Is there any excel formula that can solve this?
Thanks in advance!
[TABLE="width: 377"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD="colspan: 2"]Payment Threshold: 1500[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Number[/TD]
[TD]Payment Made[/TD]
[TD]Payment Limit[/TD]
[TD]Payment Excess[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]500[/TD]
[TD="align: right"]1500[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]500[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]3000[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]1500[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]2200[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]700[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]400[/TD]
[TD="align: right"]400[/TD]
[TD="align: right"]400[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]1200[/TD]
[TD="align: right"]1100[/TD]
[TD="align: right"]100[/TD]
[/TR]
</tbody>[/TABLE]