I have a large data set where a single account is represented as a fixed number of rows (i.e. 5) in a single column. In other words, the first 5 rows in the column represent a single account. The next 5 rows represent the next account, etc.
I want to convert each set of 5 rows into a single row with 5 colums so that I can sort and aggregate the data. How can I convert every 5 rows into 5 columns in a single row?
For example, I want to convert this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
into this:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
Is this possible to do this in a manner that could be easily be repeated to accomodate 10-15 thousand rows of input data in this format?
Thanks for your help.
Tom
I want to convert each set of 5 rows into a single row with 5 colums so that I can sort and aggregate the data. How can I convert every 5 rows into 5 columns in a single row?
For example, I want to convert this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
into this:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
Is this possible to do this in a manner that could be easily be repeated to accomodate 10-15 thousand rows of input data in this format?
Thanks for your help.
Tom