ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   More info ! (https://www.excelbanter.com/excel-worksheet-functions/236522-more-info.html)

fi.or.jp.de

More info !
 
Hi All,

what is dynamic array ? how is this used ?


Harlan Grove[_2_]

More info !
 
"fi.or.jp.de" wrote...
what is dynamic array ? how is this used ?


A contrived example.

Name a cell N, and enter 24 into it. Define another name S as the
formula

=ROW(INDEX($1:$65536,1,1):INDEX($1:$65536,N,1))

Use it in a formula like

=SUMPRODUCT(INDEX(C3:C1000,999-N):C1000,S)

This returns a weighted sum of the last N (24 per the example) values
in C3:C1000.

Dynamic ranges are more commonly used than dynamic arrays, but the
intent of both is to allow the model to change the size and sometimes
the shape of ranges or arrays used in formulas.



All times are GMT +1. The time now is 09:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com