excel - CAGR on Dynamic Cells -


i have column of 12 rows follows:

enter image description here

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:

enter image description here

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -