Allocation of Amount, based on the Monthly amount and dates

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
343
Office Version
  1. 365
Platform
  1. Windows
I would like to allocate the amount (column B) from the starting date (column D and range G2:R2) and monthly (column C)..
Please see yellow color for the expected output.. Many Thanks


Book1
ABCDEFGHIJKLMNOPQRS
1FORMULA HERE
2allocated amountMonthly date start (dd/mm/yy)31-01-2429-02-2431-03-2430-04-2431-05-2430-06-2431-07-2431-08-2430-09-2431-10-2430-11-2431-12-24TOTAL
3item15000100001-01-241000100010001000100000000005000
4item2320050001-04-24000500500500500500500200003200
5item34000250001-06-240000025001500000004000
Sheet2
Cell Formulas
RangeFormula
S3:S5S3=SUM(G3:R3)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
@ExcelNewbie2020 Does this help?

AutoTraining.xlsm
ABCDEFGHIJKLMNOPQRS
1FORMULA HERE
2allocated amountMonthly date start (dd/mm/yy)1/31/242/29/243/31/244/30/245/31/246/30/247/31/248/31/249/30/2410/31/2411/30/2412/31/24TOTAL
3item1500010001/1/241000100010001000100000000005000
4item232005004/1/24000500500500500500500200003200
5item3400025006/1/240000025001500000004000
Sheet2
Cell Formulas
RangeFormula
G3:R5G3=IF(COLUMN(G$2)>=MATCH(EOMONTH($D3,0),$G$2:$R$2,0)+6,MIN($C3,$B3-SUM($F3:F3)),0)
S3:S5S3=SUM(G3:R3)
 
Upvote 0
Solution
My take seen as ive done it:

=IF(G$2>=$D3,MIN(MAX(0,$B3-SUM($F3:F3)),$C3),0)

Column F would need to remain empty.
 
Upvote 1
@ExcelNewbie2020 Does this help?

AutoTraining.xlsm
ABCDEFGHIJKLMNOPQRS
1FORMULA HERE
2allocated amountMonthly date start (dd/mm/yy)1/31/242/29/243/31/244/30/245/31/246/30/247/31/248/31/249/30/2410/31/2411/30/2412/31/24TOTAL
3item1500010001/1/241000100010001000100000000005000
4item232005004/1/24000500500500500500500200003200
5item3400025006/1/240000025001500000004000
Sheet2
Cell Formulas
RangeFormula
G3:R5G3=IF(COLUMN(G$2)>=MATCH(EOMONTH($D3,0),$G$2:$R$2,0)+6,MIN($C3,$B3-SUM($F3:F3)),0)
S3:S5S3=SUM(G3:R3)
that works.. thanks man
 
Upvote 0
@ExcelNewbie2020 Does this help?

AutoTraining.xlsm
ABCDEFGHIJKLMNOPQRS
1FORMULA HERE
2allocated amountMonthly date start (dd/mm/yy)1/31/242/29/243/31/244/30/245/31/246/30/247/31/248/31/249/30/2410/31/2411/30/2412/31/24TOTAL
3item1500010001/1/241000100010001000100000000005000
4item232005004/1/24000500500500500500500200003200
5item3400025006/1/240000025001500000004000
Sheet2
Cell Formulas
RangeFormula
G3:R5G3=IF(COLUMN(G$2)>=MATCH(EOMONTH($D3,0),$G$2:$R$2,0)+6,MIN($C3,$B3-SUM($F3:F3)),0)
S3:S5S3=SUM(G3:R3)
sir, the formula works properly as expected.. can this be achieved by using a spill array formula?..
 
Upvote 0

Forum statistics

Threads
1,223,882
Messages
6,175,165
Members
452,615
Latest member
bogeys2birdies

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