Hello,
I have an array formula that I want to update to make it more useful.
{=(PRODUCT(1+$a$2:$a$28/100)-1)*100}
That calculates the investment return for an entire time period, lets say 2006-07. I want to change the formula so that it will calculate the return only for the values within a specified annual period, say 2006 based on the date values and a lookup cell.
I tried doing this but it gave me the full period return.
{=(PRODUCT(IF(YEAR(DateExample=D8), (1+ReturnExample/100),0))-1)*100}
DateExample is A2:A28
ReturnExample is B2:B28
Here is a simple example...
https://cdn1.imggmi.com/uploads/2019/9/25/fd891ddcf4fa966d18bd60ea765287c5-full.jpg
How can I get E8 to update if I change the value in D8 to 2007?
I have an array formula that I want to update to make it more useful.
{=(PRODUCT(1+$a$2:$a$28/100)-1)*100}
That calculates the investment return for an entire time period, lets say 2006-07. I want to change the formula so that it will calculate the return only for the values within a specified annual period, say 2006 based on the date values and a lookup cell.
I tried doing this but it gave me the full period return.
{=(PRODUCT(IF(YEAR(DateExample=D8), (1+ReturnExample/100),0))-1)*100}
DateExample is A2:A28
ReturnExample is B2:B28
Here is a simple example...
https://cdn1.imggmi.com/uploads/2019/9/25/fd891ddcf4fa966d18bd60ea765287c5-full.jpg
How can I get E8 to update if I change the value in D8 to 2007?