- Joined
- 1/2/07
- Messages
- 128
- Points
- 28
Hello everyone,
I am trying to write a user defined function in Excel that will allow me to select a range of cells and calculate the annualized return from monthly returns. I can accomplish this using an array function: {=PRODUCT((1+ET17:HS17)^(12/COUNT(ET17:HS17)))-1}.
The problem, however is not all return streams have the same starting date. I want to write a function that will ignore all blank cells and only start calculating from the first cell with a value. Can anyone provide an example of how to do this? Thank you and as always, time is of the essence!
I am trying to write a user defined function in Excel that will allow me to select a range of cells and calculate the annualized return from monthly returns. I can accomplish this using an array function: {=PRODUCT((1+ET17:HS17)^(12/COUNT(ET17:HS17)))-1}.
The problem, however is not all return streams have the same starting date. I want to write a function that will ignore all blank cells and only start calculating from the first cell with a value. Can anyone provide an example of how to do this? Thank you and as always, time is of the essence!