Pretty much the output I want is this:
<h1> 1 </h1>
<h2> A </h2>
B
<h2> C </h2>
D
<h1> 2 </h1>
<h2> D </h2>
E
So the first column is the H1 tag. However if there are more than 1 columns with the same info (for example "1" in our case) then just add the second and 3rd columns as h2 and content.
The most important thing is that there should no be two h1 tags with the same content.
<h1> 1 </h1>
<h2> A </h2>
B
<h2> C </h2>
D
<h1> 2 </h1>
<h2> D </h2>
E
So the first column is the H1 tag. However if there are more than 1 columns with the same info (for example "1" in our case) then just add the second and 3rd columns as h2 and content.
The most important thing is that there should no be two h1 tags with the same content.