Desperately Need assistance!! Splitting data into intervals

Johno203

New Member
Joined
Aug 1, 2010
Messages
2
Hey there!

So I have some daily stock returns over about 8 trading years and need to split them up into 60 day intervals....how do I do this?

THANKS FOR HELPING :)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hey there!

So I have some daily stock returns over about 8 trading years and need to split them up into 60 day intervals....how do I do this?

THANKS FOR HELPING :)

Actually i need to split them into 60 equal intervals...not 60 day intervals
 
Upvote 0
Figure out how many rows of data (daily stock returns) you have.

In an adjacent column starting with the same row as your data, enter the numbers 1 and 2. Move the cursor over the right-bottom cell containing the 2 and double-click. Each row should now be sequentially numbered.

Divide the total number of rows by 6. Say this result is N. Identify the rows containing N, N*2, N*3, etc. in the column added above. These are the markers for the desired ranges.
 
Upvote 0
I tried this and it seemed to do the trick

=INT((ROW()-1)/(MATCH("*",A:A,-1 )/60))+1

Copied down, now the first section of the 60 will be marked with a 1 and each will be equal size (allowing for some discrepancy of +/-1 record in each segment as it may be possible that your total records are not exactly divisible by 60)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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