Hello all - I am really struggling with some ETL and I was wondering if anyone has a good way either with VBA or a built-in excel tool to transform a data set I've been working on. My problem is this: I have a source data set that has months separated into multiple columns with a different month & measure in each column (see below). I want to transform this data such that months and the metrics become their own columns. Trend analysis is very difficult to do when the information is structured in the first scenario. Please help!
[TABLE="width: 601"]
<colgroup><col><col><col span="2"><col><col><col span="2"></colgroup><tbody>[TR]
[TD="colspan: 2"]Source Data Structure[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Cost Center[/TD]
[TD]Organization [/TD]
[TD]Jan - Cost[/TD]
[TD]Jan - Plan[/TD]
[TD]Feb - Cost[/TD]
[TD]Feb - Plan[/TD]
[TD]March - Cost[/TD]
[TD]March - Plan[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Claims[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]25234[/TD]
[TD="align: right"]2345[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Claims[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]2345[/TD]
[TD="align: right"]234[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]235[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Product[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]1235[/TD]
[TD="align: right"]235[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
Desired Data Structure
[TABLE="width: 357"]
<colgroup><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Month[/TD]
[TD]Cost Center[/TD]
[TD] Organization[/TD]
[TD] Cost[/TD]
[TD] Plan[/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2016[/TD]
[TD] A[/TD]
[TD] Claims[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]23[/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2016[/TD]
[TD] B[/TD]
[TD] Claims[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]2345[/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2016[/TD]
[TD] C[/TD]
[TD] Product[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD="align: right"]2/1/2016[/TD]
[TD] A[/TD]
[TD] Claims[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]25234[/TD]
[/TR]
[TR]
[TD="align: right"]2/1/2016[/TD]
[TD] B[/TD]
[TD] Claims[/TD]
[TD="align: right"]234[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: right"]2/1/2016[/TD]
[TD] C[/TD]
[TD] Product[/TD]
[TD="align: right"]1235[/TD]
[TD="align: right"]235[/TD]
[/TR]
[TR]
[TD="align: right"]3/1/2016[/TD]
[TD] A[/TD]
[TD] Claims[/TD]
[TD="align: right"]2345[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]3/1/2016[/TD]
[TD] B[/TD]
[TD] Claims[/TD]
[TD="align: right"]235[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]3/1/2016[/TD]
[TD] C[/TD]
[TD] Product[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 601"]
<colgroup><col><col><col span="2"><col><col><col span="2"></colgroup><tbody>[TR]
[TD="colspan: 2"]Source Data Structure[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Cost Center[/TD]
[TD]Organization [/TD]
[TD]Jan - Cost[/TD]
[TD]Jan - Plan[/TD]
[TD]Feb - Cost[/TD]
[TD]Feb - Plan[/TD]
[TD]March - Cost[/TD]
[TD]March - Plan[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Claims[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]25234[/TD]
[TD="align: right"]2345[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Claims[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]2345[/TD]
[TD="align: right"]234[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]235[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Product[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]1235[/TD]
[TD="align: right"]235[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
Desired Data Structure
[TABLE="width: 357"]
<colgroup><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Month[/TD]
[TD]Cost Center[/TD]
[TD] Organization[/TD]
[TD] Cost[/TD]
[TD] Plan[/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2016[/TD]
[TD] A[/TD]
[TD] Claims[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]23[/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2016[/TD]
[TD] B[/TD]
[TD] Claims[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]2345[/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2016[/TD]
[TD] C[/TD]
[TD] Product[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD="align: right"]2/1/2016[/TD]
[TD] A[/TD]
[TD] Claims[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]25234[/TD]
[/TR]
[TR]
[TD="align: right"]2/1/2016[/TD]
[TD] B[/TD]
[TD] Claims[/TD]
[TD="align: right"]234[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: right"]2/1/2016[/TD]
[TD] C[/TD]
[TD] Product[/TD]
[TD="align: right"]1235[/TD]
[TD="align: right"]235[/TD]
[/TR]
[TR]
[TD="align: right"]3/1/2016[/TD]
[TD] A[/TD]
[TD] Claims[/TD]
[TD="align: right"]2345[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]3/1/2016[/TD]
[TD] B[/TD]
[TD] Claims[/TD]
[TD="align: right"]235[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]3/1/2016[/TD]
[TD] C[/TD]
[TD] Product[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]