Linear graph then Parabola

Jeeremy7

Board Regular
Joined
May 13, 2020
Messages
110
Office Version
  1. 365
Platform
  1. Windows
Hello guys :),

So I have an Excel where I put a Start date / end date and an amount and it fills up a table for me with the estimated amount for the # of months
There's a formula that makes that the amounts are like a parabola

I attached 2 examples:

Cell Formulas
RangeFormula
B4B4=DATEDIF(B2,B3,"m")+1
D9D9=ACOS(1-2*D11)/PI()
C17:C32C17=IF(F17="","",IF(E17/B$4<D$13,+$E17*D$9/D$13,+(D$9+($E17/B$4-D$13)/(1-D$13)*(1-D$9))*B$4))
D17:D32D17=IF(C17="","",YEAR(F17)+MONTH(F17)/100)
F17:F32F17=IF(E17<=B$4,EOMONTH(B$2,E17-1),"")
G17G17=+J$16*B17
H17:H32H17=IF(A17="","",+B$7*A17)
G18:G32G18=IF(B18="","",+B$7*B18)
A18:A32A18=IF(C18>B$4,"",(1-COS($C18/$B$4*PI()))/2*(1-$D$12)+1*$D$12*$C18/$B$4)
B18:B32B18=IF(C18>B$4,"",+A18-A17)


Cell Formulas
RangeFormula
B4B4=DATEDIF(B2,B3,"m")+1
D9D9=ACOS(1-2*D11)/PI()
C17:C33C17=IF(F17="","",IF(E17/B$4<D$13,+$E17*D$9/D$13,+(D$9+($E17/B$4-D$13)/(1-D$13)*(1-D$9))*B$4))
D17:D33D17=IF(C17="","",YEAR(F17)+MONTH(F17)/100)
F17:F33F17=IF(E17<=B$4,EOMONTH(B$2,E17-1),"")
G17G17=+J$16*B17
H17:H33H17=IF(A17="","",+B$7*A17)
G18:G33G18=IF(B18="","",+B$7*B18)
A18:A33A18=IF(C18>B$4,"",(1-COS($C18/$B$4*PI()))/2*(1-$D$12)+1*$D$12*$C18/$B$4)
B18:B33B18=IF(C18>B$4,"",+A18-A17)



This one is working great but there's a problem.

I would like to add a pre-construction start.

Let's say the project is 100$ pre-construction start is 4 month for 10$ and the project itself is 12 months

I would like to have the first 4 month at 2.5$ linear and start the parabola at month 5 for the remaining 8 months

The formula should be able to adapt, for an other project the pre-construction could be 7 months let's say.

Is that something that possible to do ?


Thanks a lot for whoever will take the time to help :)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,215,443
Messages
6,124,890
Members
449,194
Latest member
JayEggleton

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