Hello, i am new to the boards and am struggeling with some macro i would to use.
I've looked for some examples but cannot find what i would need.
The current table is as follows:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Column header[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]recorded power 2200W[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]diameter 8 mm[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]lenght 15 mm[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]lenght 5 mm[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]lenght 10 mm[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]recorded power 5000W[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]recorded power 2500W[/TD]
[/TR]
</tbody>[/TABLE]
Now ideally i would like to have the following result
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID
[/TD]
[TD]Recorded power[/TD]
[TD]Diameter[/TD]
[TD]lenght[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2200W[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]8 mm[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]15 mm[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]5 mm[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]10 mm[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]5000W[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]2500W[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So i was thinking that the part before a number would become the header and the number and everything behind it would become the value that is pasted in the corresponding column.
Would something like this would be possible?
I've looked for some examples but cannot find what i would need.
The current table is as follows:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Column header[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]recorded power 2200W[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]diameter 8 mm[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]lenght 15 mm[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]lenght 5 mm[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]lenght 10 mm[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]recorded power 5000W[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]recorded power 2500W[/TD]
[/TR]
</tbody>[/TABLE]
Now ideally i would like to have the following result
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID
[/TD]
[TD]Recorded power[/TD]
[TD]Diameter[/TD]
[TD]lenght[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2200W[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]8 mm[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]15 mm[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]5 mm[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]10 mm[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]5000W[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]2500W[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So i was thinking that the part before a number would become the header and the number and everything behind it would become the value that is pasted in the corresponding column.
Would something like this would be possible?