I need help with a macro that will transform the following table:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Component P/N[/TD]
[TD]Rev[/TD]
[TD]Qty[/TD]
[TD]BUn[/TD]
[TD]Description[/TD]
[TD]Mfg Name[/TD]
[TD]Mfr Part Number[/TD]
[/TR]
[TR]
[TD]130-158-01-02[/TD]
[TD][TABLE="width: 30"]
<tbody>[TR]
[TD="width: 30"]D2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[TD][TABLE="width: 31"]
<tbody>[TR]
[TD="width: 31"]EA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 216"]
<tbody>[TR]
[TD="width: 216"]Display/System uP,Jabroni[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="width: 100"]220-819-01-00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 30"]
<tbody>[TR]
[TD="width: 30"]G3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[TD][TABLE="width: 31"]
<tbody>[TR]
[TD="width: 31"]EA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 216"]
<tbody>[TR]
[TD="width: 216"]PCBA,System Contlr,Jabroni[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="width: 100"]402-745-01-00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]23[/TD]
[TD][TABLE="width: 31"]
<tbody>[TR]
[TD="width: 31"]EA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 216"]
<tbody>[TR]
[TD="width: 216"]CAP,X5R,123FG,26V,9%,0806[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]Taiyo-Yuden[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]TMK105BJ104KV-F[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]TDK[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]C1005X5R1E104K[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="width: 100"]437-123-01-00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]8[/TD]
[TD][TABLE="width: 31"]
<tbody>[TR]
[TD="width: 31"]EA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 216"]
<tbody>[TR]
[TD="width: 216"]RES,10.0K,1%,0806[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]YAGEO[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]RC0402FR-0710KL[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]STACKPOLE ELECTRONIC INC.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]RMCF0402FT10K0[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]Panasonic-ECG[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]ERJ-2RKF1002X[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
So that it ends up looking like the table below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Component P/N[/TD]
[TD]Rev[/TD]
[TD]Qty[/TD]
[TD]BUn[/TD]
[TD]Description[/TD]
[TD]MFR1[/TD]
[TD]MPN1[/TD]
[TD]MFR2[/TD]
[TD]MPN2[/TD]
[TD]MFR3[/TD]
[TD]MPN3[/TD]
[/TR]
[TR]
[TD]130-158-01-02[/TD]
[TD]D2[/TD]
[TD]1[/TD]
[TD]EA[/TD]
[TD]Display/System uP,Jabron[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="width: 100"]220-819-01-00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]G3[/TD]
[TD]1[/TD]
[TD]EA[/TD]
[TD]PCBA,System Contlr,Jabroni[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]402-745-01-00[/TD]
[TD][/TD]
[TD]23[/TD]
[TD]EA[/TD]
[TD]CAP,X5R,123FG,26V,9%,0806[/TD]
[TD][TABLE="width: 84"]
<tbody>[TR]
[TD="width: 84"]Taiyo-Yuden[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]TMK105BJ104KV-F[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]TDK[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 114"]
<tbody>[TR]
[TD="width: 114"]C1005X5R1E104K[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]437-123-01-00[/TD]
[TD][/TD]
[TD]8[/TD]
[TD]EA[/TD]
[TD]RES,10.0K,1%,0806[/TD]
[TD][TABLE="width: 84"]
<tbody>[TR]
[TD="width: 84"]YAGEO[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]RC0402FR-0710KL[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]STACKPOLE ELECTRONIC INC.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 114"]
<tbody>[TR]
[TD="width: 114"]RMCF0402FT10K0[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR]
[TD="width: 99"]Panasonic-ECG[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR]
[TD="width: 99"]ERJ-2RKF1002X[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
This sample is much smaller than the actual data I am working with. the MFR & MPN can be as high as MFR36, MPN36 and can be over 1000 rows. Any help is much appreciated. Thanks!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Component P/N[/TD]
[TD]Rev[/TD]
[TD]Qty[/TD]
[TD]BUn[/TD]
[TD]Description[/TD]
[TD]Mfg Name[/TD]
[TD]Mfr Part Number[/TD]
[/TR]
[TR]
[TD]130-158-01-02[/TD]
[TD][TABLE="width: 30"]
<tbody>[TR]
[TD="width: 30"]D2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[TD][TABLE="width: 31"]
<tbody>[TR]
[TD="width: 31"]EA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 216"]
<tbody>[TR]
[TD="width: 216"]Display/System uP,Jabroni[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="width: 100"]220-819-01-00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 30"]
<tbody>[TR]
[TD="width: 30"]G3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[TD][TABLE="width: 31"]
<tbody>[TR]
[TD="width: 31"]EA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 216"]
<tbody>[TR]
[TD="width: 216"]PCBA,System Contlr,Jabroni[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="width: 100"]402-745-01-00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]23[/TD]
[TD][TABLE="width: 31"]
<tbody>[TR]
[TD="width: 31"]EA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 216"]
<tbody>[TR]
[TD="width: 216"]CAP,X5R,123FG,26V,9%,0806[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]Taiyo-Yuden[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]TMK105BJ104KV-F[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]TDK[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]C1005X5R1E104K[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="width: 100"]437-123-01-00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]8[/TD]
[TD][TABLE="width: 31"]
<tbody>[TR]
[TD="width: 31"]EA[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 216"]
<tbody>[TR]
[TD="width: 216"]RES,10.0K,1%,0806[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]YAGEO[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]RC0402FR-0710KL[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]STACKPOLE ELECTRONIC INC.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]RMCF0402FT10K0[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]Panasonic-ECG[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]ERJ-2RKF1002X[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
So that it ends up looking like the table below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Component P/N[/TD]
[TD]Rev[/TD]
[TD]Qty[/TD]
[TD]BUn[/TD]
[TD]Description[/TD]
[TD]MFR1[/TD]
[TD]MPN1[/TD]
[TD]MFR2[/TD]
[TD]MPN2[/TD]
[TD]MFR3[/TD]
[TD]MPN3[/TD]
[/TR]
[TR]
[TD]130-158-01-02[/TD]
[TD]D2[/TD]
[TD]1[/TD]
[TD]EA[/TD]
[TD]Display/System uP,Jabron[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="width: 100"]220-819-01-00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]G3[/TD]
[TD]1[/TD]
[TD]EA[/TD]
[TD]PCBA,System Contlr,Jabroni[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]402-745-01-00[/TD]
[TD][/TD]
[TD]23[/TD]
[TD]EA[/TD]
[TD]CAP,X5R,123FG,26V,9%,0806[/TD]
[TD][TABLE="width: 84"]
<tbody>[TR]
[TD="width: 84"]Taiyo-Yuden[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]TMK105BJ104KV-F[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]TDK[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 114"]
<tbody>[TR]
[TD="width: 114"]C1005X5R1E104K[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]437-123-01-00[/TD]
[TD][/TD]
[TD]8[/TD]
[TD]EA[/TD]
[TD]RES,10.0K,1%,0806[/TD]
[TD][TABLE="width: 84"]
<tbody>[TR]
[TD="width: 84"]YAGEO[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 119"]
<tbody>[TR]
[TD="width: 119"]RC0402FR-0710KL[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 188"]
<tbody>[TR]
[TD="width: 188"]STACKPOLE ELECTRONIC INC.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 114"]
<tbody>[TR]
[TD="width: 114"]RMCF0402FT10K0[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR]
[TD="width: 99"]Panasonic-ECG[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR]
[TD="width: 99"]ERJ-2RKF1002X[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
This sample is much smaller than the actual data I am working with. the MFR & MPN can be as high as MFR36, MPN36 and can be over 1000 rows. Any help is much appreciated. Thanks!