I have a large data set that is arranged something like shown below with a space between each data entry. I'd like to rearrange the data in a normal table, with the field labels across the top and each entry as a row. The main issue is that the entries aren't entirely consistent. I'm having trouble coming up with a solution (VBA or otherwise) to rearrange the data. Any help would really be appreciated.
Thanks!
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Field 1[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 2[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 3[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Field 1[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 2[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 3[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Field 1[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field A[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 2[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 3[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Field 1[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field A[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field B[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 3[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks!
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Field 1[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 2[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 3[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Field 1[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 2[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 3[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Field 1[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field A[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 2[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 3[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Field 1[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field A[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field B[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Field 3[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]