Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Creating a dynamic 2d array

$
0
0

I have to create variable length sequences from a column along its rows.
Eg- Suppose the column is as below

2
4
3

I want to create a sequence like this

2 | 1 | 2
4 | 1 | 2 | 3 | 4
3 | 1 | 2 | 3

I'm able to create a single sequence using the SEQUENCE function but to spread it over the entire column, I'm not able to use the ARRAYFORMULA correctly.
If I write ARRAYFORMULA(SEQUENCE(A1:A3)), it gives me a column of three ones.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>