Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Extend a range based on a variable in "pure" excel

How one can create a dynamic range for extending formula with a variable number, without using vba?
The problem is that, certain column (e.g. column A) is dedicated to inputs (1XN with dynamic N based on number of filled row), and formula are needed to be extended as a matrix (MXN with fixed M).
Naively, solution seems to be for instance using =TRANSPOSE(A1:AX) where X is in fact number of filled rows in columns A: =COUNTA(A1:A1000).

How could that be achieved withouth vba?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

a quick solution would be =TRANSPOSE( OFFSET($A$1,,,COUNTA(A1:A1000),1) )
mind that for Office <365 instead of enter press ctrl+enter (to make it an array formula)

but I would strongly advise to get a view of Dynamic Arrays in here or u_tb and see all the possibilities
cheers

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading