Spreading a contract value over the duration of 4 years

GH2017

New Member
Joined
Oct 5, 2023
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi all, I need to allocate a contract value, using a start date, and duration (number of months) from year 2023 to 2026.

I need a formula to populate the yellow highlighted range in the attached screenshot, and be able to drag it down, to provide the values I manually populated for an example.

Thank you

pic.jpg
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Sorry, cleaning up a few more unnecessary bits of the formula:

Excel Formula:
=($J5/$I5)*LET(n,DATEDIF(EOMONTH($H5,-1),DATE(K$4,12,31),"m"),MAX(IF(n<=$I5,IF(n>=12,12,n),IF($I5-n+12>$I5,0,$I5-n+12)),0))
Really appreciate you going the extra mile. I copied the formula in and it's returning #NAME?. I checked the pointing, etc to make sure that everything's in line with your layout. Not a bother, have a great weekend and appreciate all of your help. Cheers.
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Formula to allocate contract value over 4 years
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
Thank you! Have a great weekend and appreciate all the help.
 
Upvote 0
Really appreciate you going the extra mile. I copied the formula in and it's returning #NAME?. I checked the pointing, etc to make sure that everything's in line with your layout. Not a bother, have a great weekend and appreciate all of your help. Cheers.
It could be LET if you are not really using 365. If that is the case, perhaps this:
Excel Formula:
=($J5/$I5)*MAX(IF(DATEDIF(EOMONTH($H5,-1),DATE(K$4,12,31),"m")<=$I5,IF(DATEDIF(EOMONTH($H5,-1),DATE(K$4,12,31),"m")>=12,12,DATEDIF(EOMONTH($H5,-1),DATE(K$4,12,31),"m")),IF($I5-DATEDIF(EOMONTH($H5,-1),DATE(K$4,12,31),"m")+12>$I5,0,$I5-DATEDIF(EOMONTH($H5,-1),DATE(K$4,12,31),"m")+12)),0)

Otherwise I am not sure what part would not be recognized.
 
Upvote 0

Forum statistics

Threads
1,215,488
Messages
6,125,092
Members
449,206
Latest member
ralemanygarcia

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