FINANCIAL MACRO or FORMULA help needed

coppertop18

New Member
Joined
Apr 30, 2009
Messages
29
Please help create a formula or macro based on the information below. Prefer to stay away from VBA.

[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 1166"]
<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]This is the Annual contract Revenue[/TD]
[TD]This is the % Revenue Share that the Company gets to keep[/TD]
[TD]This is the amount of Revenue that the company gets to keep[/TD]
[TD]This is the amount of the Pre-payment that Company receives when it signs the contract[/TD]
[TD]Prepayment Amount[/TD]
[TD]Duration in Years[/TD]
[TD]Payment Frequency[/TD]
[TD]Start date (but not payment date)[/TD]
[TD]First payment AFTER the start date[/TD]
[TD]Calcualted start date[/TD]
[/TR]
[TR]
[TD]Client 1[/TD]
[TD] 128,000[/TD]
[TD]50%[/TD]
[TD] 64,000[/TD]
[TD]25%[/TD]
[TD] 16,000[/TD]
[TD]5[/TD]
[TD]2[/TD]
[TD]Feb-18[/TD]
[TD]2[/TD]
[TD]Apr-18[/TD]
[/TR]
[TR]
[TD]Client 2[/TD]
[TD] 350,000[/TD]
[TD]25%[/TD]
[TD] 87,500[/TD]
[TD]25%[/TD]
[TD] 21,875[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]Jun-18[/TD]
[TD]2[/TD]
[TD]Aug-18[/TD]
[/TR]
[TR]
[TD]Client 3[/TD]
[TD] 350,000[/TD]
[TD]50%[/TD]
[TD] 175,000[/TD]
[TD]50%[/TD]
[TD] 87,500[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]Jun-18[/TD]
[TD]2[/TD]
[TD]Aug-18[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]this is what the resulting formula needs to show
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 2387"]
<colgroup><col><col span="2"><col><col span="32"></colgroup><tbody>[TR]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[TD]May-18[/TD]
[TD]Jun-18[/TD]
[TD]Jul-18[/TD]
[TD]Aug-18[/TD]
[TD]Sep-18[/TD]
[TD]Oct-18[/TD]
[TD]Nov-18[/TD]
[TD]Dec-18[/TD]
[TD]Jan-19[/TD]
[TD]Feb-19[/TD]
[TD]Mar-19[/TD]
[TD]Apr-19[/TD]
[TD]May-19[/TD]
[TD]Jun-19[/TD]
[TD]Jul-19[/TD]
[TD]Aug-19[/TD]
[TD]Sep-19[/TD]
[TD]Oct-19[/TD]
[TD]Nov-19[/TD]
[TD]Dec-19[/TD]
[TD]Jan-20[/TD]
[TD]Feb-20[/TD]
[TD]Mar-20[/TD]
[TD]Apr-20[/TD]
[TD]May-20[/TD]
[TD]Jun-20[/TD]
[TD]Jul-20[/TD]
[TD]Aug-20[/TD]
[TD]Sep-20[/TD]
[TD]Oct-20[/TD]
[TD]Nov-20[/TD]
[TD]Dec-20[/TD]
[/TR]
[TR]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 16,000[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 24,000[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 40,000[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 24,000[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 40,000[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 24,000[/TD]
[TD] - [/TD]
[TD] - [/TD]
[/TR]
[TR]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 21,875[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 16,406[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 16,406[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 16,406[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 38,281[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 16,406[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 16,406[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 16,406[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 38,281[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 16,406[/TD]
[TD] - [/TD]
[/TR]
[TR]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 87,500[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 21,875[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 21,875[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 21,875[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 109,375[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 21,875[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 21,875[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 21,875[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 109,375[/TD]
[TD] - [/TD]
[TD] - [/TD]
[TD] 21,875[/TD]
[TD] - [/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
In case you still need it

=if(e$7<$o1,0,if(and(month(e$7)=month($o1),year(e$7)=year($o1)),$j1,if(date(year($o1)+$k1,month($o1)-12/$l1,day($o1))=e$7,($h1-$j1)/$l1*2,if(e$7>=date(year($o1)+$k1,month($o1),day($o1)),0,if(month(e$7)=month($o1),($h1-$j1)/$l1+$j1,if(mod(abs(month(e$7)-month($o1)),12/$l1)=0,($h1-$j1)/$l1,0))))))
 
Last edited:
Upvote 0
My offset formula isn't working for every scenario and your formula above seems to double the last payment of the cycle instead of adding another payment to close out the revenue loop. Need to modify it. Thank you anyway.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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