I am trying to write a formula where I can get numbers from 1 to 20 in 5 columns and 4 rows
So it should be like this
1,2,3,4,5;6,7,8,9,10;11,12,13,14,15;16,17,18,19,20
I have put the semi column above to show when the numbers goes from 5th column to the next row.
This can easily be done with the sequence function but not sure how it can be done with excel 2016. On cell A1 I tried index(row(1:20) ,row(indirect("1:4")&column(A1:E1) but it doesn't work. Any idea ?
So it should be like this
1,2,3,4,5;6,7,8,9,10;11,12,13,14,15;16,17,18,19,20
I have put the semi column above to show when the numbers goes from 5th column to the next row.
This can easily be done with the sequence function but not sure how it can be done with excel 2016. On cell A1 I tried index(row(1:20) ,row(indirect("1:4")&column(A1:E1) but it doesn't work. Any idea ?