I am in need of a macro to help me with a very repetitive task. Each month I prepare a monthly summary in which 2013 data is compared 2012 data. Using a summary file provided to me, it lists monthly data and a yearly total for different clients (13 rows x 3 columns for each client). The issue I am having is that I have to manually enter in the 2012 data to compare to the 2013 data. Below is an example of the format the the summary produces (this example range is considered the 2013 amount).
<tbody>[TR]
[TD="align: center"]Month[/TD]
[TD="align: center"]Amount A[/TD]
[TD="align: center"]Amount B[/TD]
[TD="align: center"]Amount C[/TD]
[TD="align: center"]Amount D[/TD]
[/TR]
[TR]
[TD]Jan
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mar[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apr[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]May[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]June[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]July[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Aug[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sept[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Oct[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nov[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dec[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Total[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
For the sake of example, say these are columns A-E. I am in need of code that will copy the 2012 data from another Sheet and paste it into columns H-J. I thought about using a Vlookup by client name but the problem is for each row, there is the same client name. So a vlookup would return the values listed for Jan. If there is a way to treat a specific range of cells as a group. That way I could pull in the 2012 "group" or 2012 data relative to each client.
I am no expert at writing code so any suggestions would be helpful. This is a very repetitive task that I spend too much time on each month. A macro to help to save some time as well as cut down on human error.
[TABLE="width: 500, align: center"]<tbody>[TR]
[TD="align: center"]Month[/TD]
[TD="align: center"]Amount A[/TD]
[TD="align: center"]Amount B[/TD]
[TD="align: center"]Amount C[/TD]
[TD="align: center"]Amount D[/TD]
[/TR]
[TR]
[TD]Jan
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mar[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apr[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]May[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]June[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]July[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Aug[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sept[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Oct[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nov[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dec[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Total[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
For the sake of example, say these are columns A-E. I am in need of code that will copy the 2012 data from another Sheet and paste it into columns H-J. I thought about using a Vlookup by client name but the problem is for each row, there is the same client name. So a vlookup would return the values listed for Jan. If there is a way to treat a specific range of cells as a group. That way I could pull in the 2012 "group" or 2012 data relative to each client.
I am no expert at writing code so any suggestions would be helpful. This is a very repetitive task that I spend too much time on each month. A macro to help to save some time as well as cut down on human error.