Thanks for the response. The HTML add-in was quite useful. Here are some screenshots which might help explaining the exact requirement.Also I have uploaded the files here
https://www.dropbox.com/s/1uwj4hunu5xoh87/Mr Excel - VBA Query.xlsx?dl=0
[B]Excel 2010[/B][TABLE]
<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[TH]E[/TH]
[TH]F[/TH]
[TH]G[/TH]
[TH]H[/TH]
[TH]I[/TH]
[TH]J[/TH]
[TH]K[/TH]
[TH]L[/TH]
[/TR]
</thead><tbody>[TR]
[TD="align: center"]1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[TD]Category 1.1.1[/TD]
[TD]Category 1.1.1[/TD]
[TD]Category 1.1.1[/TD]
[TD]Category 1.1.1[/TD]
[TD]Category 1.1.1[/TD]
[TD]Category 1.1.1[/TD]
[TD]Category 1.1.1[/TD]
[TD]Category 1.1.1[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[TD]Category 1.1.1.1[/TD]
[TD]Category 1.1.1.1[/TD]
[TD]Category 1.1.1.1[/TD]
[TD]Category 1.1.1.1[/TD]
[TD]Category 1.1.1.1[/TD]
[TD]Category 1.1.1.1[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[TD]Category 1.1.1.1.1[/TD]
[TD]Category 1.1.1.1.1[/TD]
[TD]Category 1.1.1.1.1[/TD]
[TD]Category 1.1.1.1.1[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[TD]Category 1.1.1.1.1.1[/TD]
[TD]Category 1.1.1.1.1.1[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[/TR]
</tbody>[/TABLE]
[CENTER][COLOR=#161120][B]Raw Data[/B][/COLOR][/CENTER]
[B]Excel 2010[/B][TABLE]
<colgroup><col><col><col><col><col><col><col></colgroup><thead>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[TH]M[/TH]
[TH]N[/TH]
[/TR]
</thead><tbody>[TR]
[TD="align: center"]1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[TD]Category 1[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.1[/TD]
[TD]Category 1.2[/TD]
[TD]Category 1.2[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[TD]CY[/TD]
[TD]LY[/TD]
[/TR]
</tbody>[/TABLE]
[CENTER][COLOR=#161120][B]Result Needed[/B][/COLOR][/CENTER]