Hi
The data I'm trying to consolidate has this structure. I found pieces of code around the forum but i just can't make it work, is there a way using VBA or a formula I can do this?
Make this:
<tbody>
[TD="class: xl63"]A[/TD]
[TD="class: xl63"]B[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]John[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]orange[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]Peter[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]Lemon[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]Orange[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]Lemon[/TD]
[TD="class: xl63"]3[/TD]
[TD="class: xl63"]Orange[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]Richard[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]orange[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]lemon[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]James[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]lemon[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]coconut[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]coconut[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]lemon[/TD]
</tbody>...
become this:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]A[/TD]
[TD="class: xl65, width: 64"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"]John[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]apple[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]orange[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"]Peter[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]Lemon[/TD]
[/TR]
[TR]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]Orange[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"]Richard[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]orange[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]lemon[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]apple[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"]James[/TD]
[/TR]
[TR]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]lemon[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]coconut[/TD]
[/TR]
[TR]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]apple[/TD]
[/TR]
</tbody>[/TABLE]
Thank you
The data I'm trying to consolidate has this structure. I found pieces of code around the forum but i just can't make it work, is there a way using VBA or a formula I can do this?
Make this:
<tbody>
[TD="class: xl63"]A[/TD]
[TD="class: xl63"]B[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]John[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]orange[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]Peter[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]Lemon[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]Orange[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]Lemon[/TD]
[TD="class: xl63"]3[/TD]
[TD="class: xl63"]Orange[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]Richard[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]orange[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]lemon[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]James[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]lemon[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]coconut[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]apple[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]coconut[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]lemon[/TD]
</tbody>
become this:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]A[/TD]
[TD="class: xl65, width: 64"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"]John[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]apple[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]orange[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"]Peter[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]Lemon[/TD]
[/TR]
[TR]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]Orange[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"]Richard[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]orange[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]lemon[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]apple[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"]James[/TD]
[/TR]
[TR]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]lemon[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]coconut[/TD]
[/TR]
[TR]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]apple[/TD]
[/TR]
</tbody>[/TABLE]
Thank you