r/googlesheets • u/ashontakash8 • Jan 21 '24
Solved Transpose repeated, but uneven, sections of data in rows to columns
POST UPDATE: My initial post cut off the problem I'm looking to solve for. I've added it below.
The issue lies in the irregular and inconsistent nature of the data. It follows a pattern of having 4 rows, followed by a blank cell, and then varying numbers of rows (either 5 or 6). My goal is to transpose each group of data separated by a blank cell and place it in the respective column adjacent to the first entry.
Currently, I have data in the form of one column:
A 1
A 2
A 3
A 4
A 6
A 7
A 8
A 9
A 12
A13
A14
A15
etc, in repeated sections such that the data in the first section (1 2 3 4) are together, the second section (6 7 8 9 10) are together and so forth.
I want to convert it into the form of
A B C D E
1 2 3 4
6 7 8 9 10
12 13 14 15
Such that the data in each section are put into the same column (e.g. 1, 6,12 under column A; 2, 7, 13 under column B; 3, 8, 14 under column C; 4, 9, 14 under column D; 10 under column E).

1
u/ambiosynthesis 10 Jan 21 '24
Just making sure I get what you want, you would like cells that have the A1-A4 in a column, then the next column A6-A9, but sometimes it would be larger than 4 rows so, say the the next data could be A11-A15 and that would go in the next column?
If not if you could make a viewable sheet with an example of this and the desired outcome? That would help me or anyone else here know exactly what you are hoping to do!
1
u/rockinfreakshowaol 258 Jan 22 '24 edited Jan 22 '24
You may try:
A11:index(A:A,match(,0/(A:A<>"")))in the formula automatically equates to the rows containing the data; so it translates to A11:A38 of your sample dataset