Balance Remaining Formula

tcorcoran15

New Member
Joined
Feb 16, 2017
Messages
22
Hello All,

I am trying to create a formula to reduce sales from a specific purchase until that full purchase amount is then sold. I then want the formula to look at the next purchase and start to reduce that amount etc.

The sheet is similar to as follows:

On one tab ('Purchases') I have all the transactions pre-purchased like the below:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD="align: center"]Amount[/TD]
[TD="align: center"]Balance[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD="align: center"]500,000[/TD]
[TD="align: center"](Cell with formula)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD="align: center"]250,000[/TD]
[TD="align: center"](Cell with formula)[/TD]
[/TR]
</tbody>[/TABLE]


On another tab ('Product Sold') I have a list of all the sales against the purchases.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD="align: center"]Reference[/TD]
[TD="align: center"]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD="align: center"]Alan[/TD]
[TD="align: center"]380,000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD="align: center"]Jack[/TD]
[TD="align: center"]120,000[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="align: center"]Tom[/TD]
[TD="align: center"]180,000[/TD]
[/TR]
</tbody>[/TABLE]

As there has been 680,000 sold I would like cell B2 on the ('Purchases') tab to read '0' and cell B3 to read '70,000'.

Any help is massively appreciated :-)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
will this work for you?


Excel 2013/2016
ABCDE
1AmountBalanceReferenceAmount
2500,0000Alan380,000
3250,00070,000Jack120,000
4Tom180,000
Sheet2
Cell Formulas
RangeFormula
B2=MAX(0,SUM($A$1:A2)-SUM(E:E))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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