Hi, I have a column called A1: A1000, whose values are the monthly return of a stock. My task is to get the value of: (1+A1)*(1+A2)*(1+A3)* ... * (1+A1000).
It is easy if I create a new column equal to 1+A1, 1+A2, ... 1+A1000, and then use the product() function. But is there a clever way that I don't need to create a new column and can also get the (1+A1)*(1+A2)*(1+A3)* ... * (1+A1000) value? This is really helpful if no more columns need to be added.
Many thanks for your advice.
Bookmarks