I am using Excel 2016
and I have a data set with 492 rows and no headers. Data starts at Cell A1
.
An extract of the data set looks like this:
I want to transpose this data set so that it becomes into this format:
I am new to VBA
and I am having a hard time finding the right solution. I have tried recording the transpose as a Macro
(step by step) and viewed the VBA
codes but I still can't make it come together.
Try this code, but before you do adjust the two constants at the top to match the facts on your worksheet. The worksheet with the data must be active when the code is executed.