Copy paste loop and changing cells

dafunkyfalcon

New Member
Joined
Jul 7, 2011
Messages
6
Hi!

I'm looking for a way of creating a time series of values in certain cells that changes based on the date. I have one cell for year and one for month and by changing these, the values in H5:Q5 changes. I want to copy these values onto a new sheet in the right order. In other words, starting 1991-01 i want to copy the values in H5:Q5 onto a new sheet, then change to 1991-02 etc all the way through 2011-01.

Any suggestions?

Regards
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
What I would do, is put the year and month values in columns and base your calculations on those values. Copy everything down across the sheet until you have every date up to 2011-01
Excel Workbook
EFGHIJK
4YcountYEARMONTHValue1Value2Value3..up to column Q
5199119911****
61991.08319912****
Sheet
 
Upvote 0
Thanks a lot, I will try it out.

Does anyone else have any suggestions as how to do it in vba? I'm new to it so i would like to learn some.

Regards
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,713
Members
452,939
Latest member
WCrawford

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