Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
i have a situation where i need to allocate funds or dollar amounts for each calendar year (columns CY 2010 and CY 2011 and . Below is the table i have: Start Date Finish Date Total Days Subtotal 2009 2010 2011 1-Mar-09 28-Feb-11 730 $149,398.78 ??? ??? ??? What formula do i use for columns 2009, 2010 and 2011 to allocate the $$ for each Calendar Year? Thank you in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is the better organized way of the table (columns: StarDate, FinishDate,
TotDays, Subtotal, 2009, 2010, 2011): StartDate FinishDate TotDays Subtotal 2009 2010 2011 1-Mar-09 28-Feb-11 730 $149,398 ??? ??? ??? Thank you in advance. "Gladiator" wrote: Hi All, i have a situation where i need to allocate funds or dollar amounts for each calendar year (columns CY 2010 and CY 2011 and . Below is the table i have: Start Date Finish Date Total Days Subtotal 2009 2010 2011 1-Mar-09 28-Feb-11 730 $149,398.78 ??? ??? ??? What formula do i use for columns 2009, 2010 and 2011 to allocate the $$ for each Calendar Year? Thank you in advance. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Had to translate the formula from the german version, u might have to
verify the punctuation or the spelling of the functions if it's not working. It's calculating: subtotal / total Days * days in year 2009: A1 = StartDate B2 = FinishDate D2 = Subtotal =D2/(B2-A2+1)*SUMPRODUCT((YEAR(ROW(INDIRECT(A2&":"&B2)))=2 009)*1) Instead of inserting the year u might refer to the header like this: E $1 Hope this is what you were looking for. Hubisan |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hubisan, thanks for the response. It did work. But i did change the formula
by locking the year references and referencing the St and Fin dates that are in another sheet: =$D2/(Sheet3!$B8-Sheet3!$A8+1)*SUMPRODUCT((YEAR(ROW(INDIRECT(Sheet3 !$A8&":"&Sheet3!$B8)))=E$1)*1) So far it is working fine unless you have any comments on the changes i made. Thanks. "Hubisan" wrote: Had to translate the formula from the german version, u might have to verify the punctuation or the spelling of the functions if it's not working. It's calculating: subtotal / total Days * days in year 2009: A1 = StartDate B2 = FinishDate D2 = Subtotal =D2/(B2-A2+1)*SUMPRODUCT((YEAR(ROW(INDIRECT(A2&":"&B2)))=2 009)*1) Instead of inserting the year u might refer to the header like this: E $1 Hope this is what you were looking for. Hubisan . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
calendar year versus fiscal year | Excel Discussion (Misc queries) | |||
Complex allocation of workdays within Gov. fiscal year | Excel Programming | |||
Help dealing with a fiscal year rather than a calendar year | Excel Worksheet Functions | |||
Break on Calendar Year | Excel Programming | |||
change the year in a calendar template to different year | Excel Discussion (Misc queries) |