Allocate a "payment" to a list of "invoices"

sadaka

New Member
Joined
Oct 21, 2011
Messages
6
Hi All,

I have a long list of "invoices" like so......

10.00
10.00
20.00
25.00
30.00
20.00
5.00
etc....

Now, i have received a payment for 40.00 - I need excel to work out how i can match 40.00 from that list of invoices. there are several ways i can get to 40.00 like: using both 20.00's - how can i ask excel to work out what i can allocate the 40.00 to but also to prioritise the "invoices" further up in the column. if i get the answer i'd like to suggest using the two 10's and the 20.00 just below it. not use the two 20.00's

Thanks in advance for any responses.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Before entering an Amount into cell D2:
Excel Workbook
ABCD
1Inv AmtAuto Pymt AppliedBalance After Pymt AppliedTotal Receipt
210.00-10.00$ -
310.00-10.00
420.00-20.00
525.00-25.00
630.00-30.00
720.00-20.00
85.00-5.00
9
10120.00-120.00
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B2=IF(SUM($A$2:$A2)<=D$2,A2,IF(SUM($A$2:$A2)>D$2,MAX(D$2-SUM($A$2:$A2),0)))
B3=IF(SUM($A$2:$A3)<=D$2,A3,IF(SUM($A$2:$A3)>D$2,MAX(D$2-SUM($A$2:$A2),0)))
B4=IF(SUM($A$2:$A4)<=D$2,A4,IF(SUM($A$2:$A4)>D$2,MAX(D$2-SUM($A$2:$A3),0)))
B5=IF(SUM($A$2:$A5)<=D$2,A5,IF(SUM($A$2:$A5)>D$2,MAX(D$2-SUM($A$2:$A4),0)))
B6=IF(SUM($A$2:$A6)<=D$2,A6,IF(SUM($A$2:$A6)>D$2,MAX(D$2-SUM($A$2:$A5),0)))
B7=IF(SUM($A$2:$A7)<=D$2,A7,IF(SUM($A$2:$A7)>D$2,MAX(D$2-SUM($A$2:$A6),0)))
B8=IF(SUM($A$2:$A8)<=D$2,A8,IF(SUM($A$2:$A8)>D$2,MAX(D$2-SUM($A$2:$A7),0)))
B10=SUM(B2:B9)
C2=A2-B2
C3=A3-B3
C4=A4-B4
C5=A5-B5
C6=A6-B6
C7=A7-B7
C8=A8-B8
C10=SUM(C2:C9)
A10=SUM(A2:A9)


After Entering an amount into cell D2 (say $70.00)
Excel Workbook
ABCD
1Inv AmtAuto Pymt AppliedBalance After Pymt AppliedTotal Receipt
210.0010.00-$ 70.00
310.0010.00-
420.0020.00-
525.0025.00-
630.005.0025.00
720.00-20.00
85.00-5.00
9
10120.0070.0050.00
Sheet1
Excel 2007
 
Upvote 0

Forum statistics

Threads
1,226,230
Messages
6,189,770
Members
453,568
Latest member
LaTwiglet85

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