Home > Blockchain >  Rotate multiple data from many rows and combine them into one column
Rotate multiple data from many rows and combine them into one column

Time:10-07

I have a certain type of data :

enter image description here

As we can see, I have many rows of the same size of cells in them (4) and the number of columns change accordingly to how much data I input.

What I would like to end up with, is something like this :

enter image description here

enter image description here

Either of this version works for me, so simply put I would need to use something similar to the =TRANSPOSE() function which flips the rows 90 degrees and then somehow combine the data from all the columns into one column. Any ideas?

EDIT ^ Above problem is resolved but I got another issue.

Now I would need to make something like this:

enter image description here

I would need to FLATTEN() the size1_x parts and then "copy" information on the left and on the right of that row to the flattened version of the table.

The expected outcome would need to be like this :

enter image description here

CodePudding user response:

Use FLATTEN function:

=FLATTEN(B2:E5)

or

=FILTER(FLATTEN(B2:E5),FLATTEN(B2:E5)<>"")

if you don't want blanks

enter image description here

  • Related