Dear Experts,
Hoping you can help me
I would like to transpose data from one column into rows. I think there are about 4500 rows of data (not blank fields).
My data looks like below: 3 rows data, 1 blank row, 3 rows data, 1 blank row and then 3 rows of data. Further below you can see what the transposed version should look like. Can anyone help me to write a VBA script to solve this problem?
[TABLE="width: 261"]
<colgroup><col width="261" style="width: 196pt;"></colgroup><tbody>[TR]
[TD="width: 261"]Heineken[/TD]
[/TR]
[TR]
[TD]Positie in top 500: 10 (positie in 2017: 10)[/TD]
[/TR]
[TR]
[TD]Activiteit: Bierbrouwer[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Omzet 2017: 22.029 miljoen euro[/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: 5,72%[/TD]
[/TR]
[TR]
[TD]Winst/verlies 2017: 2.153 miljoen euro[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Personeel: 80.000 [/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: 9,38%[/TD]
[/TR]
[TR]
[TD]Vacatures 2018: 52[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Rabobank Groep[/TD]
[/TR]
[TR]
[TD]Positie in top 500: 11 (positie in 2017: 11)[/TD]
[/TR]
[TR]
[TD]Activiteit: Bank[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Omzet 2017: 21.125 miljoen euro[/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: 1,76%[/TD]
[/TR]
[TR]
[TD]Winst/verlies 2017: 2.674 miljoen euro[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Personeel: 44.000 [/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: -3,86%[/TD]
[/TR]
[TR]
[TD]Vacatures 2018: 128[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]SHV[/TD]
[/TR]
[TR]
[TD]Positie in top 500: 12 (positie in 2017: 13)[/TD]
[/TR]
[TR]
[TD]Activiteit: Energieconglomeraat[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Omzet 2017: 19.871 miljoen euro[/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: 6,66%[/TD]
[/TR]
[TR]
[TD]Winst/verlies 2017: 1.264 miljoen euro[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Personeel: 60.000 [/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: -0,33%[/TD]
[/TR]
[TR]
[TD]Vacatures 2018: 25[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 1824"]
<colgroup><col width="139" style="width: 104pt;"><col width="264" style="width: 198pt;"><col width="221" style="width: 166pt;"><col width="139" style="width: 104pt;"><col width="227" style="width: 170pt;"><col width="139" span="6" style="width: 104pt;"></colgroup><tbody>[TR]
[TD="width: 139"]Shell[/TD]
[TD="width: 264"]Positie in top 500: 1 (positie in 2017: 1)[/TD]
[TD="width: 221"]Activiteit: Olie- en gasconcern[/TD]
[TD="width: 139"][/TD]
[TD="width: 227"]Omzet 2017: 281.680 miljoen euro[/TD]
[TD="width: 139"]Percentage + / - t.o.v. vorig jaar: 28,28%[/TD]
[TD="width: 278, colspan: 2"]Winst/verlies 2017: 12.401 miljoen euro[/TD]
[TD="width: 139"]Personeel: 86.000 [/TD]
[TD="width: 139"]Percentage + / - t.o.v. vorig jaar: -6,52%[/TD]
[TD="width: 139"]Vacatures 2018: 109[/TD]
[/TR]
[TR]
[TD]Vitol Holding [/TD]
[TD]Positie in top 500: 2 (positie in 2017: 2)[/TD]
[TD]Activiteit: Oliehandel[/TD]
[TD][/TD]
[TD]Omzet 2017: 143.842 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -6,67%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 1.975 miljoen euro[/TD]
[TD]Personeel: 2.200 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 21,55%[/TD]
[TD]Vacatures 2018: 0[/TD]
[/TR]
[TR]
[TD]Ahold Delhaize[/TD]
[TD]Positie in top 500: 3 (positie in 2017: 4)[/TD]
[TD]Activiteit: Supermarktketen[/TD]
[TD][/TD]
[TD]Omzet 2017: 62.890 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 26,55%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 1.817 miljoen euro[/TD]
[TD]Personeel: 369.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -0,27%[/TD]
[TD]Vacatures 2018: 3218[/TD]
[/TR]
[TR]
[TD]Aegon[/TD]
[TD]Positie in top 500: 4 (positie in 2017: 7)[/TD]
[TD]Activiteit: Verzekeraar[/TD]
[TD][/TD]
[TD]Omzet 2017: 57.910 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 8,53%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 2.361 miljoen euro[/TD]
[TD]Personeel: 28.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -3,61%[/TD]
[TD]Vacatures 2018: 92[/TD]
[/TR]
[TR]
[TD]Unilever[/TD]
[TD]Positie in top 500: 5 (positie in 2017: 3)[/TD]
[TD]Activiteit: Levensmiddelenfabrikant[/TD]
[TD][/TD]
[TD]Omzet 2017: 53.715 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 1,9%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 6.486 miljoen euro[/TD]
[TD]Personeel: 161.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -4,73%[/TD]
[TD]Vacatures 2018: 27[/TD]
[/TR]
[TR]
[TD]ING[/TD]
[TD]Positie in top 500: 6 (positie in 2017: 5)[/TD]
[TD]Activiteit: Bank[/TD]
[TD][/TD]
[TD]Omzet 2017: 48.017 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -3,15%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 4.987 miljoen euro[/TD]
[TD]Personeel: 58.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 10,8%[/TD]
[TD]Vacatures 2018: 259[/TD]
[/TR]
[TR]
[TD]Ingka Holding (IKEA)[/TD]
[TD]Positie in top 500: 7 (positie in 2017: 6)[/TD]
[TD]Activiteit: Meubelwarenhuisketen[/TD]
[TD][/TD]
[TD]Omzet 2017: 36.602 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 3,27%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 2.505 miljoen euro[/TD]
[TD]Personeel: 155.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: n.b.%[/TD]
[TD]Vacatures 2018: 57[/TD]
[/TR]
[TR]
[TD]Randstad[/TD]
[TD]Positie in top 500: 8 (positie in 2017: 12)[/TD]
[TD]Activiteit: Uitzendbureau[/TD]
[TD][/TD]
[TD]Omzet 2017: 23.273 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 12,52%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 632 miljoen euro[/TD]
[TD]Personeel: 38.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 17,5%[/TD]
[TD]Vacatures 2018: 3578[/TD]
[/TR]
[TR]
[TD]Achmea[/TD]
[TD]Positie in top 500: 9 (positie in 2017: 8)[/TD]
[TD]Activiteit: Verzekeraar[/TD]
[TD][/TD]
[TD]Omzet 2017: 22.065 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -8,01%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 216 miljoen euro[/TD]
[TD]Personeel: 15.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -2,27%[/TD]
[TD]Vacatures 2018: 89[/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
Dave from Holland
Hoping you can help me
I would like to transpose data from one column into rows. I think there are about 4500 rows of data (not blank fields).
My data looks like below: 3 rows data, 1 blank row, 3 rows data, 1 blank row and then 3 rows of data. Further below you can see what the transposed version should look like. Can anyone help me to write a VBA script to solve this problem?
[TABLE="width: 261"]
<colgroup><col width="261" style="width: 196pt;"></colgroup><tbody>[TR]
[TD="width: 261"]Heineken[/TD]
[/TR]
[TR]
[TD]Positie in top 500: 10 (positie in 2017: 10)[/TD]
[/TR]
[TR]
[TD]Activiteit: Bierbrouwer[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Omzet 2017: 22.029 miljoen euro[/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: 5,72%[/TD]
[/TR]
[TR]
[TD]Winst/verlies 2017: 2.153 miljoen euro[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Personeel: 80.000 [/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: 9,38%[/TD]
[/TR]
[TR]
[TD]Vacatures 2018: 52[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Rabobank Groep[/TD]
[/TR]
[TR]
[TD]Positie in top 500: 11 (positie in 2017: 11)[/TD]
[/TR]
[TR]
[TD]Activiteit: Bank[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Omzet 2017: 21.125 miljoen euro[/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: 1,76%[/TD]
[/TR]
[TR]
[TD]Winst/verlies 2017: 2.674 miljoen euro[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Personeel: 44.000 [/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: -3,86%[/TD]
[/TR]
[TR]
[TD]Vacatures 2018: 128[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]SHV[/TD]
[/TR]
[TR]
[TD]Positie in top 500: 12 (positie in 2017: 13)[/TD]
[/TR]
[TR]
[TD]Activiteit: Energieconglomeraat[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Omzet 2017: 19.871 miljoen euro[/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: 6,66%[/TD]
[/TR]
[TR]
[TD]Winst/verlies 2017: 1.264 miljoen euro[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Personeel: 60.000 [/TD]
[/TR]
[TR]
[TD]Percentage + / - t.o.v. vorig jaar: -0,33%[/TD]
[/TR]
[TR]
[TD]Vacatures 2018: 25[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 1824"]
<colgroup><col width="139" style="width: 104pt;"><col width="264" style="width: 198pt;"><col width="221" style="width: 166pt;"><col width="139" style="width: 104pt;"><col width="227" style="width: 170pt;"><col width="139" span="6" style="width: 104pt;"></colgroup><tbody>[TR]
[TD="width: 139"]Shell[/TD]
[TD="width: 264"]Positie in top 500: 1 (positie in 2017: 1)[/TD]
[TD="width: 221"]Activiteit: Olie- en gasconcern[/TD]
[TD="width: 139"][/TD]
[TD="width: 227"]Omzet 2017: 281.680 miljoen euro[/TD]
[TD="width: 139"]Percentage + / - t.o.v. vorig jaar: 28,28%[/TD]
[TD="width: 278, colspan: 2"]Winst/verlies 2017: 12.401 miljoen euro[/TD]
[TD="width: 139"]Personeel: 86.000 [/TD]
[TD="width: 139"]Percentage + / - t.o.v. vorig jaar: -6,52%[/TD]
[TD="width: 139"]Vacatures 2018: 109[/TD]
[/TR]
[TR]
[TD]Vitol Holding [/TD]
[TD]Positie in top 500: 2 (positie in 2017: 2)[/TD]
[TD]Activiteit: Oliehandel[/TD]
[TD][/TD]
[TD]Omzet 2017: 143.842 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -6,67%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 1.975 miljoen euro[/TD]
[TD]Personeel: 2.200 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 21,55%[/TD]
[TD]Vacatures 2018: 0[/TD]
[/TR]
[TR]
[TD]Ahold Delhaize[/TD]
[TD]Positie in top 500: 3 (positie in 2017: 4)[/TD]
[TD]Activiteit: Supermarktketen[/TD]
[TD][/TD]
[TD]Omzet 2017: 62.890 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 26,55%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 1.817 miljoen euro[/TD]
[TD]Personeel: 369.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -0,27%[/TD]
[TD]Vacatures 2018: 3218[/TD]
[/TR]
[TR]
[TD]Aegon[/TD]
[TD]Positie in top 500: 4 (positie in 2017: 7)[/TD]
[TD]Activiteit: Verzekeraar[/TD]
[TD][/TD]
[TD]Omzet 2017: 57.910 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 8,53%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 2.361 miljoen euro[/TD]
[TD]Personeel: 28.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -3,61%[/TD]
[TD]Vacatures 2018: 92[/TD]
[/TR]
[TR]
[TD]Unilever[/TD]
[TD]Positie in top 500: 5 (positie in 2017: 3)[/TD]
[TD]Activiteit: Levensmiddelenfabrikant[/TD]
[TD][/TD]
[TD]Omzet 2017: 53.715 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 1,9%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 6.486 miljoen euro[/TD]
[TD]Personeel: 161.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -4,73%[/TD]
[TD]Vacatures 2018: 27[/TD]
[/TR]
[TR]
[TD]ING[/TD]
[TD]Positie in top 500: 6 (positie in 2017: 5)[/TD]
[TD]Activiteit: Bank[/TD]
[TD][/TD]
[TD]Omzet 2017: 48.017 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -3,15%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 4.987 miljoen euro[/TD]
[TD]Personeel: 58.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 10,8%[/TD]
[TD]Vacatures 2018: 259[/TD]
[/TR]
[TR]
[TD]Ingka Holding (IKEA)[/TD]
[TD]Positie in top 500: 7 (positie in 2017: 6)[/TD]
[TD]Activiteit: Meubelwarenhuisketen[/TD]
[TD][/TD]
[TD]Omzet 2017: 36.602 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 3,27%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 2.505 miljoen euro[/TD]
[TD]Personeel: 155.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: n.b.%[/TD]
[TD]Vacatures 2018: 57[/TD]
[/TR]
[TR]
[TD]Randstad[/TD]
[TD]Positie in top 500: 8 (positie in 2017: 12)[/TD]
[TD]Activiteit: Uitzendbureau[/TD]
[TD][/TD]
[TD]Omzet 2017: 23.273 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 12,52%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 632 miljoen euro[/TD]
[TD]Personeel: 38.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: 17,5%[/TD]
[TD]Vacatures 2018: 3578[/TD]
[/TR]
[TR]
[TD]Achmea[/TD]
[TD]Positie in top 500: 9 (positie in 2017: 8)[/TD]
[TD]Activiteit: Verzekeraar[/TD]
[TD][/TD]
[TD]Omzet 2017: 22.065 miljoen euro[/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -8,01%[/TD]
[TD="colspan: 2"]Winst/verlies 2017: 216 miljoen euro[/TD]
[TD]Personeel: 15.000 [/TD]
[TD]Percentage + / - t.o.v. vorig jaar: -2,27%[/TD]
[TD]Vacatures 2018: 89[/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
Dave from Holland