G
Guest
We have a table of Index Returns for every month end starting in 1992 to
current date. In access I am trying to calculate the Annual compound return
for 10 yrs, 5 yrs, 3 yrs and 1 yr.
Originally this calculation was done in excel and each index would have a
worksheet sheet with all the monthly values and a column called Return. In
the column called return there is a formula as follows
=PRODUCT(I44:I163)^(1/10)-1 (for 10 yr)
=PRODUCT(I92:I163)^(1/5)-1 (for 5 yr)
=PRODUCT(I128:I163)^(1/3)-1 (for 3 yr
=PRODUCT(I152:I163)-1 (for 1 yr)
Every year, we would redefine the 10 yr, 5 yr 3yr and 1 yr range to include
the proper dates for the formulas above.
My question is: how do I do this calculation in Access? There isn't a
product function. I have a table with all of the Monthly Index values since
1992 to current date. The fields are:
VLDT, Index Code, Index Name and Return. So, for the 10 yr calculation I
can put in a date range of ie: Between #31/12/2006# and #31/12/2006#, I
would need to either group by Index Code OR Index Name but here's the kicker,
it doesn't appear that there is a product function in access. So, any pearls
of wisdom on how I would do this product calculation above? I am so stumped
here!
current date. In access I am trying to calculate the Annual compound return
for 10 yrs, 5 yrs, 3 yrs and 1 yr.
Originally this calculation was done in excel and each index would have a
worksheet sheet with all the monthly values and a column called Return. In
the column called return there is a formula as follows
=PRODUCT(I44:I163)^(1/10)-1 (for 10 yr)
=PRODUCT(I92:I163)^(1/5)-1 (for 5 yr)
=PRODUCT(I128:I163)^(1/3)-1 (for 3 yr
=PRODUCT(I152:I163)-1 (for 1 yr)
Every year, we would redefine the 10 yr, 5 yr 3yr and 1 yr range to include
the proper dates for the formulas above.
My question is: how do I do this calculation in Access? There isn't a
product function. I have a table with all of the Monthly Index values since
1992 to current date. The fields are:
VLDT, Index Code, Index Name and Return. So, for the 10 yr calculation I
can put in a date range of ie: Between #31/12/2006# and #31/12/2006#, I
would need to either group by Index Code OR Index Name but here's the kicker,
it doesn't appear that there is a product function in access. So, any pearls
of wisdom on how I would do this product calculation above? I am so stumped
here!