Hi all,
I'm struggling for a quite while trying to create formula that split monthly equally cost based on min & max dates from a range.
The idea is spread row values among the min & max dates of red square
In the example below ideally row 11 should be identified as longer task (lasting until column M) and cost of rows from 3 to 10 to be split equally between F until M
Identification can be a problem however just the split would already be a huge help
Table:
[TABLE="class: tableizer-table"]
<tbody>[TR]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[TH]E[/TH]
[TH]F[/TH]
[TH]G[/TH]
[TH]H[/TH]
[TH]I[/TH]
[TH]J[/TH]
[TH]K[/TH]
[TH]L[/TH]
[TH]M[/TH]
[/TR]
[TR]
[TD]1[/TD]
[TD]CR ID[/TD]
[TD]Task Name[/TD]
[TD]Cost[/TD]
[TD]Start[/TD]
[TD]Finish[/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]
[/TR]
[TR]
[TD]2[/TD]
[TD]AMDOCSFIN-91[/TD]
[TD]Blindagem Final Solution + Double Play/Facilities APPs[/TD]
[TD]$1,204.75[/TD]
[TD]8/21/2019[/TD]
[TD]4/25/2020[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]OMS[/TD]
[TD]$279.20[/TD]
[TD]8/21/2019[/TD]
[TD]2/16/2020[/TD]
[TD]15.64[/TD]
[TD]46.93[/TD]
[TD]48.50[/TD]
[TD]46.93[/TD]
[TD]48.50[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]ODS[/TD]
[TD]$272.22[/TD]
[TD]8/21/2019[/TD]
[TD]2/11/2020[/TD]
[TD]15.64[/TD]
[TD]46.93[/TD]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D][/TD]
[TD]WOL[/TD]
[TD]$76.78[/TD]
[TD]8/21/2019[/TD]
[TD]11/17/2019[/TD]
[TD]8.73[/TD]
[TD]26.18[/TD]
[TD]27.05[/TD]
[TD]14.83[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][/TD]
[TD]MCO[/TD]
[TD]$108.19[/TD]
[TD]8/22/2019[/TD]
[TD]4/25/2020[/TD]
[TD]3.94[/TD]
[TD]13.14[/TD]
[TD]13.58[/TD]
[TD]13.14[/TD]
[TD]13.58[/TD]
[TD]13.58[/TD]
[TD]12.70[/TD]
[TD]13.58[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]4236[/TD]
[TD]Alavancagem Ebilling[/TD]
[TD]$604.82[/TD]
[TD]10/25/2019[/TD]
[TD]8/23/2020[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD][/TD]
[TD]OMS[/TD]
[TD]$20.94[/TD]
[TD]10/25/2019[/TD]
[TD]11/7/2019[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]9.66[/TD]
[TD]11.28[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD][/TD]
[TD]CRM[/TD]
[TD]$213.94[/TD]
[TD]10/25/2019[/TD]
[TD]3/10/2020[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]9.37[/TD]
[TD]46.85[/TD]
[TD]48.41[/TD]
[TD]48.41[/TD]
[TD]45.29[/TD]
[TD]15.62[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD][/TD]
[TD]MCSS[/TD]
[TD]$230.34[/TD]
[TD]10/25/2019[/TD]
[TD]3/20/2020[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]9.40[/TD]
[TD]47.01[/TD]
[TD]48.58[/TD]
[TD]48.58[/TD]
[TD]45.44[/TD]
[TD]31.34[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD][/TD]
[TD]AR[/TD]
[TD]$34.90[/TD]
[TD]10/25/2019[/TD]
[TD]11/16/2019[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]9.52[/TD]
[TD]25.38[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD][/TD]
[TD]Invoicing[/TD]
[TD]$52.35[/TD]
[TD]12/29/2019[/TD]
[TD]1/31/2020[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]3.17[/TD]
[TD]49.18[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD][/TD]
[TD]MCO[/TD]
[TD]$52.35[/TD]
[TD]4/26/2020[/TD]
[TD]8/23/2020[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]
Any help will be very much appreciated and will save my job
Hi,
In your cell F4 ... you can test following formula :
Code:
=ROUND($C4*MAX(0,NETWORKDAYS(MAX($D4,F$2),MIN($E4,EOMONTH(F$2,0))))/NETWORKDAYS($D4,$E4),2)
Hope this will help
I'm not sure why but I'm not getting any value.
As I could understand from the formula there is no reference for the month of start & ending of each task, how will it be allocated along the months?<style type="text/css"> table.tableizer-table { font-size: 12px; border: 1px solid
#CCC ; font-family: Arial, Helvetica, sans-serif; } .tableizer-table td { padding: 4px; margin: 3px; border: 1px solid
#CCC ; } .tableizer-table th { background-color:
#104E8B ; color:
#FFF ; font-weight: bold; }</style><style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid
#CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid
#CCC ;
}
.tableizer-table th {
background-color:
#104E8B ;
color:
#FFF ;
font-weight: bold;
}
</style>