I have an issue. I told my wife I could write a script for this. Well its a bit out of my range. I thought it was easy but its not for me because I dont do this enough.
I have a spreadsheet and lets say I need to copy A2, D2, and E2 to another sheet 20 times but I also need to transpose the headings from columns CK1:DD1 into Column D, and then Transpose CK2:DD2 into column E. This is the data set (20).
Then I need to loop for each row this until the end of the list for lets say column D.
CK1:DD1 will always be the same 20 for each row that is copied.
Can anyone help? I know its a loop and transposing but not sure how to go about it.
Final result would look like this for each row from original sheet into final.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Data1[/TD]
[TD]Data2[/TD]
[TD]Data3[/TD]
[TD]Data4[/TD]
[TD]Data5[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CK1[/TD]
[TD]CK2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CL1[/TD]
[TD]CL2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CM1[/TD]
[TD]CM2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CN1[/TD]
[TD]CN2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CO1[/TD]
[TD]CO2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CP1[/TD]
[TD]CP2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CQ1[/TD]
[TD]CQ2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CR1[/TD]
[TD]CR2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CS1[/TD]
[TD]CS2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CT1[/TD]
[TD]CT2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CU1[/TD]
[TD]CU2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CV1[/TD]
[TD]CV2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CW1[/TD]
[TD]CW2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CX1[/TD]
[TD]CX2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CY1[/TD]
[TD]CY2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]CZ1[/TD]
[TD]CZ2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]DA1[/TD]
[TD]DA1[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]DB1[/TD]
[TD]DB2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]DC1[/TD]
[TD]DC2[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]D2[/TD]
[TD]E2[/TD]
[TD]DD1[/TD]
[TD]DD2[/TD]
[/TR]
</tbody>[/TABLE]
I have a spreadsheet and lets say I need to copy A2, D2, and E2 to another sheet 20 times but I also need to transpose the headings from columns CK1:DD1 into Column D, and then Transpose CK2:DD2 into column E. This is the data set (20).
Then I need to loop for each row this until the end of the list for lets say column D.
CK1:DD1 will always be the same 20 for each row that is copied.
Can anyone help? I know its a loop and transposing but not sure how to go about it.
Final result would look like this for each row from original sheet into final.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Data1[/TD]
[TD]Data2[/TD]
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