Return a value to certain columns based on date AND project duration

jessicarichards295

New Member
Joined
Feb 8, 2024
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I am trying to create a revenue forecast with each month of the year in columns. The input data is updated weekly, so the forecast needs to be dynamic.

I can easily get the revenue amount to return to the first month of the project, but for projects that stretch over multiple months, I haven't been able to work out a way to get the revenue amount for subsequent months.

For example: for project 222XXX the first month of the project is displaying correctly in cell L3, but how can I get the remaining two months of revenue to show in M3:N3?

In the attached, the orange cells are the input data, the columns J:U is where I need help.

Thank you!
 

Attachments

  • Capture2.JPG
    Capture2.JPG
    113.9 KB · Views: 20
  • Capture.JPG
    Capture.JPG
    125.3 KB · Views: 24

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Welcome to the forum :)
Until a more elegant solution comes along, try the following:
Book1
DEFGHIJKLMNOPQRSTU
1Start DateDurationForecastJan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
201/03/20243$450,000$0$0$150,000$150,000$150,000$0$0$0$0$0$0$0
Sheet2
Cell Formulas
RangeFormula
J2:U2J2=IF(AND(J1>=EOMONTH($D2,-1)+1,SUM($I2:I2)<$H2),$H2/$F2,0)
 
Upvote 0
I think some allocation rules need to be established. For example, if the start date begins near the end of one month and ends just days later at the beginning of the following month, that would probably be considered a "1 month" duration, the smallest resolution used in the table. But that duration also "touches" two months. So should the cost be entirely allocated to the 1st month where we find the start date, entirely allocated to the 2nd month where we find the end date, or divided somehow between those two months? In the example below using some of the ideas suggested by @kevin9999, I'm allocating the Forecast evenly across all months touched by the start and end dates. This means that the divisor for the monthly forecast amount is not necessarily the same as the "Duration", so I've added a computed End Date column and a Number of Months Touched (NMoT) column for convenient reference, Additionally, I'm recommending that the allocation logic use only the dates to determine if an allocation should be made, rather than evaluating whether the full sum of allocated costs equals the forecast amount. The reason is that, should a start date begin in a prior year and the activity spills into the current year, or if a start date begins in the current year and the activity spills into the following year, details of those pre/post years are not shown, and you won't be able to rely on a sum of allocated costs.
Book1
DEFGHIJKLMNOPQRSTU
1Start DateDurationEnd DateNmoTForecastJan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
22/15/202435/14/20244$ 450,000$ -$ 112,500$ 112,500$ 112,500$ 112,500$ -$ -$ -$ -$ -$ -$ -
311/1/202353/31/20245$ 500,000$ 100,000$ 100,000$ 100,000$ -$ -$ -$ -$ -$ -$ -$ -$ -
412/7/202399/6/202410$ 100,000$ 10,000$ 10,000$ 10,000$ 10,000$ 10,000$ 10,000$ 10,000$ 10,000$ 10,000$ -$ -$ -
511/1/202453/31/20255$ 100,000$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ 20,000$ 20,000
Sheet1
Cell Formulas
RangeFormula
F2:F5F2=EDATE(D2-1,E2)
G2:G5G2=12*(YEAR(F2)-YEAR(D2))+MONTH(F2)-MONTH(D2)+1
J2:U5J2=IF(AND(J$1>=EOMONTH($D2,-1)+1,J$1<=EOMONTH($F2,0)),$H2/$G2,0)
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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