Split cost per year in ratio to project duration within that year

MrPokemans

New Member
Joined
Dec 3, 2013
Messages
10
Hey guys,


I have the costs of 7000 projects with a duration of multiple years, for example:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]start[/TD]
[TD]end[/TD]
[TD]cost[/TD]
[/TR]
[TR]
[TD]Project 1[/TD]
[TD]1-1-16[/TD]
[TD]1-1-17[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD]5-5-16[/TD]
[TD]1-1-17[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]Project 3[/TD]
[TD]10-10-16[/TD]
[TD]10-10-17[/TD]
[TD]1000[/TD]
[/TR]
</tbody>[/TABLE]

I need the costs of each project per year (prices are estimates):

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]cost in 2016[/TD]
[TD]cost in 2017[/TD]
[TD]cost in 2018[/TD]
[/TR]
[TR]
[TD]Project 1[/TD]
[TD]999[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Project 2[/TD]
[TD]998[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Project 3[/TD]
[TD]310[/TD]
[TD]690[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]

What formulas should I use for B2:D4 in this table?

Preferably without VBA and array formulas because the file is already very heavy.

Another difficulty are the 'leap years', meaning that 2016 has 366 days.

Thanks in advance!
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

try this:


Book1
ABCDEFGH
1startendcost201620172018
2Project 11-1-20161-1-20171000997,27522,7247960
3Project 25-5-20161-1-20171000995,86784,1322310
4Project 310-10-201610-10-20171000226,776773,2240
Sheet1
Cell Formulas
RangeFormula
F2=MAX((EOMONTH(DATE(F$1,1,1),11)-DATE(F$1,1,1))+1-MAX($B2-DATE(F$1,1,1),0)-MAX(EOMONTH(DATE(F$1,1,1),11)-$C2,0),0)*($D2/($C2-$B2+1))
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,325
Members
453,032
Latest member
Pauh

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