Hello Experts,
I have been trying to fit my head to find a solution but sadly haven't been able to.
I have huge data with 2 columns, there are 28 fields for each of the person dumped up in a single column. 1st column has the header data which obviously is repeated after every 28th rows and 2nd column has details about the persons.
I want to have the data from column 1 to be transposed as 28 columns and under this column/header there should be values from column 2 transposed to rows breakdown at every 28 cells. so 1st 28 values of the column 2 as row 1 and then next 28 values of the column 2 as row 2 and so on..
This might be a little confusing but i am sharing the demo work file, to make some sense. thanks a lot in advance!!
COLUM1 COLUMN2
<colgroup><col width="68" span="2" style="width:51pt"> </colgroup><tbody>
</tbody>
After macro
<colgroup><col width="68" span="28" style="width:51pt"> </colgroup><tbody>
</tbody>
I have been trying to fit my head to find a solution but sadly haven't been able to.
I have huge data with 2 columns, there are 28 fields for each of the person dumped up in a single column. 1st column has the header data which obviously is repeated after every 28th rows and 2nd column has details about the persons.
I want to have the data from column 1 to be transposed as 28 columns and under this column/header there should be values from column 2 transposed to rows breakdown at every 28 cells. so 1st 28 values of the column 2 as row 1 and then next 28 values of the column 2 as row 2 and so on..
This might be a little confusing but i am sharing the demo work file, to make some sense. thanks a lot in advance!!
COLUM1 COLUMN2
asID | AA1 |
asName | AA2 |
asAddr | AA3 |
asCity | AA4 |
asST | AA5 |
asZIP | AA6 |
file | AA7 |
aseName | AA8 |
aseAddr | AA9 |
aseCity | AA10 |
aseST | AA11 |
aseZIP | AA12 |
CtrlNo | AA13 |
Wages | AA14 |
FedWH | AA15 |
SSWages | AA16 |
SSWh | AA17 |
midWage | AA18 |
midWH | AA19 |
RetPlan | AA20 |
CODE12 | AA21 |
AMNT12 | AA22 |
CODE12 | AA23 |
AMNT12 | AA24 |
StateCD | AA25 |
StateID | AA26 |
StatWage | AA27 |
StateWH | AA28 |
asID | BB1 |
asName | BB2 |
asAddr | BB3 |
asCity | BB4 |
asST | BB5 |
asZIP | BB6 |
file | BB7 |
aseName | BB8 |
aseAddr | BB9 |
aseCity | BB10 |
aseST | BB11 |
aseZIP | BB12 |
CtrlNo | BB13 |
Wages | BB14 |
FedWH | BB15 |
SSWages | BB16 |
SSWh | BB17 |
midWage | BB18 |
midWH | BB19 |
RetPlan | BB20 |
CODE12 | BB21 |
AMNT12 | BB22 |
CODE12 | BB23 |
AMNT12 | BB24 |
StateCD | BB25 |
StateID | BB26 |
StatWage | BB27 |
StateWH | BB28 |
<colgroup><col width="68" span="2" style="width:51pt"> </colgroup><tbody>
</tbody>
After macro
asID | asName | asAddr | asCity | asST | asZIP | file | aseName | aseAddr | aseCity | aseST | aseZIP | CtrlNo | Wages | FedWH | SSWages | SSWh | midWage | midWH | RetPlan | CODE12 | AMNT12 | CODE12 | AMNT12 | StateCD | StateID | StatWage | StateWH |
AA1 | AA2 | AA3 | AA4 | AA5 | AA6 | AA7 | AA8 | AA9 | AA10 | AA11 | AA12 | AA13 | AA14 | AA15 | AA16 | AA17 | AA18 | AA19 | AA20 | AA21 | AA22 | AA23 | AA24 | AA25 | AA26 | AA27 | AA28 |
BB1 | BB2 | BB3 | BB4 | BB5 | BB6 | BB7 | BB8 | BB9 | BB10 | BB11 | BB12 | BB13 | BB14 | BB15 | BB16 | BB17 | BB18 | BB19 | BB20 | BB21 | BB22 | BB23 | BB24 | BB25 | BB26 | BB27 | BB28 |
<colgroup><col width="68" span="28" style="width:51pt"> </colgroup><tbody>
</tbody>