Formula to apply amount to array of cells until consumed

lploy1

New Member
Joined
Jun 3, 2015
Messages
2
with the data below

ABCDEFGHIJ
Reported Amt BalanceReported Amt On AcctCust Balance (calculated col D - Col E )Invoice Amt Due from transactionsFwd AgedCurr31-6061-9091-120121+
$ 113,718 $ 57,827 $ 55,891 $ 113,718 $ 45,606 $ 14,652 $ 1,650 $ - $ - $ 51,810

<colgroup><col><col><col><col><col span="2"><col><col><col><col></colgroup><tbody>
</tbody>

Want to apply the "Reported Amt On Acct" (B) to Col J, then Col I, H, G, F, E successively until Col "B" is consumed


eg Require a formula to apply this amount, sequentially to 121+, 57827 - 51810 = 0 rem 6017 then remainder to 91-120 - not required, then remainder to 61-90 not required, then remainder to 31-60 1650-6017 = 0 r 4367, Curr 14652-4367 = 10285 etc col J to col F.


Data is being returned in 2 data sets that will be combined using excel on a regular basis

:confused: was trying IF but was a time consuming formula

Any ideas?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the forum.

Try:


ABCDEFGHIJK
1Reported Amt BalanceReported Amt On AcctCust Balance (calculated col D - Col E )Invoice Amt Due from transactionsFwd AgedCurr31-6061-9091-120121+
2$113,718$57,827$55,891$113,718$45,606$14,652$1,650$ -$ -$51,810
3$10,285$0$0$0$0

<tbody>
</tbody>
Sheet9

Worksheet Formulas
CellFormula
J3=MAX(0,MIN(SUM(J2:$J2)-$B2,J2))

<tbody>
</tbody>

<tbody>
</tbody>



Put the formula in J3 and drag to the left to F3.
 
Last edited:
Upvote 0
:eek:
Welcome to the forum.

Try:


ABCDEFGHIJK
1Reported Amt BalanceReported Amt On AcctCust Balance (calculated col D - Col E )Invoice Amt Due from transactionsFwd AgedCurr31-6061-9091-120121+
2$113,718$57,827$55,891$113,718$45,606$14,652$1,650$ -$ -$51,810
3$10,285$0$0$0$0

<tbody>
</tbody>
Sheet9

Worksheet Formulas
CellFormula
J3=MAX(0,MIN(SUM(J2:$J2)-$B2,J2))

<tbody>
</tbody>

<tbody>
</tbody>



Put the formula in J3 and drag to the left to F3.


thanks for the help seems like it will work well.

also for the welcome to the forum, been following for a while but never posted....:)
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top