Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 994

Combining every 15 rows into one across numerous rows

$
0
0

I have data spreading out in 45000 rows (single column).I need to combine every 15 rows into single row.So in the end I need to have 3000 rows with combined data from every 15 rows.

from:

row 1 row 2row 3row 4etc...

into:

row 1  (rows 1-15)row 2  (rows 16-30)row 3  (rows 31-45)row 4  (rows 46-60)etc...

I know how to combine 15 rows into one, but don't know how to create module to repeat this across all 45000 rows.

So far I used CONCATENATE function to combine multiple rows (15) into a single one. However there are just too many rows (45000) and I need to find the way to do this automatically across all the rows. So I think I need to create a macro using VBA.

The data in the rows are combination of numbers and strings, here is example of first few rows:

20181102-112745254375,$IIGLL,4342.3344,N,01548.0639,E,102745.00,A,A*7E20181102-112745306452,$IIHDG,264.0,,,3.90,E*1820181102-112745342864,$IIHDT,267.9,T*2820181102-112745385244,$IIHDM,264.0,M*22

Viewing all articles
Browse latest Browse all 994

Trending Articles