Hi,
I'm looking for a code/macro to modify Data1 in such a way so that it resembles the final result as shown in Data3 below:
Data1:
[TABLE="class: grid, width: 459"]
<colgroup><col style="text-align: center;"><col style="text-align: center;"><col span="6" style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J.F0304[/TD]
[TD]J1.6111[/TD]
[TD]J1.6731[/TD]
[TD]J1.6751[/TD]
[TD]J1.5801[/TD]
[TD]J1.6991[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J.H0113[/TD]
[TD]J1.1151[/TD]
[TD]J1.521[/TD]
[TD]J1.821[/TD]
[TD]J1.831[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J.H1701[/TD]
[TD]J1.3081[/TD]
[TD]J1.2111[/TD]
[TD]J1.2121[/TD]
[TD]J1.2441[/TD]
[TD]J1.2761[/TD]
[/TR]
</tbody>[/TABLE]
Moving all "J1.xxx.." cells below the "J.xxx.." prefix.
[TABLE="class: grid, width: 139"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J.F0304[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.6111[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.6731[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.6751[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.5801[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.6991[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J.H0113[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.1151[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.521[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.821[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.831[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J.H1701[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.3081[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.2111[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.2121[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.2441[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.2761[/TD]
[/TR]
</tbody>[/TABLE]
Data3:
[TABLE="class: grid, width: 139"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J.F0304[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.6111[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.6731[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.6751[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.5801[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.6991[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J.H0113[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J1.1151[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J1.521[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J1.821[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J1.831[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J.H1701[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.3081[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.2111[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.2121[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.2441[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.2761[/TD]
[/TR]
</tbody>[/TABLE]
Note:
VDD - this prefix is always on Col A
xxn - n is the number of J1 prefix present in each (Data1) row.
The code ends when all J1 cells are moved to the locations as shown in Data3 - on Col C below the "J.xxx.." cell.
Thanks in advance.
Eddie
Sample data1 attached
I'm looking for a code/macro to modify Data1 in such a way so that it resembles the final result as shown in Data3 below:
Data1:
[TABLE="class: grid, width: 459"]
<colgroup><col style="text-align: center;"><col style="text-align: center;"><col span="6" style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J.F0304[/TD]
[TD]J1.6111[/TD]
[TD]J1.6731[/TD]
[TD]J1.6751[/TD]
[TD]J1.5801[/TD]
[TD]J1.6991[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J.H0113[/TD]
[TD]J1.1151[/TD]
[TD]J1.521[/TD]
[TD]J1.821[/TD]
[TD]J1.831[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J.H1701[/TD]
[TD]J1.3081[/TD]
[TD]J1.2111[/TD]
[TD]J1.2121[/TD]
[TD]J1.2441[/TD]
[TD]J1.2761[/TD]
[/TR]
</tbody>[/TABLE]
Moving all "J1.xxx.." cells below the "J.xxx.." prefix.
[TABLE="class: grid, width: 139"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J.F0304[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.6111[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.6731[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.6751[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.5801[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.6991[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J.H0113[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.1151[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.521[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.821[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.831[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J.H1701[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.3081[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.2111[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.2121[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.2441[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]J1.2761[/TD]
[/TR]
</tbody>[/TABLE]
Data3:
[TABLE="class: grid, width: 139"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J.F0304[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.6111[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.6731[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.6751[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.5801[/TD]
[/TR]
[TR]
[TD]VDD_AC5[/TD]
[TD];[/TD]
[TD]J1.6991[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J.H0113[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J1.1151[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J1.521[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J1.821[/TD]
[/TR]
[TR]
[TD]VDD_AD4[/TD]
[TD];[/TD]
[TD]J1.831[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J.H1701[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.3081[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.2111[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.2121[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.2441[/TD]
[/TR]
[TR]
[TD]VDD_AD5[/TD]
[TD];[/TD]
[TD]J1.2761[/TD]
[/TR]
</tbody>[/TABLE]
Note:
VDD - this prefix is always on Col A
xxn - n is the number of J1 prefix present in each (Data1) row.
The code ends when all J1 cells are moved to the locations as shown in Data3 - on Col C below the "J.xxx.." cell.
Thanks in advance.
Eddie
Sample data1 attached