Alex Barrosse
New Member
- Joined
- Jul 14, 2011
- Messages
- 8
So I'm working on a project and I need to calculate a total year cost (from today's date forward) based on a fixed monthly cost for each full month, and then the percentage of the monthly cost based on how many days into a month a project is ending.
<TABLE style="WIDTH: 473pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=629 border=0 x:str><COLGROUP><COL style="WIDTH: 102pt; mso-width-source: userset; mso-width-alt: 4973" width=136><COL style="WIDTH: 86pt; mso-width-source: userset; mso-width-alt: 4169" width=114><COL style="WIDTH: 131pt; mso-width-source: userset; mso-width-alt: 6363" width=174><COL style="WIDTH: 154pt; mso-width-source: userset; mso-width-alt: 7497" width=205><TBODY><TR style="HEIGHT: 39pt" height=52><TD class=xl830 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 102pt; BORDER-BOTTOM: gray 1pt solid; HEIGHT: 39pt; BACKGROUND-COLOR: transparent" width=136 height=52>Start Commitment Date</TD><TD class=xl830 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 86pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=114>End Commitment Date</TD><TD class=xl827 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 131pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=174 x:str="Monthly Cost USD">Monthly Cost USD</TD><TD class=xl831 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 154pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: silver" width=205 x:str="Committed Spend Jul-Dec 11">Committed Spend Jul-Dec 11 </TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl832 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:num="40330">06/01/10</TD><TD class=xl832 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="40754">07/30/11</TD><TD class=xl828 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="34365.81">30,000 </TD><TD class=xl829 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: silver"></TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl832 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:num="40395">08/05/10</TD><TD class=xl832 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="40759">08/04/11</TD><TD class=xl828 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="16712.45">15,000 </TD><TD class=xl829 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: silver"></TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl833 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:num="40594">2/20/2011</TD><TD class=xl833 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="40774">8/19/2011</TD><TD class=xl828 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="36626.9">40,000 </TD><TD class=xl829 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: silver"></TD></TR></TBODY></TABLE>
basically I need a formula to sum all of the full months and the partial month.
Ex. for the 2nd row, the commited spend would be
15,000 (for july) + 0.129 * 15,000 (prorated cost for the 4 days in august).
The start date can be anything as early as 2 years prior to now but I only need data from July 1st, 2011 forward and the end date can be as far as 2 years in advance but I only need up to Dec 31, 2011.
I appreciate any ideas. Thanks.
<TABLE style="WIDTH: 473pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=629 border=0 x:str><COLGROUP><COL style="WIDTH: 102pt; mso-width-source: userset; mso-width-alt: 4973" width=136><COL style="WIDTH: 86pt; mso-width-source: userset; mso-width-alt: 4169" width=114><COL style="WIDTH: 131pt; mso-width-source: userset; mso-width-alt: 6363" width=174><COL style="WIDTH: 154pt; mso-width-source: userset; mso-width-alt: 7497" width=205><TBODY><TR style="HEIGHT: 39pt" height=52><TD class=xl830 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 102pt; BORDER-BOTTOM: gray 1pt solid; HEIGHT: 39pt; BACKGROUND-COLOR: transparent" width=136 height=52>Start Commitment Date</TD><TD class=xl830 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 86pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=114>End Commitment Date</TD><TD class=xl827 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 1pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 131pt; BORDER-BOTTOM: gray 1pt solid; BACKGROUND-COLOR: transparent" width=174 x:str="Monthly Cost USD">Monthly Cost USD</TD><TD class=xl831 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 154pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: silver" width=205 x:str="Committed Spend Jul-Dec 11">Committed Spend Jul-Dec 11 </TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl832 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:num="40330">06/01/10</TD><TD class=xl832 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="40754">07/30/11</TD><TD class=xl828 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="34365.81">30,000 </TD><TD class=xl829 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: silver"></TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl832 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:num="40395">08/05/10</TD><TD class=xl832 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="40759">08/04/11</TD><TD class=xl828 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="16712.45">15,000 </TD><TD class=xl829 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: silver"></TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl833 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" height=17 x:num="40594">2/20/2011</TD><TD class=xl833 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="40774">8/19/2011</TD><TD class=xl828 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" x:num="36626.9">40,000 </TD><TD class=xl829 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: silver"></TD></TR></TBODY></TABLE>
basically I need a formula to sum all of the full months and the partial month.
Ex. for the 2nd row, the commited spend would be
15,000 (for july) + 0.129 * 15,000 (prorated cost for the 4 days in august).
The start date can be anything as early as 2 years prior to now but I only need data from July 1st, 2011 forward and the end date can be as far as 2 years in advance but I only need up to Dec 31, 2011.
I appreciate any ideas. Thanks.