Copying over data for one column in readiness for the next column

DrumLad

New Member
Joined
Mar 14, 2018
Messages
7
Hi,I am new to this forum (and new to VBA!)

Here is my issue (which I'm sure will be simple on here!)

I have a table with both period nos (ie 1-13) and weeks nos (1-52) across the top.

I have a formula that copies data from from one file to another into each cell of a column of 20 items for that particular period/week (simple offset formula).

However what I want to do is overwrite (using vba) and paste special the previous "weeks" cells to ensure that the formulas in the preceding cells are in tact.


So sample below of table..

Pd/Week No123
123456789101112
Actual6.56.56.56.57.37.37.37.33.33.33.33.3
Target6.06.06.06.06.06.06.06.05.85.85.85.8
Actual4.04.04.04.014.014.014.014.010.310.310.310.3
Target8.08.08.08.06.86.86.86.87.57.57.57.5
Actual41.541.541.541.536.336.336.336.330.030.030.030.0
Target33.533.533.533.531.031.031.031.033.833.833.833.8

<tbody>
</tbody>


Any thoughts?

I am using Excel 2010
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top