I am working on a budget and need to spread costs out by a date range:
In cell A2 I have Start Date
In Cell B2 I have End Date
In Cell D2 I have the total cost
In cells O1 thru Z1 I have the months 1/1/2005,2/1/2005.... 12/1/2005
In cells O2 thru Z2 I have the cost per month January thru December.
I am looking for a formula that I can put in each of the cells O2 thru Z2 that will look at the Start Date and End Date and spread the total costs in Cell D1 over that period of time based on the number of days.
For example: The start date for the program is Jan 15th the end date is March 15th. The Total Cost is $40,000. The total number of days between the Start date & end date is 59.
January has 16, February had 28, and March has 15.
$40,000/59 days = 677.97 per day.
so January would have $10,847.52 (677.97 x 16) allocated to it, February would have the largest portion allocated to it (677.97 x 28) etc...
The formulas in the cells O2 thru Z2 would show values in cells O,M, & N (January thru March) and all other cells would be blank.
I have many budgets I need to do this way. So having a formula to automate this is really important.
Any help would be appreciated. If you need more information please let me know.
Steven
In cell A2 I have Start Date
In Cell B2 I have End Date
In Cell D2 I have the total cost
In cells O1 thru Z1 I have the months 1/1/2005,2/1/2005.... 12/1/2005
In cells O2 thru Z2 I have the cost per month January thru December.
I am looking for a formula that I can put in each of the cells O2 thru Z2 that will look at the Start Date and End Date and spread the total costs in Cell D1 over that period of time based on the number of days.
For example: The start date for the program is Jan 15th the end date is March 15th. The Total Cost is $40,000. The total number of days between the Start date & end date is 59.
January has 16, February had 28, and March has 15.
$40,000/59 days = 677.97 per day.
so January would have $10,847.52 (677.97 x 16) allocated to it, February would have the largest portion allocated to it (677.97 x 28) etc...
The formulas in the cells O2 thru Z2 would show values in cells O,M, & N (January thru March) and all other cells would be blank.
I have many budgets I need to do this way. So having a formula to automate this is really important.
Any help would be appreciated. If you need more information please let me know.
Steven