Can someone help me help me how to create a macro that would transpose the following amount in column to rows that match the dates, here is an example:
Raw data from sheet 1:
[TABLE="width: 166"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]Oct 14, 2017[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Oct 21, 2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Oct 28, 2017[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Nov 4, 2017[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Nov 11, 2017[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Nov 18, 2017[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Nov 25, 2017[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Dec 2, 2017[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Dec 9, 2017[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Dec 16, 2017[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Dec 23, 2017[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Dec 30, 2017[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Jan 6, 2018[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Jan 13, 2018[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Oct 14, 2017[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]Oct 21, 2017[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]Oct 28, 2017[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]Nov 4, 2017[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]Nov 11, 2017[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]Nov 18, 2017[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Nov 25, 2017[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]Dec 2, 2017[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]Dec 9, 2017[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]Dec 16, 2017[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]Dec 23, 2017[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]Dec 30, 2017[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]Jan 6, 2018[/TD]
[TD]27[/TD]
[/TR]
[TR]
[TD]Jan 13, 2018[/TD]
[TD]28[/TD]
[/TR]
[TR]
[TD]Oct 14, 2017[/TD]
[TD]29[/TD]
[/TR]
[TR]
[TD]Oct 21, 2017[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]Oct 28, 2017[/TD]
[TD]31[/TD]
[/TR]
[TR]
[TD]Nov 4, 2017[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]Nov 11, 2017[/TD]
[TD]33[/TD]
[/TR]
[TR]
[TD]Nov 18, 2017[/TD]
[TD]34[/TD]
[/TR]
[TR]
[TD]Nov 25, 2017[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]Dec 2, 2017[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]Dec 9, 2017[/TD]
[TD]37[/TD]
[/TR]
[TR]
[TD]Dec 16, 2017[/TD]
[TD]38[/TD]
[/TR]
[TR]
[TD]Dec 23, 2017[/TD]
[TD]39[/TD]
[/TR]
[TR]
[TD]Dec 30, 2017[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Jan 6, 2018[/TD]
[TD]41[/TD]
[/TR]
[TR]
[TD]Jan 13, 2018[/TD]
[TD]42[/TD]
[/TR]
</tbody>[/TABLE]
Result in Sheet 2:
[TABLE="width: 1061"]
<colgroup><col span="3"><col><col span="3"><col span="2"><col span="3"><col><col></colgroup><tbody>[TR]
[TD]Oct 14, 2017[/TD]
[TD]Oct 21, 2017[/TD]
[TD]Oct 28, 2017[/TD]
[TD]Nov 4, 2017[/TD]
[TD]Nov 11, 2017[/TD]
[TD]Nov 18, 2017[/TD]
[TD]Nov 25, 2017[/TD]
[TD]Dec 2, 2017[/TD]
[TD]Dec 9, 2017[/TD]
[TD]Dec 16, 2017[/TD]
[TD]Dec 23, 2017[/TD]
[TD]Dec 30, 2017[/TD]
[TD]Jan 6, 2018[/TD]
[TD]Jan 13, 2018[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]11[/TD]
[TD]12[/TD]
[TD]13[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]16[/TD]
[TD]17[/TD]
[TD]18[/TD]
[TD]19[/TD]
[TD]20[/TD]
[TD]21[/TD]
[TD]22[/TD]
[TD]23[/TD]
[TD]24[/TD]
[TD]25[/TD]
[TD]26[/TD]
[TD]27[/TD]
[TD]28[/TD]
[/TR]
[TR]
[TD]29[/TD]
[TD]30[/TD]
[TD]31[/TD]
[TD]32[/TD]
[TD]33[/TD]
[TD]34[/TD]
[TD]35[/TD]
[TD]36[/TD]
[TD]37[/TD]
[TD]38[/TD]
[TD]39[/TD]
[TD]40[/TD]
[TD]41[/TD]
[TD]42[/TD]
[/TR]
</tbody>[/TABLE]
Raw data from sheet 1:
[TABLE="width: 166"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]Oct 14, 2017[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Oct 21, 2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Oct 28, 2017[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Nov 4, 2017[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Nov 11, 2017[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Nov 18, 2017[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Nov 25, 2017[/TD]
[TD]7[/TD]
[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[/TR]
[TR]
[TD]Nov 11, 2017[/TD]
[TD]33[/TD]
[/TR]
[TR]
[TD]Nov 18, 2017[/TD]
[TD]34[/TD]
[/TR]
[TR]
[TD]Nov 25, 2017[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]Dec 2, 2017[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]Dec 9, 2017[/TD]
[TD]37[/TD]
[/TR]
[TR]
[TD]Dec 16, 2017[/TD]
[TD]38[/TD]
[/TR]
[TR]
[TD]Dec 23, 2017[/TD]
[TD]39[/TD]
[/TR]
[TR]
[TD]Dec 30, 2017[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Jan 6, 2018[/TD]
[TD]41[/TD]
[/TR]
[TR]
[TD]Jan 13, 2018[/TD]
[TD]42[/TD]
[/TR]
</tbody>[/TABLE]
Result in Sheet 2:
[TABLE="width: 1061"]
<colgroup><col span="3"><col><col span="3"><col span="2"><col span="3"><col><col></colgroup><tbody>[TR]
[TD]Oct 14, 2017[/TD]
[TD]Oct 21, 2017[/TD]
[TD]Oct 28, 2017[/TD]
[TD]Nov 4, 2017[/TD]
[TD]Nov 11, 2017[/TD]
[TD]Nov 18, 2017[/TD]
[TD]Nov 25, 2017[/TD]
[TD]Dec 2, 2017[/TD]
[TD]Dec 9, 2017[/TD]
[TD]Dec 16, 2017[/TD]
[TD]Dec 23, 2017[/TD]
[TD]Dec 30, 2017[/TD]
[TD]Jan 6, 2018[/TD]
[TD]Jan 13, 2018[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]11[/TD]
[TD]12[/TD]
[TD]13[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]16[/TD]
[TD]17[/TD]
[TD]18[/TD]
[TD]19[/TD]
[TD]20[/TD]
[TD]21[/TD]
[TD]22[/TD]
[TD]23[/TD]
[TD]24[/TD]
[TD]25[/TD]
[TD]26[/TD]
[TD]27[/TD]
[TD]28[/TD]
[/TR]
[TR]
[TD]29[/TD]
[TD]30[/TD]
[TD]31[/TD]
[TD]32[/TD]
[TD]33[/TD]
[TD]34[/TD]
[TD]35[/TD]
[TD]36[/TD]
[TD]37[/TD]
[TD]38[/TD]
[TD]39[/TD]
[TD]40[/TD]
[TD]41[/TD]
[TD]42[/TD]
[/TR]
</tbody>[/TABLE]