Stock data arrange in 5 min interval.........

ianccy

Active Member
Joined
Jul 28, 2002
Messages
332
I have a workbook that has stock data gathered from some site its in seconds interval, i want it to be arranged in 5 min intervals, the time format from the data is in hmmss00 as from the file downloaded. From the file,the data is arranged as Date, Name of the stock, ending date(not needed), Time, Price, Volume. how to arrange it so that my data starts from 08:45 ( data gather from 8:45 to 8:49), 08:50, 08:55,.....etc, and the data should be created as in Date(mm/dd), Time(hh:mm), Volume, Open price, High price, low price, close price. (High price of 08:45 is the highest price from 08:45:00 to 08:49:99), etc. if you can, please email me the excel file
This message was edited by ianccy on 2002-08-27 03:09
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
The file has more than 1 stock name , just choose any one, eg, FITX, Thanks for the help!
 
Upvote 0
...if you can, please email me the excel file...

so what are you after here? someone to build you the excel file? Or sort out the files on the dowmnload site you listed - they're not small files & could take someone an age to pull down if they've got a slow connection...

I assume you've got at least one of the files yourself. You must, therefore, have a specific question - how about asking it!!!

As a guess at what you want, see the following, which will round up time values to the nearset 5 minutes:

Does this help?

Paddy
 
Upvote 0
Book3.xls
ABCDEFGHI
2BidItempriceItemStartbidpriceHighestbidLowestbidLastBidPrice
32002/8/1A20A20791679
42002/8/2A53B
52002/8/3A40C
62002/8/4A16D
72002/8/5A79
82002/8/6B20
92002/8/7B46
102002/8/8B53
112002/8/9B71
122002/8/10C43
132002/8/11C62
142002/8/12D10
152002/8/13D16
162002/8/14D22
172002/8/15D23
182002/8/16D29
192002/8/17D48
202002/8/18D11
212002/8/19D30
Sheet1
 
Upvote 0
see the attached for one method.

Note - this method ignores the date column - as the dates are all in order, and the bids for specific items are contiguous, this regularity can be exploited without explicitly referencing the dates themselves (for example, the vlookup can be used to retunr the first match, which is the same as the ealiest bid given how your data is set up).

There are numerous other ways of doing this - dfunctions, index / match combinations etc. Post back if you need more.

Paddy
Book3
ABCDEFGHI
1BidItemPriceItemStartHighLowLast
21/08/2002A20A20791679
32/08/2002A53B20712071
43/08/2002A40C43624362
54/08/2002A16D10481030
65/08/2002A79
76/08/2002B20
87/08/2002B46
98/08/2002B53
109/08/2002B71
1110/08/2002C43
1211/08/2002C62
1312/08/2002D10
1413/08/2002D16
1514/08/2002D22
1615/08/2002D23
1716/08/2002D29
1817/08/2002D48
1918/08/2002D11
2019/08/2002D30
21
22
Sheet1


edit: the min & max bits are array formulas - enter them with control + shift + enter, not just enter - excel will add the curly brackets if it's done OK
This message was edited by PaddyD on 2002-08-25 18:12
 
Upvote 0
Thanks, and what is the formula yu gave in the previous reply, the formula? i can't copy the formula from it
 
Upvote 0
something seems to have gone wrong there. The formulas used the ceiling function to round a time up to the next nearest 5 minutes:

=CEILING(A1,1/(24*12))

where the 1/(24*12) bit is to determin the decimal fraction for 5 minute intervals - 24 hours in the day, 12 5 miutes in an hour.

Paddy
 
Upvote 0
By changing the format??

If you've got fractions of a second, this shouldn't effect the ceiling calculations or their equivalents...what are you trying to do?

Paddy
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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