Hi all,
I am trying to get my head around how to start coding the following spreadsheet presented below in excel 2013. If someone could point me in the right direction as to what to look at or breakdown a set of tasks for me to carry out to complete the VBA code I would be much obliged.
I have a spreadsheet consisting of the following sheets (below). The data (input column C and the date column B) needs to be taken from the Input sheet and moved to the ABC Sheet or the CDE sheet to the very last row and calculate the % difference between the new input and the previous dates input.
This sheet would be updated monthly and the only data that changes is in the input sheet (column B - date, Column C - Input)
Any ideas would be greatly appreciated.
Input sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Input[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ABC[/TD]
[TD]30/11/2014[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CDE[/TD]
[TD]30/11/2014[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
ABC sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]% Difference[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Input[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ABC[/TD]
[TD]31/10/2014[/TD]
[TD]0.5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ABC[/TD]
[TD]30/11/2014[/TD]
[TD]X[/TD]
[TD]X[/TD]
[/TR]
</tbody>[/TABLE]
CDE sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]% Difference[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Input[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]CDE[/TD]
[TD]31/10/2014[/TD]
[TD]0.5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CDE[/TD]
[TD]30/11/2014[/TD]
[TD]X[/TD]
[TD]X[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to get my head around how to start coding the following spreadsheet presented below in excel 2013. If someone could point me in the right direction as to what to look at or breakdown a set of tasks for me to carry out to complete the VBA code I would be much obliged.
I have a spreadsheet consisting of the following sheets (below). The data (input column C and the date column B) needs to be taken from the Input sheet and moved to the ABC Sheet or the CDE sheet to the very last row and calculate the % difference between the new input and the previous dates input.
This sheet would be updated monthly and the only data that changes is in the input sheet (column B - date, Column C - Input)
Any ideas would be greatly appreciated.
Input sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Input[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ABC[/TD]
[TD]30/11/2014[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CDE[/TD]
[TD]30/11/2014[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
ABC sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]% Difference[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Input[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ABC[/TD]
[TD]31/10/2014[/TD]
[TD]0.5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ABC[/TD]
[TD]30/11/2014[/TD]
[TD]X[/TD]
[TD]X[/TD]
[/TR]
</tbody>[/TABLE]
CDE sheet:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]% Difference[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Input[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]CDE[/TD]
[TD]31/10/2014[/TD]
[TD]0.5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CDE[/TD]
[TD]30/11/2014[/TD]
[TD]X[/TD]
[TD]X[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: