I have a project portfolio that has several columns namely:
- Project name
- Project owner
- Cost
- Start date
- end date
I have to take the cost, divide it to get the cost per day, then multiply by days / month and finally show the cost for each month during that project range.
As an example: this is what I have...
| Project ID | Profit Center | Milestone | Cost | Start date | End date |
| 1 | Corp. | Testing | $ 11,000 | 11-02-22 | 30-08-22 |
this is what I need to create:
| Project ID | Profit Center | Milestone | Cost | Start date | End date | Feb-22 | Mar-22 | Apr-22 | May-22 | Jun-22 | Jul-22 | Aug-22 |
| 1 | Corp. | Testing | $ 11,000 | 11-02-22 | 30-08-22 | 1,707 | 2,940 | 2,844 | 2,940 | (2,769) | 1,696 | 1,642 |
In this example. I have a project that starts in Feb and runs thru end of August --> 7 months.
I want to find the difference (in days) from start to end {using datetimediff formula} then divide by cost to get cost/day.
Then I need to allocate that cost/day for every month by summing to all days in the month, until the last month.
The start and end will not be static. Some projects take 2 months, some 2 years.
I'm not sure if there is a simple way of doing this.
Any insights would be greatly appreciated.
Thanks.
-prpatel.