Use data from another worksheet, calculate, then advance +1 worksheet, repeat 150 times

MrLearningalot

New Member
Joined
Jun 26, 2011
Messages
1
I have a sequence of worksheets, each one represents one month. On all the worksheets there is a list of stocks and their prices at month end in column A then B respectively.

I'm wanting to show what the % return each stock is getting for one month in column C, 2 months in column D, and three month % return in column E. This suggests that worksheet 4 will be able to present this data, so from worksheet 4 to 150 I need these calculated.

I'm struggling with the code needed to select the proper worksheet than repeating the process with +1 worksheet, if you know what I mean. Selecting the previous worksheet when recording a macro just selects that specific worksheet, so I need a better way.

Any help would be appreciated,

Thanks
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the Board!

How about posting the code you have so far? From there someone will be able to do what you want.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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