excel - CAGR on Dynamic Cells -
i have column of 12 rows follows:
for simplicity let's assume column , values in rows 1-12 (ignoring first 2 rows).
i need calculate cag, formula is:
(end value/beginning value)^1/(# of years) -1 here (38026/2402)^(0.25)-1. small thing every column have, first non 0 value appears in different row number. both affects years # in formula, value in beginning period.
what formula give me that?
with following data layout:
you can find:
b1 - position of first non value with:
=match(1,--(a1:a12<>0),0) c1 - position of last value (exluding #ref!) with:
=match(9.999999e+307,a1:a12) d1 - cagr value with:
=(index(a1:a12,c1)/index(a1:a12,b1))^(1/(c1-b1))-1 or:
=rate(c1-b1,,-index(a1:a12,b1),index(a1:a12,c1)) second method found here.


Comments
Post a Comment